Managing Events

 

 hi guys, this is the point:
Supposing in 1 instant I have onTick() and OnChartEvent(), which one gets priority?
I know when we are inside onTick(), other onTicks events are ignored....what happens when we are inside OnChartEvent()?


Thanks a lot.

 
Documentation on MQL5: Event Handling
Documentation on MQL5: Event Handling
  • www.mql5.com
The MQL5 language provides handling of certain predefined events. The functions for handling these events should be defined in an MQL5 program: function name, return type, a set of parameters (if any) and their types should strictly correspond to the description of an event handling function. The client terminal event handler uses the return...
 
Marco Montemari:

 hi guys, this is the point:
Supposing in 1 instant I have onTick() and OnChartEvent(), which one gets priority?
I know when we are inside onTick(), other onTicks events are ignored....what happens when we are inside OnChartEvent()?


Thanks a lot.

OnTick() event is queued (only once).
Reason: