fxDreema

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

    Market closed - ERROR

    Questions & Answers
    2
    2
    104
    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
      FabioW last edited by

      Hi. I am having trouble back testing my EAs, suddenly back test stops working. On journal in MT5 I can see that EA is trying to open new position or close one and is having a problem because Market is closed. I tried to use time filter to not trade between 22:00 and 02:00, but it still crashes after 2-3 months of back testing.
      How do you guys fix this problem? Is there a block "Check if market is open"?

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

        Time filter and weekday filter TOGETHER should work fine. Be careful that you have to filter not only trade openings, but also closings, placing pending orders, everything that involves an operation on the market. Eg.: if you have a rule of two MA cross => close trade, it will not be executed if the market is closed

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

        Online Users

        S
        M
        H
        S
        J
        P
        B
        H

        17
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors