The identifier, account.Balance. I need the identifier for Account Balance Max.
double AccountMax = 0; ///////// void OnTick() { AccountMax=(AccountMax>account.Balance())?AccountMax:account.Balance(); }
Icham Aidibe's solution won't work on restarts; it has no recovery code.
Calculate it on the first tick, by ordering history by date. See:
Could EA
Really Live By Order_History Alone? (ubzen) -
MQL4 and MetaTrader 4 - MQL4 programming forum
Count how
many lost orders from the last profit order -
MQL4 and MetaTrader 4 - MQL4 programming 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