MR.:
I want to use auto lot sizing like this :
balance 1000 - 1999 lot 0.01
balance 2000 - 2999 lot 0.02
balance 3000 - 3999 lot 0.03
I am already used " % of balance => lot 100% "
and it gives me lot 0.01 on balance 1000 .. but when the balance exceed 1500 the lot becomes 0.02
and when balance becomes 2500 the lot turns to 0.03
but this is not what i want .. as i said .. i want the auto lot like that :
balance 1000 - 1999 lot 0.01
balance 2000 - 2999 lot 0.02
balance 3000 - 3999 lot 0.03
and so on ....
any help ???
use this
double lot=NormalizeDouble(MathFloor(AccountBalance()/1000.0)*0.01,2);
What error did you get

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
I want to use auto lot sizing like this :
balance 1000 - 1999 lot 0.01
balance 2000 - 2999 lot 0.02
balance 3000 - 3999 lot 0.03
I am already used " % of balance => lot 100% "
and it gives me lot 0.01 on balance 1000 .. but when the balance exceed 1500 the lot becomes 0.02
and when balance becomes 2500 the lot turns to 0.03
but this is not what i want .. as i said .. i want the auto lot like that :
balance 1000 - 1999 lot 0.01
balance 2000 - 2999 lot 0.02
balance 3000 - 3999 lot 0.03
and so on ....
any help ???
The text above has been restored by moderator, after OP deleted it twice to start a new "double" thread, against forum rules, of which the second time under a different user name, which is also against the website's Terms and Conditions.
12.11. The User shall use only one unique MQL5 ID on the www.mql5.com website. In case additional/repeated User accounts are detected, all of them shall be closed. MetaQuotes Ltd also reserves the right to invalidate all payment transactions made from additional/repeated accounts.