Download MetaTrader 5

Account drawdown calculation?

To add comments, please log in or register
ben
39
ben  

hi all,

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.

 

whroeder1
15331
whroeder1  
Forex_cellence: Does anyone know of a way to program an EA to calculate the maximum or current drawdown in your trading account balance or equity?
Could EA Really Live By Order_History Alone? - MQL4 forum
To add comments, please log in or register