fxDreema

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

    Trouble with "Trade closed" block

    Questions & Answers
    5
    12
    1986
    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.
    • A
      Andreks last edited by Andreks

      Hello. I ve made a working EA but I am having trouble with "Trade closed" block. It works well with Buy positions, but doesn't work at all with Sell.
      I need it to close all positions if Sell position reaches SL. And another block for opening new position if TP is hit. It just doesn't do it. I hope somebody can help me figure it out.
      0_1567976592625_ss.PNG

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @Andreks last edited by

        @andreks Hi, for me works

        https://fxdreema.com/shared/R2k7kTNG

        1 Reply Last reply Reply Quote 0
        • A
          Andreks last edited by Andreks

          @ambrogio
          Yes. Exactly my problem. It works with buy positions. Once buy is closed it opens sell. But it doesn't work vice versa. If sell position is closed via TP it doesn't open new buy position.
          Or if sell position is closed with SL it doesnt close all positions.

          1 Reply Last reply Reply Quote 0
          • T
            trader.philipps last edited by

            ^How does your close trades section look like? Maybe you just copied it and don't specify the Filter by Type setting?
            Furthermore I'd work woth a For each Trade block before the Close trade block.

            I like to share my knowledge, but expect the others to contribute as well.

            1 Reply Last reply Reply Quote 0
            • A
              Andreks last edited by Andreks

              This is how it looks like
              https://fxdreema.com/shared/oJCHzAi1c
              I think there is nothing wrong with logic. But for some reason right side of blocks doesn't behave the same as left side.

              @trader-philipps I ve tried "For each trade" block but for some reason it doesn't do nothing remotely close to what I am expecting from it.

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

                Try filtering by type on blocks 4 and 8. Now both close buys and sells at the same time. Just limit the to buys OR sells only.

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

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

                  @l-andorrà I tried it already. It closes all sells if buy SL is reached. But if sell SL is reached it only closes the most recent buy position and for some reason triggers my "No trade" block on tick and EA opens new positions even though the previous wasn't closed completely and are still running.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Andreks last edited by Andreks

                    Thank you everyone for assistance. I solved the problem. I tested both sell and buy completely separate and it was doing exactly what I want it to do. And to get them work together, I just needed the turn the sell blocks off if buy was triggered and vice versa.
                    This is how it looks like

                    https://fxdreema.com/shared/f4voGo9ge

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

                      Congratulations! 🙂 Just curious. Why are you turning ON/OFF different blocks when considering buys and sells? I think they should be exactly the opposite of the other.

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

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

                        @l-andorrà
                        Because the EA sometimes is running trades both directions and if SELL trade was closed with SL it had to close all trades at the same time. But instead it closed only the most recent BUY trade which was in profit and opened new sell trade. In my opinion EA thought that "BUY close with TP" was trigered because buy trade was in profit and it executed blocks accordingly.

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

                          Ok. Thanks for the clarification. Once again, good job! 😉

                          (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
                          • B
                            BEK last edited by

                            how do I use indicators to exit the market because my strategy has dynamic take profits and stop loss

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

                            Online Users

                            G
                            A
                            E
                            I
                            A
                            T
                            S
                            E
                            S

                            20
                            Online

                            146.8k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors