I need a script that can automatically pause an EA from opening new order: if x% drawdown of account balance or equity has been reached.
If the EA has been paused, print on screen says "EA paused" or give me any indication so i know it is paused.
If drawdown improved, resume the EA automatically.
Setting i can change is: Drawdown percentage, balance or equity.