donnacitra98:
Hey all,
I would like to ask how to get the exact values of mql calendar ? I already got the value and divided it with 1 million as suggested, but it is still rounding up. I tried typecasting as well but still the same. In this case, the exact value is 46.5, but it keeps producing 46 as the value.
Try to cast to double before division or simply make the constant double:
(values[i].prev_value)/1000000.0Also change the type of prev (and the return of the function itself) to double from long.
Stanislav Korotky #:
Try to cast to double before division or simply make the constant double:
Also change the type of prev (and the return of the function itself) to double from long.Thank you for your response. Before you response, I also tried using GetPreviousValue() and it works as well. However, when I get the valued needed, why is some value so different with other sources ? Is the value reliable in MQLCalendar ?
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
I would like to ask how to get the exact values of mql calendar ? I already got the value and divided it with 1 million as suggested, but it is still rounding up. I tried typecasting as well but still the same. In this case, the exact value is 46.5, but it keeps producing 46 as the value.