fxDreema

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

    Immediate pending order closure

    Questions & Answers
    3
    8
    689
    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.
    • B
      Bigape last edited by Bigape

      A question for all skilled visitors to this forum;
      is there a block or a costum code to close all pending orders almost immediately?
      My EA sometimes has over 200 open pends and when it closes in profit it must immediately close the countless open pends (over 200).
      Thanks to those who will be able to help me.

      I am attaching a code that I have worked out, but it is not as fast as I would like.

      https://fxdreema.com/shared/cJZL4ALZb

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

        @bigape In the on trade tab add these blocks, and this should be what happens.

        0_1643149049491_c8543188-59a6-4a53-97d4-7b3b17e8ba00-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! 😊

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

          @jstap
          Many thanks for your reply; your code is correct, and it's work.

          But the problem remains of the slowness with which pending orders are closed.

          This is because Metatrader closes them using a chronological time sequence.

          It would be interesting to see if it is possible to create a code that closes everything immediately ....

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

            @bigape You can try the pink blocks, for each pending order > close, it says it closes immediately, so may loop from 1 to the next and close quickly, give it a shot.

            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! 😊

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

              @jstap
              Many thanks; ... good idea.
              I'll try it.

              I'll let you know.

              jstap Y 2 Replies Last reply Reply Quote 0
              • jstap
                jstap @Bigape last edited by

                @bigape Ok

                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
                • Y
                  Youngtreptrader @Bigape last edited by

                  @bigape your not dealing with anything except the speed of your mt4 server. but also i have only seen active trade close immeditatly . non active trades have to be closed 1 after another

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    Bigape @Youngtreptrader last edited by

                    @youngtreptrader
                    Thanks; I figured it was like that

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

                    Online Users

                    H
                    E
                    A
                    G
                    Q

                    15
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors