EA that closes all trades and pending on a predetermined price

 

Hi,

Do you know of any EAs for MT4 that closes all open trades and pending orders if a predetermined price is reached ?

I was able to find it but only for MT5.

Thanks.

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Requests to execute trade operations are formalized as orders. Each order has a variety of properties for reading. Information on them can be obtained using functions Position identifier that is set to an order as soon as it is executed. Each executed order results in a deal that opens or modifies an already existing position. The...
Reason: