fxDreema

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

    Rebalancing by Closing Oldest Loss with In Profit

    Questions & Answers
    2
    8
    319
    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.
    • B
      bigfoot last edited by

      I've been trying to figure out this for a while but need some help, please?

      Logic: the least profitable closes at a loss only when the in profit trades cover the loss + Xprofit

      Example :

      • Trade 1 loss -20

      • Trade 2 Loss -5

      • Trade 3 profit + 20

      • Trade 4 profit +15

      Close T4, 3 and 1 close.

      • Trade 4
      1 Reply Last reply Reply Quote 0
      • B
        bigfoot last edited by

        https://fxdreema.com/shared/TG8X1J4Lc

        I've thought of collecting the values of all the + trades and oldest - trade as a variables and then using the close all profitable and the least profitable if value of all is at £X
        Boxes 31 to 41 but it doesn't work?

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

          Not sure I fully get the logic behind it. Is the bot supposed to close ALL open trades regardless howmany of them are open roght now as far as there is a minimal overall profit maybe? Because what will then happen is that as soon as there is just one open trade in profit it will be immediatelly closed.

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

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

            @l-andorrà The idea is that it only closes all the open trades that are in profit and then the oldest open trade that is in loss. The combined in profit and loss trades = x in pips or money before closing.

            The other losing trades are left running and the cycle starts again.

            I trade this manually at the moment and it's profitable if you are patient. 😉

            Hope this makes sense? Happy to answer any questions.

            Cheers! 👍

            1 Reply Last reply Reply Quote 0
            • B
              bigfoot last edited by

              @l'andorrà you can also close the trade if there is only one open and that hits the take profit set by x pips/money. That is the ideal situation but if that trade goes into negative that's when the money management of rebalancing works.

              1 Reply Last reply Reply Quote 0
              • B
                bigfoot last edited by

                1.I need to get a value from all running trades in profit and get a value of the least profitable(negative) trade.
                2.Then with this value use it as a variable in the check profit (unrealised) as profit amount.
                3.Then close all profitable and least profitable

                Any ideas how to get 1. so I can use it as a variable?

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

                  In that case you will need a custom array, because there can be different combinations of open trades in profit/loss. You will need a loop searching for all trades with those values and store the magic number into an array. Later, depending on the magic number and the profit/loss, closing them. Sadly fxDreema does not offer standard blocks to create custom arrays. You will need to hire a programmer to do it for you or maybe jstap can be helpful here. I'm afraid this goes beyond by capabilities, sorry. 😞

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

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

                    @l-andorrà Thanks for this feedback, I thought that maybe the case looking at all of the options to do this. It seems a simple request to compare all in profit to 1st non-profit but now not the case.

                    Cheers 🙂

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

                    Online Users

                    E

                    11
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors