fxDreema

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

    Trying to calculate the distance in pips between Candle Open and MA

    Questions & Answers
    2
    4
    352
    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.
    • J
      jjtrader last edited by

      Hi, I have scoured the discussion board and tried a few options but I am still nor able to make this work.

      Goal calculate the distance from candle open to an indicator buffer. (e.g. ma) Then use this number in pips for the SL and TP.

      Here is what I have tried so far... https://fxdreema.com/shared/dQw7u0JCc

      Can anyone help me fix it? Thank you!

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

        Why do you need to convert the distance into pips? The SL selection supports many other number types too, a price level for example.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 1
        • J
          jjtrader last edited by

          Hi Roar, thank you for responding. I am trying to calculate a variable to use for the SL and TP. The distance in pips for each trade (candle open and indicator buffer level) is going to be different and I want the program to calculate it automatically. It seems like it should have worked for the "modify variable" block, but it doesn't (?)

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

            The variable unit can then be set for SL=1 times, TP1=1 times, TP2= 2 times, etc. or different risk to reward strategies.

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

            Online Users

            Q
            C
            T
            S
            A
            M
            R
            G
            G
            Y
            C
            S

            38
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors