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
Please try an ea calling data on BTCUSD, in which the main symbol is a currency pair like EURUSD, run the simulation with the on timer... Compare those results to a case in which the ea's main symbol is BTCUSD. In my case the results do not match, despite the ea always calling BTCUSD.
I am not sure for the reason, but According to the MQL5 Reference (Testing Features), the OnTimer event is only processed when the simulator handles a tick. If there are no ticks (even if the "virtual" seconds have passed), the timer will not trigger. While in real-time mode, timer events are generated based on the system clock, in the strategy tester, the timer is dependent on the simulated time progress, which is driven by tick arrival.
In the strategy tester, time is simulated, there is no data of what happen in between time gaps, all there is is ticks or candles, which will make sense to guide the OnTimer. No Ticks = No Time = No Timer.
Specifically, I found a disparity in results of a mutlicurrency ea, when the main chart pair has data gaps, and the ea calls over data from other pairs via the onTimer.... in different agents the results were widely variable keeping everything the same when using OnTimer...when using iSpy the results were consistent.
In the strategy tester, time is simulated, there is no data of what happen in between time gaps, all there is is ticks or candles, which will make sense to guide the OnTimer. No Ticks = No Time = No Timer.
Specifically, I found a disparity in results of a mutlicurrency ea, when the main chart pair has data gaps, and the ea calls over data from other pairs via the onTimer.... in different agents the results were widely variable keeping everything the same when using OnTimer...when using iSpy the results were consistent.
Please stop propagating incorrect assumptions without any proof. Once again : Tester OnTimer calls DOES NOT DEPEND of ticks.
You got different results depending on the main pair because your code doesn't manage data correctly.
If you post code, logs and info to reproduce your issue, it could be useful for this topic. Otherwise all has already be said.