Mouse clicks (events) do no work in the tester.
See In backtest OnTimer() not performs - MQL4 programming forum #3 2014.02.21
and work around Chart Event For MT4 Backtester - Strategy Tester - MQL4 programming forum #7 2016.04.03
and How to use OnChartEvent buttons to work in Tester - MQL4 programming forum - Page 2 #11 2019.04.28
Mouse clicks (events) do no work in the tester.
See In backtest OnTimer() not performs - MQL4 programming forum #3 2014.02.21
and work around Chart Event For MT4 Backtester - Strategy Tester - MQL4 programming forum #7 2016.04.03
and How to use OnChartEvent buttons to work in Tester - MQL4 programming forum - Page 2 #11 2019.04.28
If you had followed the links that @William Roeder provided in his post, and actually read their contents you would have seen how to work-around the problem and make it work in the Strategy Tester.
If you had followed the links that @William Roeder provided in his post, and actually read their contents you would have seen how to work-around the problem and make it work in the Strategy Tester.
I read the articles, found a few others about this situation. I understand that the OnChartEvent has not been implemented, for the buttons I was only able to check their status by tick. But to use OnChartEvent(to handle mouse click) do I need to use by indicators and load the indicator in EA?
This is my doubt and I didn't find it in the articles or forum.- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I need to load an indicator in Strategy Tester to handle mouse click events. How can I do this?
Or handle a click event without the direct indicator in the Strategy Tester, but from what I've researched, there's no way to do that.