fxDreema

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

    Total Lot size changes to more decimal places

    Questions & Answers
    2
    4
    83
    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
      pipsondeck last edited by

      Hey Guys, I found a problem, i have a condition where
      buy lots == sell lots

      But the problem is when the lot is added upto 0.06. it now shows 0.0600005 which will make the buy lots != sell lots

      What would be the work around on this?

      98b3f62b-9b76-442e-bec9-0affd0ab198e-total lots buy became a lot of decimal.png

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

        Add a shared link to see where this is doing this, but NormalizeDouble(variable name,2); will fix

        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! 😊

        P 1 Reply Last reply Reply Quote 1
        • P
          pipsondeck @jstap last edited by

          @jstap hello. that made the trick.

          thank you!

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

            @pipsondeck 👍

            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

            P
            R
            A
            D
            A

            33
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors