You need to manage rates_total, prev_calculated and the return value from OnCalculate inside your code.
To do so you could use OnTimer event handler.
Search the forum on "how to do your lookbacks properly".
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want to pause calculation in OnCalculate so all drawings on chart freezes until i enable calculation again
How to do that?