Draw indicator value
-
Hello
How can cut off the extra digits when using "draw text" box and indicator value ? ... Is it possible ?

......
cci.jpg -
Hm, this is interesting. Now I am also wondering if I can add some parameter for this, but there is a chance that I will fail implementing this, because the block is also designed to draw text and there are some issues in MQL4 when we mix numbers with strings or vice versa.
Otherwise there is this function http://docs.mql4.com/convert/doubletostring that obviously turns any floating number into a string with X digits after the point. The thing is that function takes a variable.
The other way is to use this function http://docs.mql4.com/convert/normalizedouble to normalize the value that the indicator is giving to the EA. I would probably do this directly into the indicator itself... if this is a custom indicator of course.