fxDreema

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

    atr based break out

    Questions & Answers
    3
    14
    844
    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
      PipTheRipper last edited by PipTheRipper

      Hi, im trying to make a simple ea that buys when a bull candle has a total pip size bigger than 2x ATR.

      1: I use a formula block to get the atr value and multiply it by 2. I put the output value into the variable "atr"
      2: I use a formula block to multiply the vairable "atr" with 10000 to convert it into a pip value. I put this output into the variable "atr_multiplied".
      3: I set a condition that if candle 1 has a total pipsize larger than "atr_multiplied", then buy now.

      Something is not working properly. When the ea opens trades, the rules are met. But sometimes the rules are met, but no postions are opened, and i dont understand why.

      https://fxdreema.com/shared/Isch6Fofd

      0_1629050599139_atr screenshot.png

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

        @piptheripper In this link you will see how I convert ATR to pins for every pair. Hope this helps

        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
        • P
          PipTheRipper last edited by

          @jstap Thanks for the code. very usefull! In my case, I basically have done the same(atr * 10000) for a 5 digit currency/broker. Im using icmarkets and testing on EURUSD. I printed comments and I can see that the variables are working fine. I just cant understand why sometimes, even if the "buy now" conditions are met i.e -> candle is larger than 2xATR(in pips) the ea does not open any trades.. Any ideas?

          1 Reply Last reply Reply Quote 0
          • P
            PipTheRipper last edited by PipTheRipper

            In the screenshots you can see what i mean.

            The comment in lower left corner is the ATR in pips x 2.
            The comment in the lower right corner is the candle pipsize.

            In the first example you see the ea opens a trade as the candle size is bigger than ATRx2
            In the second example the candle is bigger than ATRx2, but no trade is opened..

            1_1629108960997_atr working.png !
            0_1629109234722_atr no trade.png

            jstap l'andorrà 2 Replies Last reply Reply Quote 0
            • jstap
              jstap @PipTheRipper last edited by

              @piptheripper Hi, I do not see why it wouldn't because logically it has no reason not to. If you put a shared link on here then I will gladly look to see if anything is wrong.

              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! 😊

              P 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà @PipTheRipper last edited by

                @piptheripper Your condition block is using pips calculatio 'as is'. You should use 'as price fraction' instead.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                  @jstap here is the link. Thanks! https://fxdreema.com/shared/Isch6Fofd

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

                    @piptheripper Your condition's are saying if candle is equals or less than ATR multiplied buy/sell, is this not backwards? Should it not be if candle is equals or greater than ATR multiplied buy sell?

                    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! 😊

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      PipTheRipper last edited by

                      @l-andorrà Thanks for your reply! I tried that, but when using "price fraction" the ea opens trades at any time as long as there is no other trade open. So it does not follow the condition block..

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

                        @jstap sorry about that. I had already corrected this in my main project. Didnt realize the settings were still wrong in this shared project. Here is another link https://fxdreema.com/shared/cPLFW1U8d

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

                          @piptheripper If you change price fraction to as is it should work, at the minute you are comparing pips to fraction.0_1629128935359_Screenshot (565).png

                          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! 😊

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

                            @jstap still the same thing. If you look at the screen shot below.
                            The comment in the top left corner is the ATR value multiplied by 2.
                            The comment in the bottom left corner is the ATR (multiplied by 2) in pips.
                            The comment in the bottom right corner is the candle size (which is bigger than the ATR multiplied)

                            I really do not understand what is happening..

                            here is the project link updated https://fxdreema.com/shared/vBmhTsxGb

                            0_1629270208686_NO TRADE.png

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

                              @piptheripper I have readvised the ATR pips to work with MT5 link, I have tested and all seems to work. Hope this helps.

                              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
                              • P
                                PipTheRipper last edited by

                                Sorry for the late reply, been working on other things. Really appreciate your help!

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

                                Online Users

                                K
                                A
                                D
                                S
                                G

                                13
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors