EA to close all trades based on loss of equity % AND turn off other active EA's?

 

Hi,

Just working with an EA, and would like to have some safeguards put in.  Wondering if there is an EA that closes all positions based on account drawdown from max, say 35% drawdown, closes everything (making sure the entire account doesn't drop to zero.


But I also want it to turn off the active EA's, or turn off auto-trade, so the EA doesn't keep making trades until I come back and turn it back on manually.  Any thoughts?  I have seen a lot of EA's that close all positions based on amount, but I want one to go off of drawdown of account, wherever that is, and that turns off auto trading.  Thank you.

 

To turn off algo trading, you need to enable DLL Call and use Windows API to enable or disable algo trading after you reach your drawdown!

https://www.mql5.com/en/code/39068

How to Disable/Enable Auto/Algo-Trading in both MT5 and MT4.
How to Disable/Enable Auto/Algo-Trading in both MT5 and MT4.
  • www.mql5.com
Just simple codes to Disable/Enable Auto/Algo-Trading in both MT5 and MT4. Of course, DLLs must be allowed, This cannot be done without DLLs