Download MetaTrader 5

OnTimer() while Sleep()

To add comments, please log in or register
Peoples11
18
Peoples11  
Hello all I have a question about the OnTimer(). If the OnTimer() should trigger while the EA is in Sleep() will the EA continue to Sleep() or will the OnTimer() function operate?
whroeder1
17092
whroeder1  
Only one event runs at a time. If OnTick is sleeping, OnTimer is in the queue and will run when OnTick returns.
Mladen Rakic
72281
Mladen Rakic  
Peoples11:
Hello all I have a question about the OnTimer(). If the OnTimer() should trigger while the EA is in Sleep() will the EA continue to Sleep() or will the OnTimer() function operate?

Sleep function

Suspends the execution of the current thread until the time-out interval elapses.

To add comments, please log in or register