The easiest solution is to use NormalizeDouble() to round the lot size to required precision. A better solution would be to use MathMod() in tandem with MarketInfo( Symbol(), MODE_LOTSTEP ). Whichever makes more sense in your situation.
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
My lotsize calculation on a mini account might result in an 2-decimal double odd number such as .67 or 2.51.
How would I determine if the number is odd and change it down to the nearest even number (such as .66 and 2.50)?