fxDreema

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

    Forecast of the sum of Stop Loss Calculation of pending or open orders

    Questions & Answers
    2
    6
    595
    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.
    • OntradingX
      OntradingX last edited by

      Can you help me?

      I want to work with pending orders and already open orders.
      All of them will have the same Stop Loss price in the case of a line that I placed on the chart and named as StopLoss.

      I want my EA to calculate the negative stop loss value of each order individually and add up all these values.

      Imagine as in the image below:
      I have order 1 open at the price 1880.434 and the white line is at 1859.633
      So if we perform the distance calculation we have a distance of:
      1880,434-1859,633=20801 points
      (20801=distance from opening price)*(current lot 0.07)*100=USD -145.61

      Now imagine I have a second open order:
      1870,622-1859,633= 10989 points
      (10989=distance from opening price)*(current lot 0.07)*100=USD -76.92

      The sum of these 2 orders should then be USD -222.53

      In short, I want my EA to be able to get the negative value that each order will cost if a certain market value is set by me and add all these values ​​together.

      Can you help me find this out?
      For just one order it is very easy but to do this calculation with several orders I am not able to.

      0_1651200007715_sumoforders.png

      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
      Site: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Boa sorte a todos nós!

      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
      Website: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Good luck to all of us!

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

        @ontradingx So you mean you want to add the combined maximum loss of all open trades right now to open a third trade with a stop loss distance worth that combined loss? Are you sure that is a safe money management?

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

          In my strategy for some markets, I consider this management to be ideal because it allows you to inform, according to your account balance, how much you would bear if the market went against you, and in this way it would show you exactly the size of your maximum loss even before you authorize the opening of the first order. Manually I've been using it since 12/2020 and my account is with + 800% profit, now I want to automate it. In short, I initially want the calculation to be with pending orders. If I place 10 pending orders on the chart with a distance between them of 100 points and the stop loss of all of them I set to be equal at the same price at 1500 points away from the first order, what would then be the negative value that would be caused if the market hit the stop loss and close all orders? this is what i want. display the total stop loss value of the sum of all orders.

          Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
          Site: https://www.ontradingx.com.br
          Youtube: https://www.youtube.com/@ontradingx
          Boa sorte a todos nós!

          English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
          Website: https://www.ontradingx.com.br
          Youtube: https://www.youtube.com/@ontradingx
          Good luck to all of us!

          OntradingX 1 Reply Last reply Reply Quote 0
          • OntradingX
            OntradingX @OntradingX last edited by

            @l-andorrà

            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
            Site: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Boa sorte a todos nós!

            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
            Website: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Good luck to all of us!

            OntradingX 1 Reply Last reply Reply Quote 0
            • OntradingX
              OntradingX @OntradingX last edited by

              @ontradingx @l-andorrà
              Hi friend, I think I figured it out.
              I used the Bucket of positions and "Average Value" block, then I created a few more blocks to calculate the average value of all orders by multiplying by the number of orders and with the price where I want my stop loss target to be.
              I haven't finished it yet because the calculation is getting more complex as I progress in creating my EA idea, but it's already one more stage won.
              Thanks for making it available to try to help me, I'm often too slow to think about these crazy calculations I want to do in this thankless market heeheh

              Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
              Site: https://www.ontradingx.com.br
              Youtube: https://www.youtube.com/@ontradingx
              Boa sorte a todos nós!

              English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
              Website: https://www.ontradingx.com.br
              Youtube: https://www.youtube.com/@ontradingx
              Good luck to all of us!

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

                @ontradingx You're welcome. If you need more help, just be back here! 😉

                (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

                A
                G

                5
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors