Cancel ALL pending orders (also TP and SL)

 

There is an EA that cancel all pending orders (see attached). But it  leaves on market pending take profit and stop loss, that really are also pending orders. Is there an EA that cancel ALL pending orders (that is also take profit and stop loss)?

Thanks

 
  1. Your script (not an EA) deletes all pending orders. Any remaining TP/SL are part of open orders.
  2. Why did you post your MT4 question in the Root / MT5 EA section instead of the MQL4 section (bottom of the Root page?)
 
Albalunga: This sections is "EA and automated trading" so I thought it is for both MT4 and MT5
General rules and best pratices of the Forum. - General - MQL5 programming forum
Reason: