Bug confirmed and reported to MQ attention.
Thank you all
Fixed
First timer event for timer created from OnTimer event will not be skipped
There seems to be a bug with the OnTimer event.
I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example:
With this code we should get the following execution:
0:00:00 - EA starts and sets the timer for every 2 seconds.
0:00:02 - EA executes timer and resets it for every 10 seconds
0:00:22 - EA executes timer
0:00:32 - EA executes timer
The EA should have executed the timer on the 0:00:12 second but it didn't.
How is this possible? Am I missunderstanding something in regards to the OnTimer event? Is this a bug?
Many thanks,
Kevin

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
There seems to be a bug with the OnTimer event.
I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example:
With this code we should get the following execution:
0:00:00 - EA starts and sets the timer for every 2 seconds.
0:00:02 - EA executes timer and resets it for every 10 seconds
0:00:22 - EA executes timer
0:00:32 - EA executes timer
The EA should have executed the timer on the 0:00:12 second but it didn't.
How is this possible? Am I missunderstanding something in regards to the OnTimer event? Is this a bug?
Many thanks,
Kevin