Question regarding OnTick event handler
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.
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