Dear people,
There is a lot of "literature" in the forum about this, one above all the clarification offered by William Roeder here: https://www.mql5.com/en/forum/321335.
Thus, please, can anybody explain this?
Log file generated without the Sleep(1000) statement: regular call of OnTimer every five minutes:
Log file generated on backtester 1M OHLC with Sleep(1000) activated (I screened for finding one instance in which, by chance, the Timer handler is activated:
Any explanation for this? How to solve it?
In my hands it becomes now impossible to manage properly the two event handlers in a unique EA, where I wanted to assign precise functions of a trading strategy to either one or the other handlers.
Thank you so much in advance.
Seems like a bug using Sleep() and a timer with the Strategy Tester.
If you don't use Sleep() there is not such problem.
Seems like a bug using Sleep() and a timer with the Strategy Tester.
If you don't use Sleep() there is not such problem.
Thank you. Very useful.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear people,
There is a lot of "literature" in the forum about this, one above all the clarification offered by William Roeder here: https://www.mql5.com/en/forum/321335.
Thus, please, can anybody explain this?
Log file generated without the Sleep(1000) statement: regular call of OnTimer every five minutes:
Log file generated on backtester 1M OHLC with Sleep(1000) activated (I screened for finding one instance in which, by chance, the Timer handler is activated:
Any explanation for this? How to solve it?
In my hands it becomes now impossible to manage properly the two event handlers in a unique EA, where I wanted to assign precise functions of a trading strategy to either one or the other handlers.
Thank you so much in advance.