Download MetaTrader 5

How to get my highest account balance?

To add comments, please log in or register
dck
70
dck  

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
Biantoro Kunarto
17420
Biantoro Kunarto  

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
To add comments, please log in or register