Not a bug, just the way things work. See here for more info: https://www.mql5.com/en/forum/162193#comment_3881993
Normalize double error
- www.mql5.com
Why this is happening? http://screencast.com/t/IVUWE3n2 I use the next codeline but some values are correct and others not, why it could be...
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'm trying some calculation
double NewVol,
Min_Volume = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MIN);
NewVol = MathRound(Balance / (RR * AdjPoints));
NewVol = NormalizeDouble(NewVol * Min_Volume, 2);
The first line NewVol should get a whole number like 7.0 and its getting correct value
But second line results gives me 0.07000000000000001