Download MetaTrader 5

Cancel ALL pending orders (also TP and SL)

To add comments, please log in or register
Albalunga
23
Albalunga  

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

whroeder1
16563
whroeder1  
  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?)
whroeder1
16563
whroeder1  
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
To add comments, please log in or register