fxDreema

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

    Running my code in strategy tester and getting the Requote error 138. Is there a way to avoid this or fix the code?

    Questions & Answers
    2
    13
    2978
    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.
    • F
      fxmich78 last edited by

      Running my code in strategy tester and getting the Requote error 138. Is there a way to avoid this or fix the code?

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

        @fxmich78 In MT5 it happens because the tester simulates possible insertion delays of orders, is your case?
        Otherwise take a look at this forum https://www.mql5.com/en/forum/136010

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

          @ambrogio
          Hello,thank you for the answer.I use it on MT4.
          Is this the same?
          Does it mean the EA has a problem?
          Can i do something to fix it?

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

            @fxmich78 No it's not the same because MT4 tester don't replicate the delay.
            Can you upload a little part of your project to test by myself? The problem appear at the opening orders or at the closure of them?

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

              @ambrogio

              0_1573114292055_2019-11-06 (2).png

              This is what i get.
              Order close error.

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

                @fxmich78 said in Running my code in strategy tester and getting the Requote error 138. Is there a way to avoid this or fix the code?:

                @ambrogio

                0_1573114292055_2019-11-06 (2).png

                This is what i get.
                Order close error.

                Oh yes, are you testing with Tick Data Suite?
                If you notice the delay of 200-300 ms is set, it's a bit too much.

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

                  @fxmich78 On my PC the MetaTrader 5 measuring a delay of 35-40 ms, on a VPS service should be well below the 10 ms

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

                    @ambrogio
                    So,to understand,must i do something to fix it or is a problem of tick data suite?

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

                      @fxmich78 Nothing to fix. Set the delay parameters at 30ms or less

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

                        @ambrogio
                        You mean at the tick data suite?

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

                          @fxmich78 said in Running my code in strategy tester and getting the Requote error 138. Is there a way to avoid this or fix the code?:

                          @ambrogio
                          You mean at the tick data suite?

                          Yes, for what I remember there is the delay setting table, you can disable it or set it with a real delay, many VPS services guarantee an order execution of less than 5 ms

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

                            @ambrogio
                            I really thank you for the valuable help!

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

                              @fxmich78 you're welcome 🙂

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

                              Online Users

                              E
                              M
                              C
                              K
                              T
                              K

                              19
                              Online

                              146.6k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors