Does anyone know of a way to program an EA to calculate the maximum or current drawdown in your trading account balance or equity?
ie what your current ACCOUNT_EQUITY is relative to your 'account peak equity'.
if there is no built in way to do this, could you trawl your order history pool to get info on profit/ loss of closed orders, plus commissions, plus deposits and withdrawals and calculate an array of equity/ balance from this?
I know it can be done as Myfxbook.com has a great equity/ balance graph that it calculates using only info from your MT4 platform.
Any help would be greatly appreciate.
To add comments, please log in or register