fxDreema

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

    Market Close Error MT5 Backtesting Solved

    Tutorials by Users
    3
    6
    3090
    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

      Hello Everyone,
      I was struggling for may days when MT5 backtesting sudden stops working due to market close error.
      First I thought it was metatrader software issue but few days later while searching here on forum I found that it is problem of Fxdreema platform,
      Then I atleast get some topics where few users said to use time filter before each Buy/Sell block but when I used that way it doesn't make any effect.
      But later I thought the issue is related to closing of trades so I used it before Close Position block and set time as in below picture, And the problem fixed.
      Capture.PNG

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

        This problem is also mentioned here
        https://fxdreema.com/forum/topic/16638/mt5-optimizer-not-working-with-many-fx-dreema-ea-resolved

        and here
        https://fxdreema.com/forum/topic/16494/close-positions-when-market-is-closed

        I think it needs addressing @fxDreema

        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

        M 2 Replies Last reply Reply Quote 0
        • M
          Mani13 @roar last edited by

          @roar Thanks for sharing this way too described in first link, but I do not have much knowledge of coding to create such thing.

          I have also tried the way second link is describing but that not worked for me as I am facing issue on multicurrency trade with grid as it close all positions which I don't want to close.

          By the way these might help me in furture, Thank You for sharing.

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

            @forexbob-0 I always use the time filter with the times allowed by the broker, as outside those times, both in backtest and in real time, no order will be closed or opened. Using purple blocks limits the recurrence of the error but does not trigger out-of-hours orders since the "market closed" error appears immediately on the first attempt to open or close orders outside the broker worktime.

            1 Reply Last reply Reply Quote 0
            • M
              Mani13 @roar last edited by

              @roar I want to learn to make custom block,
              Can you help me if we take example of code mentioned in above first link
              I have copied that in the given area but don't know what to put in other spaces.
              Capture.PNG

              1 Reply Last reply Reply Quote 0
              • M
                Mani13 last edited by Mani13

                Do, any expert help to complete this custom block,
                As the previous solution now stops working suddenly, Few of the backtests goes fine but it showing error as in beginning

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

                Online Users

                F
                G
                O
                Z
                M
                W
                N
                G
                H
                S

                32
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors