OnTrade Function Logic

 
good day. if the OnTrade event is runing.
void OnTrade()


and we open another Position, inside the OnTrade will the OnTrade finish execution or it cuts and starts again.


void OnTrade()
{
if( OrderSend(request,results))
{
Print("Order Placed");
}
}

will the Print funcvtion be executed or not. 

NB: Currently using Mobile device no PC with MT5 closeby

 
Jefferson Metha: we open another Position, inside the OnTrade will the OnTrade finish execution or it cuts and starts again.

Same as OnTick; an event is added to the queue. Only when the function returns, will the next event handler is called.

 
William Roeder:

Same as OnTick; an event is added to the queue. Only when the function returns, will the next event handler is called.

Thank you 
Reason: