Reset variable at midnight
-
Hi, I have a counter variable that counts the stops of the day. I would like the variable to become zero every day at midnight but I can't.
-
@slydexx Once per daily bar->modify variable, when server running first tick after midnight things will reset.
-
@jstap I just would like to add that this 'once per daily bar' block needs to be the first one to be executed on the 'on tick' tab. So you should use the lowest ID number for it.
-
Thanks !
-
@slydexx You're welcome.