fxDreema

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

    Assign a sell pending order to a particular buy trade

    Questions & Answers
    3
    9
    291
    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
      Jaychyke last edited by

      I have a strategy. At the end of each candle, draw a Fibonacci retracement from the high to the low of the (now previous) candle. Set a Buy pending order for the high of the previous candle, and a Sell pending order at the low of the previous candle.

      If the Buy pending order triggers, immediately set a Sell pending order (for the current Buy trade). I was able to generate the initial pending orders, but the secondary Sell pending order (that is if the Buy trade triggers) is not being activated. What am I getting wrong? https://fxdreema.com/shared/dGLPUEq2c

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

        Split things into separate trees, you likely need a if no trade/order block, use on trade tab so if an order becomes a trade an order is placed.

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

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

          @jstap Thank you for kindly replying to my enquiry. I have applied your recommendations and tweaked several, but I am still not getting the results I intended.

          I want my EA, on launch, to draw a Fibo retracement from the high of the previous candle to the low of the same candle. The Fib has the following levels: 0,1,-0.5,1.5, 0.236, 0.764, 1.25, -0.25, and 0.5.
          The EA should open a Buy pending order at the High (Fib level 1 (1) of the previous candle (SL at Fib level 5 (0.764), TP at Fib level 6 (1.25) and a Sell pending order at the low of the same candle (fib level 0, SL level 4 (0.236), TP level 7 (-0.25).

          If the Buy trade triggers first, the EA should delete the Sell pending order, and vice versa. On a Buy trade, the EA should immediately open a Sell pending order with double lot size at the SL of the buy trade (Fib level 5 (0.764), SL at level 1, TP at fib level 8 (0.5). Similarly, if the sell trade first triggers, the EA should open in double lots a Buy pending order at level 4 (0.236), SL at level 0, TP at level 8 (0.5).

          If any of the recent pending orders is triggered, a new pending order is created in double lots, similar to the original pending orders (Buy or Sell).

          I have tried my best, but I don't know what I'm doing wrong: https://fxdreema.com/shared/qcN3jQZN. I need your help again, please.

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

            What I would do is create the EA the EA with only a couple of trees, and then test. This way is easier to assess what's happening.

            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
            • J
              Jaychyke last edited by

              Thank you for your reply. Did you look at what I"ve done so far (the link)? I have succeeded in having the trades executed, but to have the pending orders deleted after a successful trade (TP won) is closed is still a problem. You may wish to be more specific in your help, Sir. Thank you for your undeserved care.

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

                No because you want people to assess many blocks, so what is happening is a lot of work to see.

                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
                • J
                  Jaychyke last edited by

                  Ok, I understand.

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

                    My question is How do I tag a particular pending order to a specific previous trade so that when that previous trade closes in a loss, my pending order will trigger? In what I've done so far, some pending orders trigger while others do not. In the link shared here https://fxdreema.com/shared/918rU9Fgd, blocks 15 and 24 do trigger fine but blocks 32 and 36 do not trigger. What can I do to correct this?

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

                      You will need a custom code array doing that if there are several open positions and/or programmed pending orders at the same time. I'm afraid no block in fxDreema can do that.

                      (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

                      M
                      M
                      E
                      M
                      A
                      H
                      E
                      E
                      M
                      S

                      14
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors