I've been giving Strategy Analysis a fairly good bashing over the last 2-3 months, and hopefully several improvements will ship with the next release.
That said... this post is NOT about Ninja... it is about the walk-forward process itself... and I hope worthy of your attention. I would value comment from others.
As we all know, walk-forward testing is touted as the gold standard in strategy testing. I do not deny it has some advantages, ie, reduces reliance on hindsight, but, read on...
I first noticed some worrying results a while back, and just recently saw profit change from around $42,000 down to $7,000... with just one minor change in the walk-forward settings and my, that makes a difference to how I view my strategy's performance ! I needed to understand what the heck caused such a huge variation.
Yesterday, I bit the proverbial bullet and did some basic research/testing of the method itself... not my strategy ... and l confirmed my suspicion, which was that the Start Date of walk-forward tests can have a dramatic influence on the outcome. . At least it does in the class of strategy that I am using... other strategies may do better, but let me share my results.
I went for ultra simple... using the Sample MA Crossover strategy. I tweaked it slightly to enable me to run a WF optimisation ... but using the same parameters in each period.
OK, so what you say. That seems pretty dumb!
My objective was to determine just how much influence the walk-forward process itself had on the final result. My test was over about 13 months, with a 28 day test period. (Optimisation period doesn't really matter, since there is nothing to optimise... both Fast and Slow are fixed.)
So... 28 day test period. I ran 4 walk-forward tests, each starting 7 days later. Same Fast/Slow parameters locked in.
Here's a summary of the results (run on GC 12-19, 60 Minute chart)
What I want to draw your attention to is the HUGE variation in overall profit... changing start date by 1 week, can cause Net Profit to go from around $20K down to ~$10k !! A 14 day change made things go from ~$24K down to ~$10K. That is a massive percentage change!
Now, you may point out that since the period of trades is different, we should not be surprised if the overall profit is different... and of course that is true, and in part explains SOME of the variation... but absolutely nowhere near all of it. Yes I checked the individual trades... it just does NOT cut it.
The point is, changing that start date generates a completely different sequence of trades, in this instance (and also in my strategy). It may be that other types of strategies do NOT suffer this rather fickle property... that is what I'm keen for others to provide input on.
So... the conclusion I've come to regarding walk-forward testing of my strategy, is that the final numbers are possibly due to semi-random factors induced by the walk-forward process itself... and nothing to do with my strategy's intrinsic robustness. Dang !
Sorry it's a long post ... but hopefully worth the time taken to read if you are relying on walk-forward tests to "build confidence in your strategy's performance"
Cheers,
T.
Comment