You can use a static variable that save your account balance after you close your position, with checking if current balance > previous than variable = current balance, if not than variable = previous.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
- www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Account Properties - Documentation on MQL5
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,
for an custom Money management I would like to know the highest account balance.
Is there a solution except from looping through the History Deals?
thank you