fxDreema

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

    Variable not working for chart price

    Questions & Answers
    2
    3
    417
    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
      Pipologist last edited by

      The comment box shows the the proper value. (Buy ATR/Sell ATR)
      I believe the problems come from the value having too many digits to the right of the decimal point. (ie. 000.00000000) as it works fine when using a variable with value given with the right chart format (000.000 usd/jpy)
      Can anyone confirm this?
      and if so, is there a way to convert this to the right format.

      I'm using PRICE - ATR*3 which is giving me the excessive digits

      https://fxdreema.com/shared/JTK0ubGjc

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @Pipologist last edited by

        @pipologist Check the block IDs! The Custom MQL Code block (ID 2) is running before you modify the ATR variable! However, that might just be a side affect.

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • T
          trader.philipps last edited by

          Check my post in https://fxdreema.com/forum/topic/7938/atr-strategy-i-m-confused-help-me-please/2
          There I show how to transform ATR value into pip value (independent from digits) and can easily be added / reduced from any price.

          I like to share my knowledge, but expect the others to contribute as well.

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

          Online Users

          Y
          L
          F
          S
          F
          N
          S
          E
          H
          E

          22
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors