Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 329 1...322323324325326327328329330331332333334335336...1177 New comment Alexey Semenov 2013.12.09 22:01 #3281 yen 3 digits, the rest 5 digits. Alpari. Алексей Тарабанов 2013.12.09 22:06 #3282 alexey1979621: yen 3 digits, the rest 5 digits. Alpari. Request Digits from the programme to be printed. Алексей Тарабанов 2013.12.09 22:11 #3283 Anticipate the question - I usually use the simplest option: if( Digits%2>0.5 ){ Points*=0.1; Speed*=0.1; } Alexey Semenov 2013.12.09 23:03 #3284 tara: Anticipate the question - I usually use the simplest option: The priming didn't work. Artyom Trishkin 2013.12.09 23:08 #3285 alexey1979621: The priming didn't help. You've got the wrong attachment on the wrong side. Have you tried DoubleToStr() to "see with the right precision"? Алексей Тарабанов 2013.12.09 23:13 #3286 alexey1979621: This has been removed. But the problem lies elsewhere - in normalisation. For some reason the EA sees 4 decimal places instead of 5. How do I fix it? What does this conclusion mean? Alexey Semenov 2013.12.09 23:49 #3287 artmedia70: You stuck the wrong hotkey on the wrong side. Have you tried DoubleToStr() to "see if it's accurate"? Read the tutorial on this thing string DoubleToStr( double value, int digits) Converts a numeric value to a text string containing a character representation of a number in a specified accuracy format. Parameters: value - Value with floating point. digits - A precision format, the number of digits after the decimal point (0-8). Example: string value=DoubleToStr(1.28473418, 5); // the content of string value is "1.28473" However, I still haven't figured out where to stick it in our case. Here we go again, boss. int init() { if (Digits ==3 || Digits ==5) // для пятизначного брокера { TakeProfit *= 10; StopLoss *= 10; Slippage *= 10; Step *= 10; BULevel *= 10; NotBULevel *= 10; } return(0); } [ARCHIVE]Any rookie question, so How do I format [WARNING CLOSED!] Any newbie Алексей Тарабанов 2013.12.10 00:01 #3288 alexey1979621: Read the tutorial on this thing. string DoubleToStr( double value, int digits) Converts a numeric value to a text string containing a character representation of a number in a specified accuracy format. Parameters: value - Value with floating point. digits - A precision format, the number of digits after the decimal point (0-8). Example: However, I still haven't figured out where to put it in our case. Save the guv'nor again. Алексей Тарабанов 2013.12.10 00:03 #3289 Think. Just think, there is time. Artyom Trishkin 2013.12.10 00:03 #3290 alexey1979621: Read the tutorial on this thing. string DoubleToStr( double value, int digits) Converts a numeric value to a text string containing a character representation of a number in a specified accuracy format. Parameters: value - Value with floating point. digits - A precision format, the number of digits after the decimal point (0-8). Example: However, I still haven't figured out where to attach it in our case. Save the chief again. There is nothing to attach it to. This is where it can be attached: Print("А ведь цена-то Ask ("+DoubleToStr(Ask,Digits)+") у меня однако с точностью Digits"); It is for output in string format, not for calculation. 1...322323324325326327328329330331332333334335336...1177 New comment
yen 3 digits, the rest 5 digits. Alpari.
Request Digits from the programme to be printed.
Anticipate the question - I usually use the simplest option:
Anticipate the question - I usually use the simplest option:
The priming didn't help.
This has been removed. But the problem lies elsewhere - in normalisation. For some reason the EA sees 4 decimal places instead of 5. How do I fix it?
You stuck the wrong hotkey on the wrong side. Have you tried DoubleToStr() to "see if it's accurate"?
Read the tutorial on this thing
However, I still haven't figured out where to stick it in our case. Here we go again, boss.
Read the tutorial on this thing.
However, I still haven't figured out where to put it in our case. Save the guv'nor again.
Read the tutorial on this thing.
However, I still haven't figured out where to attach it in our case. Save the chief again.
There is nothing to attach it to.
This is where it can be attached:
It is for output in string format, not for calculation.