Pending Order Activate

 

Hello! Is it any other method to detect when pending order is activating? Other then loop through all orders and search by OrderType() ?

For example a have  5 pendings open, and when one of them activates, I want to trigger other actions.

Thanks!

 
DannyBass: Hello! Is it any other method to detect when pending order is activating? Other then loop through all orders and search by OrderType() ? For example a have  5 pendings open, and when one of them activates, I want to trigger other actions. Thanks!

Only on MQL5 do you have transaction events.

One MQL4, you have to loop/poll to find out.

 
Fernando Carreiro #:

Only on MQL5 do you have transaction events.

One MQL4, you have to loop/poll to find out.

Thanks! 
Reason: