The documentation tells you how to do this. In fmod you divide by 1 and get the fractional part of the number or 0. You don't care how many decimal places are entered in the field or in the input variable.
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.
The documentation tells you how to do this. In fmod you divide by 1 and get the fractional part of the number or 0. You don't care how many decimal places are entered in the field or in the input variable.
It works, it's the easiest solution!
Thank you!
I get the wrong value, around zero
The indicator is in Examples
What is the problem?
I get the wrong value, around zero
The indicator is in Examples
What's the problem?
Do you create a new indicator handle at every tick?
No, it is in OnInit
No, it is in OnInit
And so it does
Roman Sharanov:
Nothing has changed, it still shows e+321
Nothing has changed, it still shows e+321
UseDoubleToString() to output price values with the desired accuracy