fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Draw indicator value

    Questions & Answers
    2
    2
    867
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Processman last edited by

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

      ......
      cci.jpg

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        B
        A
        J
        D
        E

        36
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors