I think I had done that before, but can't remember
I want the indicator to start only after the actual last bar has been completed. Not from the first bar whenever a chart is reloadded. I'm using this code, but not the result that I want. The goal is to log new data, not the one from the past.
If lastbaronchart and barstatus[1] = 2 then FileLog = FileLogging;
[/code]
Martin
Stating the indicator only after the actual bar [SOLVED]
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Stating the indicator only after the actual bar [SOLVED]
Code: Select all
If lastbaronchart and barstatus[1] = 2
AND TIME = CurrentTime
then FileLog = FileLogging;