An agent called me to tell me about the merits of the application. $100.00 paid into the account and nothing. No new phone message, no email or SMS. I have a hundred bucks lying around in MQL5 and I can't do anything with it. Why phone people who want to start trading if it's to leave them to their fate. A whole service. I will never give your name as a reference.
An agent called me to tell me about the merits of the application. $100.00 paid into the account and nothing. No new phone message, no email or SMS. I have a hundred bucks lying around in MQL5 and I can't do anything with it. Why phone people who want to start trading if it's to leave them to their fate. A whole service. I will never give your name as a reference.
Metatrader is different from your broker, Why would an agent convince you to pay in money? Research your broker. Brokers normally never contact you first.
// A short exampledouble Price = ChartGetDouble(0, CHART_PRICE_MAX, 0);
Print (Price); // 0.86760000000000004 (Using EurGbp)
Price = NormalizeDouble(Price, _Digits);
// Or even using an "int" 5// NormalizeDouble (Price, 5);Print (Price); // 0.86760000000000004 (the value remains unchanged
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.
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
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.
Carl Schreiber #: 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.
I checked the reference again just to be sure, from what is written there, it is for rounding a number after the decimal point, and that was my expectation.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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