fxDreema

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

    Prev Day close + ATR go long - how to do it?

    Questions & Answers
    0
    6
    436
    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.
    • F
      FabioW last edited by

      Hi, I try to make an EA where it buys after 15m candle close above a level that is some pips (based on atr) above prev day close.
      Another words:
      Prev day close price + ATR = go long level
      Prev day close price - ATR = go short level
      and the triger is a 15m candle close above or belov those levels. Sort of breakout strategy.

      I can't come up with a way of doing it... can any one help?

      Thanks in advance

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @FabioW last edited by

        @fabiow In here, you'll see how to get ATR in pips: https://fxdreema.com/forum/topic/12802/atr-pips add this value to day candle 0 close, this will change as charts move so your timings will change the result, if you get these numbers into variables once per day and levels won't change.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • F
          FabioW last edited by

          i did it like this:

          https://fxdreema.com/shared/il2kksEib

          but I don't think i did it right... am I close or totaly wrong?

          0_1672503980074_e5b50558-20d0-4bc4-8db5-1cccb3e536ca-image.png

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @FabioW last edited by

            @fabiow Standard atr will give you the price fraction, this is why converting to pips needs to be done.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            1 Reply Last reply Reply Quote 0
            • F
              FabioW last edited by

              I am getting closer. I have EA working like I want it to work, I have D1close and ATRvalue in variabels as value/numeric, but I don't know why EA is not taking any trades. This are conditions I tried:
              https://fxdreema.com/shared/q747ZGIDb

              0_1672510302077_91bb5ece-74a6-4e31-a35d-72639d1f6d10-image.png

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @FabioW last edited by

                @fabiow When creating EA's test 1 condition at a time, if working add another, keep doing this until you find the block that's stopping EA from working.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

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

                Online Users

                K
                M
                L
                E
                H
                M
                M

                12
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors