fxDreema

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

    The largest losing position of all open positions

    Questions & Answers
    4
    12
    1037
    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.
    • R
      Rodrigo Ortuzar last edited by

      Hello, can you help me with this block, I need to select a position, the most losing of all, I have not been able to, can someone give me some light.
      shared/mMuxmaclb
      0_1649602492057_af68c4f5-c2db-4282-951b-9b3c93d7f81d-image.png

      Affectionate Rodrigo

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @Rodrigo Ortuzar last edited by

        @rodrigo-ortuzar Not sure how mouse clicked will help in this, I'm not sure how you would do this you could possibly have multiple blocks each checking a different trade, so as you have it there but in for each position have the trade and in others have it missing trades, put this into a comment so you can check 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
        • R
          Rodrigo Ortuzar last edited by

          I am using a button on the chart that, when I press it, searches all the open losing positions, only finding the one with the greatest loss, that is why I develop it in "on Chart", to later place other conditions or close it or open another against etc
          Sorry for the rest of how to find the position with the greatest loss, I only understood that you have to compare each position and see which is the one with the greatest loss, but I did not understand how, can you explain it to me in more detail please.

          Affectionate Rodrigo

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @Rodrigo Ortuzar last edited by

            @rodrigo-ortuzar something like this should do it: https://fxdreema.com/shared/qOj5dwNAb

            0_1649629115343_eb39f170-c9e8-4838-a9e0-7a05e4391d88-image.png

            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
            • R
              Rodrigo Ortuzar last edited by

              Does something like this make logical sense to you ?
              https://fxdreema.com/shared/RlgvwyjGd
              0_1649631902208_b1fd0925-6661-4463-a898-9d431ef9f7d3-image.png

              Affectionate Rodrigo

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

                @rodrigo-ortuzar Purple blocks cannot be used on the 'on tick' tab. Then one you are using can only be fully operational on the 'on chart' tab.

                (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
                • R
                  Rodrigo Ortuzar last edited by

                  If you totally agree with "on Chart", there is also the "on Init" button.
                  The logic to identify the biggest losing position is that I'm lost, how to get to a losing position, it's like a loop in a loop, how to do it, I need lights.
                  https://fxdreema.com/shared/p8nMSxiXb
                  0_1649705218278_16868e1e-03d9-4a91-b39e-6639a570ae31-image.png

                  Affectionate Rodrigo

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    majinrex @Rodrigo Ortuzar last edited by

                    @rodrigo-ortuzar
                    Can you not utilize the blue block labeled "close least profitable" ? I would think you can filter it and place a follow up if that is your design

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

                      @majinrex the on init section only works once when EA starts, orange blocks need an orange for each block on top.

                      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
                      • R
                        Rodrigo Ortuzar last edited by

                        Hi majinrex, I don't want to close the position, but open another against it with higher volume.
                        jstap you are right to execute when you press a button on the chart it should go in "on Chart"
                        https://fxdreema.com/shared/eqydhdYtb
                        That's the way it is, but blocks 2,3,4,5 don't work to obtain the position with the greatest loss, apparently it can't be done, I don't know ?

                        Affectionate Rodrigo

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          majinrex @Rodrigo Ortuzar last edited by

                          @rodrigo-ortuzar

                          1. you need to keep the on chart information where it is currently.
                          2. I think you aren't recieving information on the positions because you have nothing in the tick area or the ontrade area. I don't see how it can perform any calculations if there is nothing from which to pull from.
                          3. Definitely add a pass block to your modifiy variables (copy them, then add pass block) and put that in ontick.
                          4. the mouse click on object states you will click on and object "<losser" which is what block exactly? I did not see a block with that name..
                          1 Reply Last reply Reply Quote 0
                          • R
                            Rodrigo Ortuzar last edited by

                            Thanks majinrex, I tell you:
                            https://fxdreema.com/shared/ObgZFYHce
                            1.- Okay.
                            2.- I manually open the positions to test this losing strategy, so you don't need anything in "on Tick".
                            3.- and 4.- In the "on Init" tab, block 13 "> losser" is a button called >losser, when pressing it on the chart it executes in "on Chart" the block "Mouse clicked on object" that It refers to the button called "> losser" and so later the entire sequence of blocks attached to this block is executed.
                            5.- Blocks 6, 7 and 8 work well, what they do is that once the position with the greatest loss is defined, its volume is obtained and multiplied by a constant to increase its volume, and another position is opened with this higher volume but against, and it was buy, sell opens and if it was sell, buy opens.
                            6.- The problem is that blocks 3, 4 and 5, which are to define the position of greatest loss, do not work, this is the part that I need help with.
                            How to get the highest losing position ?

                            Affectionate Rodrigo

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

                            Online Users

                            S
                            E
                            S
                            N
                            O

                            13
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors