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
This is unclear. Every new bar is added at index 0, but this happens at arbitrary moment, not at the timer event.
What is your requirement?
PS&NB: the tester handles ticks/bars differently depending from the mode - you did not specify which you use.
I am inserting in image, what settings for strategy tester i am using.
Ok. The question is how to know when is that "moment", if it is not on timer event?
I am inserting in image, what settings for strategy tester i am using.
Forum on trading, automated trading systems and testing trading strategies
Question about unsynced bars read by CopyOpen/CopyRates/...
Ryan L Johnson, 2026.10.07 23:02
I experienced issues in the Tester while running a millisecond timer, so I conditionally switched back to OnTick() using MQLInfoInteger(MQL_TESTER).
I experienced issues in the Tester while running a millisecond timer, so I conditionally switched back to OnTick() using MQLInfoInteger(MQL_TESTER).
What issues ?
A complete stall with a 21ms timer likely due to:
Forum on trading, automated trading systems and testing trading strategies
Question about unsynced bars read by CopyOpen/CopyRates/...
Ryan L Johnson, 2026.10.07 23:02
Note that the relevant documentation states that:
Ok. The question is how to know when is that "moment", if it is not on timer event?
I am inserting in image, what settings for strategy tester i am using.
You should detect the moment by tick analysis in OnTick, for example, so (just a draft):
You should detect the moment by tick analysis in OnTick, for example, so (just a draft):