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
Discussion about brokers is not allowed in the forum.
Hello,
The NormalizeDouble() function is not working, don't know if the current build or not. I have used it in a lot of programs, so am not new to it. I tested it in both MQL4 and MQL5 both returning the same number. A previous compiled .ex4 and .ex5 are working well, but compiling with the current MetaEditors I facing the above.
Thanks
The NormalizeDouble() function is not working, don't know if the current build or not. I have used it in a lot of programs, so am not new to it. I tested it in both MQL4 and MQL5 both returning the same number. A previous compiled .ex4 and .ex5 are working well, but compiling with the current MetaEditors I facing the above.
Thanks
It changes a number only to the exponential value closest to the target value (x = a*e^b), but not exactly to the target value if it cannot be represented by the mentioned formula.
To achieve this visually you have to use DoubleToString(), because this turns the internal representation a*e^b into a string of digits and a decimal point - but then you can't calculate with it any more.
Sorry, but your expectation of NormalizeDoulbe is wrong.
It changes a number only to the exponential value closest to the target value (x = a*e^b), but not exactly to the target value if it cannot be represented by the mentioned formula.
To achieve this visually you have to use DoubleToString(), because this turns the internal representation a*e^b into a string of digits and a decimal point - but then you can't calculate with it any more.
Find a Server by the Broker's Name:
https://www.mql5.com/en/forum/9950/page88#comment_3981953
https://www.mql5.com/en/forum/214820