fxDreema

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

    Need Help Backtesting Error

    Questions & Answers
    5
    6
    607
    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.
    • M
      Mani13 last edited by Mani13

      Hello,
      @fxdreema
      I hope you are doing well.
      I need an end solution to a problem I am facing in closing trade error in MT5 Backtesting.

      Closing position/trade error: Market is closed (10018)

      I have tried few things but that work only in single pair.
      When I used multiple pair to trade then this solution didn't work.
      Problem occur when I use CLOSE POSITIONS blue block.
      I have search a lot of thread but no body have a simple solution to it and a lot of people seeking help in this

      A 1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by sktsec

        Not long ago this issue has been discussed and workarounds were given

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

          https://fxdreema.com/forum/topic/16494/close-positions-when-market-is-closed
          https://fxdreema.com/forum/topic/16638/mt5-optimizer-not-working-with-many-fx-dreema-ea-resolved
          https://fxdreema.com/forum/topic/16849/market-close-error-mt5-backtesting-solved

          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 1
          • A
            ambrogio @Mani13 last edited by

            @forexbob-0 this error simply appears because we are giving instructions to the broker both to open or close orders/pending orders outside the broker's working hours. The most logical solution from my point of view is to put a time filter, and weekday filter also, just before opening orders and just before closing them. With this solution I have never encountered such problems neither in live nor in backtest.

            Cattura1.JPG

            gooseman 1 Reply Last reply Reply Quote 2
            • gooseman
              gooseman @ambrogio last edited by

              @ambrogio I also utilize Time Filter block to avoid market closed errors.

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

                @gooseman 👍

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

                Online Users

                C
                K
                A
                D

                15
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors