How to get normal value?
-
When i store some indicator value into variable ( for example Accelerator Oscilator )., and then print it i see number like:
-7E.08-05 But when i hover on Terminal - i see value like: 0.0005678
So how to get the normal value like: 0.0005678 ??? Coz i need to operate with that numbers... -
MetaTrader decides how to format the number automatically in this case. There is a function DoubleToString() to format the number, but the second parameter of this function is the number of digits after the decimal point. If I put 8 digits it prints the value normally, but if the value is for example 10, it prints 10.00000000. So I don't know how to make it work properly for big and small numbers. One way is to add new parameters in the "Comment" block for formatting, but I don't think that I like the idea... I don't know.