fxDreema

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

    How to roundup numbers

    Questions & Answers
    4
    5
    3004
    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.
    • vish
      vish last edited by vish

      I am printing the Stochastic value on a dashboard through a variable but the value comes with many decimal points. I just need to round up. Upon searching MQL, I found the following function but I dont know how to use this on fxdreema. I want to roundup the value and store into a variable which is printed on the dashboard. Hope someone can help

      MathRound
      The function returns a value rounded off to the nearest integer of the specified numeric value.

      double MathRound(
      double value // value to be rounded
      );

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        The easiest way is by using a "Custom MQL code" block

        0_1536653753684_95887358-717a-49d5-b2e4-2ae3abeb3d5e-image.png

        Add the MQL function inside the block

        0_1536654013029_48a5c2df-bfeb-4bf9-8b50-bd0d1321eae8-image.png

        It is posible to add the MQL code in fields of some blocks but I think this is the simpliest way.

        ajmd97fx 1 Reply Last reply Reply Quote 0
        • vish
          vish last edited by

          Great! thank you for quick reply

          1 Reply Last reply Reply Quote 0
          • ajmd97fx
            ajmd97fx @josecortesllobat last edited by ajmd97fx

            @josecortesllobat hi, i do the following and it doesn't work for me, digits keep appearing on the graph. Really, what I want is to round to only 2 digits.
            Thank you very much in advance

            0_1602884731252_b09829d3-43aa-42cf-ad07-4866753f1271-image.png

            0_1602884838693_cf6a2040-812e-4812-b43b-d53b9763a1a1-image.png

            ANTONIO JESUS

            l'andorrà 1 Reply Last reply Reply Quote 0
            • l'andorrà
              l'andorrà @ajmd97fx last edited by

              @ajmd97fx Maybe this can help:

              https://fxdreema.com/forum/topic/8188/how-can-i-round-a-number/2

              (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

              (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

              (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

              Online Users

              R
              F
              S
              D
              V

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors