fxDreema

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

    Is there anyway to combine all of my stop-loss orders into one big order?

    Questions & Answers
    2
    7
    1057
    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

      Lets say that:

      I'm long four lots on the EUR/USD from different price levels and I'm profitable in the trade.
      All of my stops are at my average price.
      I want to move all of my stops in one quick motion (to lock in profits).

      How can I have 1 stop-loss order of four lots instead of 4 stop-loss orders of one lot?

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

        @dan-2 How do you define that "quick motion"? A button? Fxdreema can't really alter the metatrader interface, just add-on elements.

        Finding the proper lot amount is easy done with a loop.
        Or, if you want a permanent solution, switch to mt5 netting account..

        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

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

          @roar By "quick motion" I mean moving the stop-loss order line on my chart with my mouse and moving it to where I want.

          Here's the work around I'm trying to design:

          Drawing a trendline at my average price. [ I figured out how to to this ]
          Placing all of my stops based on the location of my trendline. [ I figured out how to to this ]
          Moving the trendline with my mouse and having all of the stop-loss orders move with it. [ I have NOT figured out this one]

          Any thoughts?

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

            @dan-2 Ah, I see! Let me think a minute

            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

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

              This mess of blocks seems working for some reason: https://fxdreema.com/shared/JYbZWfZnd
              A variable to track the horizontal level changes:
              0_1573243345420_de28aed5-b285-43cc-a216-91e67500e72d-image.png
              Object name must be in this constant:
              0_1573243389276_4f7c9dd7-8204-4e90-be36-8f4da0c6babe-image.png

              Note that this works tick-by-tick, so there might be some seconds delay after moving the line, if market is quiet.

              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

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

                @roar Thank you for making this! I appreciate it!

                Should I just copy this and add it to the EA I'm making?

                Side note: I can't copy more than one block at a time anymore. I'm not sure why. Anytime I highlight two or more blocks and right click I don't get the option to copy... only paste. Thoughts?

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

                  @dan-2 Yes, copy-paste works. Remember to declare the variables and constants too.
                  And I don't know what function you use to make that line - make sure it is named as my constant "allstop"

                  Edit: wtf did I think you wrote... well, have you tried just refreshing the page?

                  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

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

                  Online Users

                  C
                  S
                  S
                  P
                  C
                  E

                  12
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors