[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 168
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
Please tell me how to round off a value to 4 decimal places.
I have a calculation like this
where Price1_M5_1 and Price2_M5_1 are values of quotes. However, a_M5_461 is not four decimal places, but more, as long as the expression contains the multiplication by 4.61. We need to make the value be rounded to 4 decimal places.
Please tell me how to do it. I can't find it anywhere.
Please tell me how to round off a value to 4 decimal places.
I have a calculation like this
where Price1_M5_1 and Price2_M5_1 are values of quotes. However, a_M5_461 is not four decimal places, but more, as long as the expression contains the multiplication by 4.61. We need to make the value be rounded to 4 decimal places.
Please tell me how to do it. I can't find it anywhere.
Thank you very much. This is the second time you've helped.
Thank you.
Thank you very much. This is the second time you've helped.
Thank you.
Is that all the indicator you're doing. Or is it something else?
Is that all the indicator is doing. Or is it something else?
I'm doing it. I'm in no hurry. The indicator is complicated, but I'm interested in doing it myself. I like complex tasks.
Your option does not work. When a value is displayed on the screen, 8 decimal places are shown. Of these, 4 are zeros.
Your option does not help. When a value is displayed on the screen, 8 decimal places are shown. Of these, 4 are zeros.
NormalizeDouble() is used for calculations, DoubleToStr() is better for output;
NormalizeDouble() is used for calculations, DoubleToStr() is better for output;
Yes. It fits perfectly. Thanks again.
Please advise what the error is:
As a result, Buffer1[i+1] and Buffer1[i+30] show 0 when the Indicator starts.
After some time Buffer1[i+1] starts to show non-zero value (why not immediately?),
but Buffer1[i+30] stays 0.
- What is it related to?
Please advise what the error is:
As a result, Buffer1[i+1] and Buffer1[i+30] show 0 when the Indicator starts.
After some time Buffer1[i+1] starts to show non-zero value (why not immediately?),
but Buffer1[i+30] stays 0.
- What does this have to do with it?
And what i equals?