fxDreema

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

    How to trade only after S1 and R1 of Pivot Point?

    Questions & Answers
    2
    9
    1391
    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.
    • D
      divinefang last edited by

      Hi all,

      I am building an intraday strategy I would like to restrict my Long trade ONLY if the low of candle ID 2 (2 bar ago) is BELOW the Daily S1 level. Opposite for Short.

      So I need to calculate S1 and then compare it to the low of candle ID 2. And I am having problem with applying math calculation here and doing the comparison on fxdreema builder.

      Please help me, thanks!

      • Daily Pivot Point (P) = (H+L+C)/3
      • S1 = 2xP - H
      • Therefore S1 = 2(H+L+C)/3 - H
      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        What about some indicator like this one?: http://www.mql5.com/en/code/10990

        It's also possible to calculate this stuff directly, for example in "Custom MQL4 code" block, but maybe it will be slower for backtest.

        1 Reply Last reply Reply Quote 0
        • D
          divinefang last edited by

          Can you show me the calculation in the custom box please? Thanks!

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

            I just added this to the web version: http://prntscr.com/3j4k79

            1 Reply Last reply Reply Quote 0
            • D
              divinefang last edited by

              That's very kind of you. Thank you so much!

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

                You can check if everything is fine. I used formulas that I found here: http://en.wikipedia.org/wiki/Pivot_point, otherwise there are many different kinds of pivot points out there.

                1 Reply Last reply Reply Quote 0
                • D
                  divinefang last edited by

                  The screenshot shows Daily Candle ID is 0. But I am supposed to use 1, right?

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

                    No, use 0 by default. 1 is added inside the code. Calculations are over Candle ID + 1 candle, but for Candle ID candle. You can use "Indicator tester" to check any value.

                    1 Reply Last reply Reply Quote 0
                    • D
                      divinefang last edited by

                      Thanks!!!

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

                      Online Users

                      T
                      S
                      E
                      F
                      G
                      E
                      D
                      M

                      25
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors