fxDreema

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

    How can i close a group of trades when they are in specific profit,EVEN there are multiple others running in loss?

    Questions & Answers
    4
    22
    4968
    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.
    • F
      fxmich78 last edited by

      How can i close a group of trades when they are in specific profit,EVEN there are multiple others running in loss?0_1560890552062_ggfhghh.png

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

        Take a look on this thread:

        https://fxdreema.com/forum/topic/7363/how-to-make-that-close-condition/9

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

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

          @l-andorrà

          I am sorry but i am not so good to understand how...

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

            Look at the example EA by @roar. Essentially you need to put all trades into an array and create a project similar to the one he included there.

            Probably @roar himself could explain how to do it again here for you. Are you hearing this roar? 😉

            (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 1
            • roar
              roar last edited by

              Hi!
              How do you distinguish "this group" of trades from all other trades? By trade age?

              For example: pick all trades that are 2 days old -> if this group is net profit -> close this group
              Sounds good? I can make the algo

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              F 1 Reply Last reply Reply Quote 0
              • F
                fxmich78 @roar last edited by fxmich78

                @roar
                Hello!Sorry for the late reply,i was away for business and couldn t reach FXdreema.

                I am sending you another screenshote to tell you exactly what i need.
                Is there any function that:
                Check if we are in a specific or bigger Drawdown,then whe give the command that when 2 or three winning trades are overcome the loss of one or two losing to close them?
                0_1561411243297_ex.png

                roar 1 Reply Last reply Reply Quote 0
                • roar
                  roar @fxmich78 last edited by roar

                  @fxmich78 I made this very simple, we can improve from here if needed.
                  https://fxdreema.com/shared/MzuDN140b
                  How the logic goes in this:

                  • If biggest losing trade is down $200 or more
                    -> Check if overall account is on profit (equity > balance)
                    -> If yes, close ALL trades

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    fxmich78 @roar last edited by

                    @roar
                    First of all,thank you for your Kindness to help me .I really appreciate this!

                    Second,in the example we have lets say.7 open buys.
                    The currend DD lets say is -600$.
                    BUT in the mean time we have 2 out of six trades starting to profit.
                    What i want is:
                    when the profit of these two trades(We are still in big DD though) are big enough to overcome one loosing trade,i want these three to close.
                    I hope i made it clearer.Or not?

                    I want this function to take place only when we are on a specific or more drawdown.

                    roar 1 Reply Last reply Reply Quote 0
                    • roar
                      roar @fxmich78 last edited by

                      @fxmich78 This should be pretty close: https://fxdreema.com/shared/cMfIpPQtd
                      It uses lots of loops, and thus not very easy to understand 😄

                      First loop just finds the biggest loser.
                      Second loop starts going through all trades, starting from biggest winner. It makes a sum of the profits, and when that sum is bigger than the biggest loser, it activates 2 last loops: firstly it closes the loser, secondly it closes x number of biggest winners (x being TradeCount variable)

                      Constants and variables are your best friends in FxDreema https://fxdreema.com/tutorial/builder/constants-and-variables

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                      F 2 Replies Last reply Reply Quote 0
                      • F
                        fxmich78 @roar last edited by

                        @roar
                        Thank you again for your effeort.
                        I will try to understand all these code and i will contanct again whether for a problem or to thank you once again.!

                        1 Reply Last reply Reply Quote 1
                        • F
                          fxmich78 @roar last edited by

                          @roar
                          I am sorry my friend,but i am trying to compile it and it gives me errors.0_1561454180073_jjjjj;l.png

                          roar 1 Reply Last reply Reply Quote 1
                          • roar
                            roar @fxmich78 last edited by roar

                            @fxmich78 Sorry, forgot to mention - I used variables in this project, and if you copy the blocks, you have to declare the same variables.
                            Update your constant and variables (find them in left panel, below project name) as these:
                            0_1561455215354_a0d2d8c6-a359-4ffe-9411-80bffbe790a6-image.png
                            0_1561455226809_c0615f06-8e92-4160-a546-e90e0304aa57-image.png

                            Need small help? Tag me in your post
                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              fxmich78 @roar last edited by

                              @roar
                              lets try,they seem very difficult as i am self tought.

                              roar 1 Reply Last reply Reply Quote 1
                              • roar
                                roar @fxmich78 last edited by roar

                                @fxmich78 I'm self tought, too - didn't visit this forum for a year or so when I started 😄
                                Help is always positive, but in the end, you learn the fastest by trial and error

                                Need small help? Tag me in your post
                                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  fxmich78 @roar last edited by

                                  @roar
                                  can i add in the ex you sent me my code to see how can we solve it,as i did that but maybe i am doing something wrong and do not work.?

                                  roar 1 Reply Last reply Reply Quote 0
                                  • roar
                                    roar @fxmich78 last edited by roar

                                    @fxmich78 You can share the project from the Projects-menu in upper left corner

                                    Need small help? Tag me in your post
                                    Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fxmich78 @roar last edited by

                                      @roar
                                      https://fxdreema.com/shared/Iu8dsAEFb

                                      Can you add in this the situation that,when we are in DD lets say,200$ and we have many positions open,then,WHEN some positions start to profit,they will have to close along with a loosing position given the fact that they overcome the total profit BETWEEN them.

                                      roar 1 Reply Last reply Reply Quote 0
                                      • roar
                                        roar @fxmich78 last edited by

                                        @fxmich78 https://fxdreema.com/shared/le2CyfDhb
                                        I put my blocks to the project. Now it is closing the biggest losing trade, if winners cover it.
                                        Note that this is not going to close the 2nd biggest loser, or 3rd biggest, it always focuses on the biggest.

                                        You can download the .mq4 and then import the file to your builder, the variables will come along that way.

                                        Need small help? Tag me in your post
                                        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fxmich78 @roar last edited by

                                          @roar
                                          I have two questions.
                                          What if i want to close the lowest loser at the moment 1 or more winning trades cover it?

                                          and,second,how can i import it after downloading?(i am sorry if i cause you too much trouble)

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

                                            1cbc8ecb-c286-48d6-acaf-86b303857a3a-image.png

                                            So it would be better and easier in pips to close all orders in profit, for those who have been looking for this and see, I realized that this forum has many questions and few answers that solve the problem

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

                                            Online Users

                                            W
                                            M
                                            M
                                            A
                                            E
                                            A

                                            23
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors