Download MetaTrader 5
To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
V Q
122
V Q 2013.10.29 17:17 

Hello  everybody

So the question is: What happens when a new tick arrives while ontick event  is still processing previous tick??

Is this tick event discarded??? or is there a tick queue to be processed so all ticks are definitely processed????

Thanks in advance


Juan

Alain Verleyen
Moderator
28522
Alain Verleyen 2013.10.29 17:45  
jbru:

Hello  everybody

So the question is: What happens when a new tick arrives while ontick event  is still processing previous tick??

Is this tick event discarded??? or is there a tick queue to be processed so all ticks are definitely processed????

Thanks in advance


Juan

The new tick is not processed, there is no queue. You lost it.

See documentation for new Tick

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.

V Q
122
V Q 2013.10.29 17:59  
angevoyageur:

The new tick is not processed, there is no queue. You lost it.

See documentation for new Tick

Thanks so much  angevoyageur


juan


/
To add comments, please log in or register