Download MetaTrader 5
To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
vlarry
29
vlarry 2016.01.10 15:26 

Dear community,

If an OnTick occurs while the code in the OnTick section is processed, due to a previous tick, does the program ignore the tick or do the program cancel the processing code? 

With best regards,

Larry 

Alain Verleyen
Moderator
29472
Alain Verleyen 2016.01.10 15:42  
vlarry:

Dear community,

If an OnTick occurs while the code in the OnTick section is processed, due to a previous tick, does the program ignore the tick or do the program cancel the processing code? 

With best regards,

Larry 

It ignores the tick. See documentation :

The NewTick event is generated if there are new quotes, it is processed by OnTick() of Expert Advisors attached. In case when OnTick function for the previous quote is being processed when a new quote is received, the new quote will be ignored by an Expert Advisor, because the corresponding event will not enqueued.

/
To add comments, please log in or register