Devbrat Daga / Publications
Forum
Rounding Down Account Equity to Nearest 100
Hello, I am still learning MQL4. I have written this code as part of my EA. double maxLossDollar = (MathRound(AccountEquity()/100) * 100) * maxLossPerc; Alert ("maxLossDollar: " + maxLossDollar); The above code Rounds up to nearest 100 when the balance is between x50.01 to x99.99. Any guidance