fxDreema

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

    draw text round numbers

    Questions & Answers
    2
    4
    185
    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.
    • S
      sajadhmz.vp.phd last edited by

      Hello everyone .
      I have made an EA wich name is VAR .
      Ihave used open price and close price to calculate the difference in pip mode and then use it in a “ draw Text “ near to trade position on chart .
      Question is :
      How can I limit my calculations and round it to 2 decimal digits and then draw a text ????
      ( O C Diff & C O Diff Variables )

      https://fxdreema.com/shared/JTOAfGYdd

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

        To limit to 2 decimal places do this: DoubleToString(O_C_Diff,2)

        image.png

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 1
        • S
          sajadhmz.vp.phd last edited by

          Thank you so much . i wish the best for you and your family too .

          thank you again man .

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @sajadhmz.vp.phd last edited by

            @sajadhmz-vp-phd 👍

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

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

            Online Users

            M
            T
            E
            A
            P
            V
            R
            M
            G
            H
            J

            30
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors