fxDreema

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

    Normalize double - price from object on the chart

    Questions & Answers
    2
    4
    1476
    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.
    • M
      miro1360 last edited by

      Modify variables (variable1) - Object on the chart (Attributes numeric), Object source (Pick by name), Object name (line1), Attribute (Price level 1)

      When I get price value from line1 (created on the chart), it give me value in 8 decimals (example: 1.12955725) and I need it in 5 decimals (1.12956)
      ? 🙂

      Between trading and gambling is a very small gap, be careful.

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

        Do you have problems if you use it that way?

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          I am not trying it in block Condition yet, but I think it can there working without problems.
          Now, it is only visual problem in chart (example: I need know pips between two moved lines on the chart, so (price in line1 - price in line2)*10000 = pips
          and there pips are in 7 decimals, like 8,1234567
          it is not functional problem, only visual 😄
          I ask only, if there is a way implemented to normalize these double in fxdreema, when no, I can make custom block to normalize double 🙂

          Between trading and gambling is a very small gap, be careful.

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

            There is a MQL4/MQL5 function called NormalizeDouble. Most of the time you can work with these values, only sometimes they need to be normalized. Why... I don't know really, this is some thing in C++ that I still don't understand.

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

            Online Users

            A
            H
            A
            S
            M
            A

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors