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 |
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.