How to get my highest account balance?

 

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 

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 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
Reason: