fxDreema

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

    2 candles after cross and other conditions - EA problem

    Questions & Answers
    2
    9
    373
    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
      j4nc0 last edited by

      Hi, I've been trying to develop in FxDreema for a while now and I'd like to solve this strategy. Could you help me with the conditions? I've drawn it on a chart for better understanding.

      I need to meet the conditions:

      After the buy cross - find 2 consecutive sell candles (candle 1 < candle 0)
      = highest HIGH since the cross - after 2 consecutive sell candles = > on this HIGH put an entry BUY pending order
      SL = Lower low before cross
      or 2 last low Fractal

      After the sell cross - find 2 consecutive buy candles (candle 1 > candle 0)
      = lowest LOW since the cross - after 2 consecutive buy candles = > on this LOW put an entry SELL pending order

      SL = higher high before cross
      or 2 last high Fractal

      Risk per position = 1%

      If an order is placed and we break the level where SL is - at SELL high and at BUY low, then if the price breaks this before activating the trade = we delete the order.

      If a SELL position is opened and the conditions for opening a BUY position are met = BUY is activated, then close the SELL position immediately.

      And also if a BUY position is opened and the conditions for opening a SELL position are met ´= SELL is activated, then close the BUY position immediately

      conditions.PNG

      my efforts

      Simple version:
      demo.PNG

      Old version:

      demo2.PNG

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

        You are requesting the crossing and the consecutive candles to happen at the exact same time when they are supposed to happen at separate moments in time. You will need either variables controlling those events or loops searching for them in the past. I don't see any of those in the simple version and not sure of it on the old one. Can you please confirm?

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

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

          Yes, I need help with this. I used variables in the old version, but according to the line I found that it didn't work properly.

          I'm attaching the version where I should search for a crossover, because I deleted the old version. I didn't know how to solve it anymore

          https://fxdreema.com/shared/zI6Z84aWb

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

            @l-andorrà To understand - The trade will always be entered only when the condition is met - cross + 2 opposite candles in a row.
            Cross is clearly given. 2 opposite candles are at most 20 candles away from the cross. Otherwise the trade is invalid.

            Risk is 1% and TP to SL is 1:1
            I probably forgot to write these things.

            If a cross occurs, I had the variable Buy_cross = 1 and Sell_cross = 1
            because these variables were by default with the value 0.
            And after 20 candles they were reset to the value 0.

            That was my logic, but it didn't work for me, because I couldn't configure it correctly in the blocks

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

              Well, that was a good idea. You definitely need variables to confirm the crossing is valid. This is what you need (general idea)

              1. Buy crossing happens. That means Buy_cross = 1 and Sell_cross = 0
              2. On a different branch tree block, you need to use a condition block requiring Buy_cross = 1 AND then another block searching for the consecutive candles. If conditions happens a buy is open.
              3. When a sell crossing happens, then Buy_cross = 0 and Sell_cross = 1. You don't need to count 20 candes anymore.

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

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

                Yes, great, so I added it back and used it as a condition.

                https://fxdreema.com/shared/jF2BVfnGb

                Now I need to determine the highest high from the buy cross condition to the 2 sell candle condition next to each other - which will be the buy pending order price level

                How to do it?

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

                  @l-andorrà
                  Here is update:

                  https://fxdreema.com/shared/vbS52wrR

                  solved ? :
                  ☑ if cross to buy

                  • ☑2 consecutive sell candles (candle 1 < candle 0)

                  ☑ If cross to sell

                  • ☑2 consecutive buy candles (candle 1 > candle 0)

                  ☑ counting max 20 candles
                  ☑ Risk 1 lot = 1%

                  I NEED:

                  × If a BUY is opened, close the SELL position (if it is open)
                  × If a SELL is opened, close the BUY position (if it is open)

                  × for SELL
                  SL = high before crossover
                  or 2. the last high of the Fractal

                  × for BUY
                  SL = Low before crossover
                  or 2. the last low of Fractal

                  (SL it is good to see in the picture above)

                  Thanks for help

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

                    Sorry for not having noticed toyr last request. Can you please confirm the previous link is the last version of your project?

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

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

                      @l-andorrà Yes, it is last version my project

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

                      Online Users

                      E
                      J
                      T
                      J

                      16
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors