fxDreema

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

    Average price stop-loss order for a group of trades.

    Questions & Answers
    4
    13
    1860
    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.
    • D
      Dan 2 last edited by

      I’ve made an EA that places four buy orders above the market, but I can’t get the EA to place a stop-loss order at the average buy price.

      I need one stop-loss order at the average price whether I have two entry points , three entry points, or four entry points. Every time the market hits another buy stop I want the EA to move the stop-loss accordingly to my new average buy price.

      I also need to be able to move the stop-loss for all four buy stops by moving the red stop-loss line on my chart once. I need one stop-loss order for 4 units, not four stop-loss orders for 1 unit.

      Please help me figure this out. Thank you.

      (I tried to upload a screenshot of my EA, but it didn't work)

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

        Please go to the builder and then:

        Projects --> Create a shared link --> select the link and a new browser tap will open with your project --> Copy the URL here.

        That's much better than a screenshot.

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

        D 1 Reply Last reply Reply Quote 0
        • D
          Dan 2 @l'andorrà last edited by

          @l-andorrà Thank you for your help. I really appreciate it!

          https://fxdreema.com/shared/t3cdukLuc

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

            It doesn't work because you are using the 'On Init' tab only. That means all oyur blocks will be executed just once and never again. I recommend you to move all of them to the 'On tick' 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
            • D
              Dan 2 last edited by

              I'm sorry for my delayed response. I was out of town.

              But if I use the "on tick" tab then the EA will be constantly putting out buy orders. I only want four buy orders to be placed.

              Is there anyway to use both the "On Init" tab and the "On tick" tab in one EA?

              Thank you again for your help. This problem is really stressing me out.

              1 Reply Last reply Reply Quote 0
              • J
                josecortesllobat last edited by josecortesllobat

                @Dan-2

                Follow the suggestion given by @l-andorrà.

                To avoid opening more trades of that you want, you have to set which trades do you want to look at with the "No position" block

                0_1572899484551_4a5f9136-3bf0-440f-b3f4-08db5d088526-image.png

                "Group Mode = Group #" looks for the the trades that match with the group number specified. If the field Group # is not filled, there is no trade to look at.

                "Group Mode = All" looks for any trade that is currently running.

                D 1 Reply Last reply Reply Quote 0
                • D
                  Dan 2 @josecortesllobat last edited by

                  @josecortesllobat Thank you for the suggestion.

                  How do I use the "no trade" block to make sure I only place four buy orders?

                  Where do I attach the "no trade" block?

                  1 Reply Last reply Reply Quote 0
                  • J
                    josecortesllobat last edited by

                    @Dan-2

                    Try this out

                    0_1572979842091_ab59e5fb-34d3-4d88-a300-b86ad9b67dbe-image.png

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

                      @josecortesllobat It should be added on top the "no pending orders" block

                      1 Reply Last reply Reply Quote 0
                      • J
                        josecortesllobat last edited by

                        @ambrogio You are correct but it depends on what @Dan-2 wants to get.

                        From the project shared by @Dan-2,

                        If "No trade" is running, run true output and place 4 buy pending orders

                        But if it wants to look at the pending orders as well, it is required an additional block like as follows

                        If "No pending order" & "No trade" is running, run true output and place 4 buy pending orders

                        So, it depends on what needs to be met.

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

                          @josecortesllobat said in Average price stop-loss order for a group of trades.:

                          @ambrogio You are correct but it depends on what @Dan-2 wants to get.

                          From the project shared by @Dan-2,

                          If "No trade" is running, run true output and place 4 buy pending orders

                          Yes, but @Dan-2 complained that with "no trade" had multiple pending orders, so I suggested the "no pending orders"
                          If you only place "no trade" ==> "buy pending orders" (and that's what @Dan-2 did), you will have endless pending orders

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

                            @Dan-2

                            0_1572991167839_s.JPG

                            and also

                            0_1572991278349_s.JPG

                            1 Reply Last reply Reply Quote 0
                            • D
                              Dan 2 last edited by

                              @josecortesllobat and @ambrogio Thank you both so much for your help! I really appreciate it!

                              I will try your suggestions and let you know how it goes.

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

                              Online Users

                              O
                              J
                              B

                              14
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors