fxDreema

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

    How to close these orders?

    Questions & Answers
    3
    9
    1208
    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
      ambrogio last edited by ambrogio

      Hi, in the case of a grid of orders, when I put the number of trade = 6 would that if the price retrace at the previous level of the order (# 5) I would like to close the losing trade # 6 and only the two positive # 1 and # 2, this is an old project and I do not come out
      Thanks in advance
      https://fxdreema.com/shared/qdful4ATd

      0_1579887823454_Cattura.png

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

        @ambrogio Use "for each trade" loop, and just modify the looping direction and "not more than n" setting.
        0_1579970549501_1370bd69-adb7-4e27-8273-f6ca83ffb75b-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

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

          Just curious. What looping direction should be used?

          (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
          • A
            ambrogio @roar last edited by

            @roar thanks for the lighting, in fact I solved better with fewer blocks (or at least it works) 🙂

            https://fxdreema.com/shared/BzDS48CCc

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

              This loop within a loop is a very interesting feature, ambrogio. I don't fully understand how it works. If I guess it correctly, the first 'For each trade' block will find the newest open buy and then, the second 'For each trade' below will seach for the oldest two open buys?

              If so, how can you link each pending orders with the exact previous buy? I can't see it now.

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

                Putting a loop inside a loop is basically a multiplication.

                If there are 100 open trades and 3 trades meet the loss condition, then 2 oldest trades are closed 3 times.
                As a result, 3 loss trades and 3*2=6 old trades are closed, 91 trades will be left open.

                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

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

                  @roar You mean there's something wrong in my updated project?

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

                    @ambrogio No, actually I think it's just optimal

                    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

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

                      @roar ok, thank you!

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

                      Online Users

                      D
                      L
                      H

                      7
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors