Walk Forward Optimization for Algo Trading

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 35

  • @jdanyonsan1950
    @jdanyonsan1950 9 месяцев назад

    Actually one of the best vids I have seen on the subject as you show the splicing together of the out of sample outputs!

    • @siberianflutemusicbystephe1397
      @siberianflutemusicbystephe1397 5 месяцев назад

      I might be missing something basic here, but he is doing no such thing. He is not using or splicing together the out-of-sample numbers. They seem to serve only as confidence builders.

  • @parkourrat
    @parkourrat 3 года назад +1

    Wow this is great! Informative as always!

  • @davemakesmagic
    @davemakesmagic 3 месяца назад +1

    Thanks for explaining this. But I'm still a little confused.
    If we're re-optimizing our inputs for every year (based on the rolling previous 4 years), how is that not also curve-fitting? I'm first to admit I'm not a math genius or know much about statistics or probabilities or anything. But to me, it seems like as long as you have a large enough out-of-sample period that your strategy continues performing as expected, isn't that just as good?

    • @shorten8588
      @shorten8588 Месяц назад

      The idea is to simply take advanatage of the recent occurring statistical edge before it reverts to the mean, and we do it repeatedly until the statistical edge degardes in the out of sample data.

  • @javierluque8030
    @javierluque8030 Год назад +1

    Thanks for the video. If i understand it correctly; every end of year you will re optimize and use the new inputs for the next year?

  • @StamNickolas
    @StamNickolas 2 года назад +2

    Hey! Thank you for the detailed explanation of this type of analysis! I have a question though. When you have the results of the first 10 4-year optimizations, then I kinda lost you as to what you are supposed to do with the results. You take the average of the result-parameters and apply them to the live/demo account? You do again a walk forward analysis but now for every 2 years beginning from 2012 and optimizing the new data-result from each of the previous optimizations? I didn't quite understand what the next step is.

    • @jdanyonsan1950
      @jdanyonsan1950 9 месяцев назад +2

      I always wondered 'what next?' myself ... it seems this isn't so much an optimization as a robustness test. Personally I religiously use strict InSample and OutSample testing to build strats ... however I could see myself using the equity curve of a walkforward to generate a worst-case scenario ... maybe do a monte carlo on that and then adjust my positon size based on 2 SD max drawdown (my particular preference)

  • @specialagentslowhand
    @specialagentslowhand 2 года назад +2

    Great content. What does it mean if the walk forward (out-sample) performance is better than optimized (in-sample) performance? Similarly, what if each phase seems to improve? I would expect performance to degrade over time. Thank you for this!

  • @Dx_Ach
    @Dx_Ach 3 года назад +2

    What settings do you end up using going forward on out of sample data? the very last leg of the optimization on the walk forward?
    great video.

    • @tonyt3067
      @tonyt3067 3 года назад +1

      my questions too, thanks Jarrod!

    • @TheTransparentTrader
      @TheTransparentTrader  3 года назад +4

      You can see in the spreadsheet the settings for 2021. In January I will re optimise using 2018, 2019, 2020 and 2021 to get the inputs for 2022.

    • @Dx_Ach
      @Dx_Ach 3 года назад +1

      @@TheTransparentTrader thanks!

    • @MajesticMotivator
      @MajesticMotivator 3 года назад

      @@TheTransparentTrader I don't get it still, I guess the software you're using automatically takes in those inputs for multiple years of different params and finds an optimal set of params to use going forward?

  • @ArisCandelario
    @ArisCandelario 3 года назад +1

    what amount of time is good to be able to analyze a strategy ?, 1, 3, 5 or 10 years or do it progressively thanks Jarod

  • @poek1e
    @poek1e 2 года назад

    If you run a backtest on all the out-of-sample windows and you vary the strategy from year to year, do you then also liquidate the portfolio at the end of each year? If not, then the strategy from the previous year would affect the following year since you might have stocks in your portfolio that you might not have bought with the new strategy. Either way, thanks for the clear video!

  • @lmpaske
    @lmpaske 2 года назад +1

    Muilticharts has this built in. I don't get why you would do it this way?

    • @TheTransparentTrader
      @TheTransparentTrader  2 года назад +1

      Just a more manual way of doing it. It helps understand the process.

  • @bryanmarty2096
    @bryanmarty2096 2 года назад

    What type of "optimization" are you utilizing? It's helpful to know what you mean exactly. Thanks for your video. It's interesting to see someone do this in excel.

  • @sofianesofiane9476
    @sofianesofiane9476 3 года назад

    Great keep going

  • @oswaldokatz2523
    @oswaldokatz2523 3 года назад +2

    Great subject... one vital point: if out of sample data doest not look good at first DO NOT GO BACK AND MODIFY THE RULES.... from that point on you are on dream land and fooling your self

  • @janalgos
    @janalgos 3 года назад +1

    When running optimization one parameter at a time, doesnt that tend to make your choice of default input for the other parameters quite important? For instance, just as an example, the ideal "fast" lookback period for a MA crossover system would vary quite a bit depending on your choice of "slow" period. So how do you deal with this situation?

    • @TheTransparentTrader
      @TheTransparentTrader  3 года назад +2

      Yes this is important. The simplest way to do it is to optimise all parameters at the same time. I like to approach it from a logical point of view by doing them individually. You may well get different results from each method. Although I have found that a strategy which is generally robust should show up positive results for either method.

  • @faisalmohsin8748
    @faisalmohsin8748 3 года назад

    Hi Jared, great video.
    What's the minimum number of trades you try to accomodate within each in-sample period?

    • @TheTransparentTrader
      @TheTransparentTrader  3 года назад +1

      I tend to mostly just use 4 years for in sample. At minimum this would be about 50 trades. Most strategies trade more though.

  • @lowcorrelation
    @lowcorrelation 3 года назад

    Been waiting for this one and super excited to see how your wfa proces looks like. I also use a 4:1 opt/wfa but where mines differ is the amount of stages. I start at 2010 and have 6 stages where the last opt 2017-2021. I just started my incubation today actually. I use MT5 and use quant analyzer to stich together my wfa results to see what my systems expectations are when going live.
    I am going to try your opt/wfa process on my current system and hopefully add more confidence in it.
    Thanks
    PS
    How about a video on portfolio diversification? 🤔

  • @invictusdomini8624
    @invictusdomini8624 3 года назад

    Anchored won't keep up with market behavior changes as well.

  • @thomaslinow8397
    @thomaslinow8397 3 года назад

    I see that you got a WFT on you MultiCharts, is that no good?

    • @TheTransparentTrader
      @TheTransparentTrader  3 года назад +1

      Currently I haven't really explored it very much. I'm sure it is very useful and probably saves time. I wanted to show doing it manually in the video though.

  • @sultanzamin6310
    @sultanzamin6310 3 года назад

    Dear sir what about fxcm broker I want open an account with em for day trading or scalping indices and forex?
    Thank you

  • @classifiedata
    @classifiedata Год назад

    too briton gayish

  • @larrygranda6447
    @larrygranda6447 2 года назад

    Has anyone explored plutohq? They support eft’s bot trades also. Not difficult for anyone getting started. Also offer paper algotrading games.