fxDreema

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

    Detecting Range

    Questions & Answers
    4
    10
    1696
    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.
    • G
      gajus last edited by gajus

      Hi everybody,
      I'm trying to build an Open Range Break Out EA.
      It's detecting the range between 0 an 9 o'clock.
      If the candle closes above the highest price level of that range -> open buy trade
      If the candle closes blow the lowest price level of that range -> open sell trade
      SL = highest/lowest price level
      TP should be 1.5 the range size.

      Here's where I'm struggling:

      • detecting the distance between highest/lowest range price
      • only one trade (buy or sell) should be executed - actually that does not work

      Any help would be appreciated

      https://fxdreema.com/shared/vP5FCHFJc

      jstap TipsyWisdom 2 Replies Last reply Reply Quote 0
      • jstap
        jstap @gajus last edited by

        @gajus Your no trade block should limit to only 1 trade, using market properties and candle ID you can get the high and the low candle, high - low will give you the distance.

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

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

          @jstap Thanx for your immediate reply 😉
          I'm now calculating the range shape with market properties highest/lowest price and that works nice.
          I also tried those properties for getting the range size into a variable "RangeSize" via the "formula" block for using as SL and TP, but that does not work as the trades are closed immediately...

          https://fxdreema.com/shared/AnvL77ZLc

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

            @gajus You need a label in the comment or nothing displays, the distance is already a price fraction so you only need to display the numeric value:

            0_1643319360593_8210afd2-ebdb-4258-aed4-52a098c16851-image.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! 😊

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

              @jstap Thanks for your input, comment now works. I just put it in to see what range size is detected. But it gives me the wrong range size. As you see in pic 1 the range size is determined BEFORE the range has ended. The size will be correctly saved in the "RangSize" variable, TP is set correctly, but depending on the wrong range size. And although there is a "Once a day"-Block trades are open only on a few days... 1_1643481966008_Range1.png 0_1643481966007_Range2.png

              https://fxdreema.com/shared/Aixjtaj5b

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

                @gajus The comment block is limites to work just once per day when you need it to show the results all day, you should remove it. That 'pass' block is also unnecessary. What do you exactly mean the range is not 'ended'? The range is in formation until 09:00 as per your blocks settings. How can it not be 'ended' before that time?

                (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.

                G 1 Reply Last reply Reply Quote 0
                • G
                  gajus @l'andorrà last edited by gajus

                  @l-andorrà said in Detecting Range:

                  @gajus The comment block is limites to work just once per day when you need it to show the results all day, you should remove it. That 'pass' block is also unnecessary. What do you exactly mean the range is not 'ended'? The range is in formation until 09:00 as per your blocks settings. How can it not be 'ended' before that time?

                  Thanks to your hint I now managed it to work: Changed the "once per day" time and the candle-id's within the formula block. Now the range size is correct. But still opens up more than one trade per day...

                  l'andorrà 1 Reply Last reply Reply Quote 0
                  • TipsyWisdom
                    TipsyWisdom @gajus last edited by

                    @gajus said in Detecting Range:

                    Hi everybody,
                    I'm trying to build an Open Range Break Out EA.
                    It's detecting the range between 0 an 9 o'clock.
                    If the candle closes above the highest price level of that range -> open buy trade
                    If the candle closes blow the lowest price level of that range -> open sell trade
                    SL = highest/lowest price level
                    TP should be 1.5 the range size.

                    Here's where I'm struggling:

                    • detecting the distance between highest/lowest range price
                    • only one trade (buy or sell) should be executed - actually that does not work

                    Any help would be appreciated

                    https://fxdreema.com/shared/vP5FCHFJc

                    open range breakout EA, where in the world did you get that idea?

                    G 1 Reply Last reply Reply Quote -1
                    • G
                      gajus @TipsyWisdom last edited by

                      @tipsywisdom hahaha, don't know. The idea came suddenly into my mind...
                      For me it's a start to get deeper into ea programming using fxdreema - that's the reason why 😉

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

                        @gajus Then use a 'no trade' block to stop more trades to be open.

                        (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
                        • 1 / 1
                        • First post
                          Last post

                        Online Users

                        Y
                        D
                        B
                        E
                        T

                        13
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors