depending on how you define "close of the day" it might be easier to reset the variable at the beginning of a new day by for example monitoring a change in the reserved word "Date".
Regards,
ABCTG
The following user says Thank You to ABCTG for this post:
Lets say I want to reset the stored value after 5 bars if it wasn't triggered.
How would I do that?
Basically I don't know any keywords or verbiage to clear the stored value. Once I know "How to word" the resetting of the value I can figure out how to apply it to different situations.
there are no reserved words for clearing a variable's value, but you can simply set it to any value you want whenever you want. If you want to do something after a certain number of bars, this will likely require a second variable that you use to store the bar number (using the reserved word CurrentBar for example) when you store the value in your first variable (for example). Then you can monitor the value for CurrentBar on subsequent bars and in case it is greater than the value you stored + X you can perform your reset.
Regards,
ABCTG
The following 2 users say Thank You to ABCTG for this post: