I don't understand exactly what is your doubt about... Do you need to "extract" the 16th digits from the number to apply some rules to it?
PS. I suggest to always normalize values about indicators and prices at the symbol digits. (_Digits)
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
Hi, We have an indicator where it finds the highest High within given 4 candles. And then it stores this value in a variable of type Double.
Sometime it change the value in double variable. For example highest high is 1.12347 in M15 EURUSD based on given four candles. And it is stored in a double variable.
double r = highest high
when we print the value, it shows 1.1234700000000002
and for some numbers it shows 1 as the 16th digit.
Could anyone help that which type of numbers, it is storing 16th digit. We need to identify those numbers to apply some logic.