Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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".
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.