sleep is ignored in strategy testing.
datetime nextRun; int start() { if( nextRun > TimeCurrent() ) return(0); nextRun = TimeCurrent() + 900; //...<Your usual start codes>... }
Thank you very much

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 noticed sleep(900000) does not work in strategy tester.
What I would like is the start to run every 15 minutes and not on every tick. How can I do this?
L.