Order event

 

I would like to know to handle an order event. For example, when an order is close then it will automatically alert a message.

Thanks!

 
MT5 has void OnTrade(), there is no such event in MT4.  You must code it. In OnTick, count your open orders and when that changes call your own OnTrade.
Reason: