Stating the indicator only after the actual bar  [SOLVED]

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Stating the indicator only after the actual bar

Postby arjfca » 18 May 2017

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

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Stating the indicator only after the actual bar  [SOLVED]

Postby TJ » 18 May 2017

Code: Select all


If lastbaronchart and barstatus[1] = 2

AND TIME = CurrentTime

then FileLog = FileLogging;


Return to “MultiCharts”