fxDreema

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

    Issue with backtesting a multi time-frame EA

    Questions & Answers
    3
    5
    747
    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.
    • gooseman
      gooseman last edited by gooseman

      Hello!

      https://fxdreema.com/shared/LHfpMaIbb

      In this system. I am trying to backtest a multi TF system. I have created a constant that acts as an on and off switch to disable other currencies/TF while back testing. In this example that I have provided, if you look in each condition, you'll notice the constant for the candle period. "1 = on". "-1 = off". Having "-1" helps because when I would use a "0" as the candle ID I knew MT5 would not make any trades on that currency, but for some reason it did. So using a "-1" shuts that portion of the system down or prevents that specific currency/TF from trading in backtest.

      So now that I am able to backtest without random trades from other currencies, I am now running into TF issues. If I optimize M15 EURUSD to get the optimal parameters and write it down. I would then use "-1" to disable M15 EURUSD and now type "1" to enable H1 CADCHF and run an optimization and write down those optimal parameters. I now would type "1" to enable BOTH currencies and just run a backtest using optimal parameters and would ONLY get results from the M15 EURUSD.

      I tried to change the TF in the "more settings" in the condition block but to no avail. My actual system has 3 pairs on 3 different timeframes but only makes trades on the M15 TF. When I disable all other currency/TF and backtest individually, I have no issues. It's when I have to enable all currencies/TF and run backtest is where my problem is.

      Please advise!

      EDIT: Changed price modeling from "open prices only" to "1-minute OHLC" and seems to now trade all currencies/TF like I wanted. O_o

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @gooseman last edited by

        @gooseman I would suggest to create a Constant for the TF instead and then use it on blocks 1 and 8. You can select 1 for 1 minute, 2 for 5 minutes, 3 for 15 minutes and so on on the 'on tick' tab. That should do the job.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        gooseman 1 Reply Last reply Reply Quote 1
        • gooseman
          gooseman @l'andorrà last edited by

          @l-andorrà Coñoooooooo! Gracias hermano! hahahaha

          It worked! Using a constant for the TF worked out great! One thing to add, especially for those who come across this. As l-andorrà mentioned, using a constant for the TF but you have to change the constant type to:

          ENUM_TIMEFRAMES

          Then you will get a fancy drop-down menu where you can choose your time frame in the inputs tab. Thanks again, learning this has GREATLY reduced my walk forward optimization process.

          TipsyWisdom l'andorrà 2 Replies Last reply Reply Quote 0
          • TipsyWisdom
            TipsyWisdom @gooseman last edited by

            @gooseman said in Issue with backtesting a multi time-frame EA:

            @l-andorrà Coñoooooooo! Gracias hermano! hahahaha

            It worked! Using a constant for the TF worked out great! One thing to add, especially for those who come across this. As l-andorrà mentioned, using a constant for the TF but you have to change the constant type to:

            ENUM_TIMEFRAMES

            Then you will get a fancy drop-down menu where you can choose your time frame in the inputs tab. Thanks again, learning this has GREATLY reduced my walk forward optimization process.

            jajajaja

            ayyeee Conoooooooooo!

            Que rollo?!?!?

            1 Reply Last reply Reply Quote 0
            • l'andorrà
              l'andorrà @gooseman last edited by

              @gooseman Ja, ja, LOL. Me alegro de que haya funcionado. 🙂

              (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

              (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

              (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

              Online Users

              G
              K
              E
              A
              S
              O
              S
              A
              N
              J
              S
              K

              22
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors