fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. gooseman
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 12
    • Posts 62
    • Best 6
    • Controversial 1
    • Groups 0

    Posts made by gooseman

    • Issue with backtesting a multi time-frame EA

      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

      posted in Questions & Answers
      gooseman
      gooseman
    • Close in profit and MT5 complete optimization

      Hello

      I would like to check for profit on bar close and if it is in profit, I would like to close the position.

      This is what I have: shared/gYaZqETO

      This works when it wants to. On some pairs it works great in backtesting than some other pairs, my laptop fans kick up and I can see the estimated complete optimization completion time start to build up. I left it on earlier today and saw that time above 1000 hours and counting to optimize 2 parameters with less than 1000 passes. This only happens when I introduce the close in profit to the code. I am positive and correct me if I am wrong, that it is how I built the logic in this EA.

      Any way to make this simple idea easier to streamline when optimizing?

      Thanks.

      posted in Questions & Answers
      gooseman
      gooseman
    • 1
    • 2
    • 3
    • 4
    • 4 / 4