Download MetaTrader 5
To add comments, please log in or register
Ask your broker to open the official channel. Thousands of traders will read the news!
ben
39
ben 2015.05.02 12:27 

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
13641
whroeder1 2015.05.02 18:52  
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