NexusFi: Find Your Edge


Home Menu

 





losing faith in walk-forward analysis


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one pintope with 3 posts (0 thanks)
    2. looks_two treydog999 with 2 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 rosasurfer with 1 posts (1 thanks)
    1. trending_up 4,028 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

losing faith in walk-forward analysis

  #1 (permalink)
 
pintope's Avatar
 pintope 
Madrid, Spain
 
Experience: Beginner
Platform: NinjaTrader + Dendric
Broker: IB/Kinetick
Trading: Futures
Posts: 17 since May 2014
Thanks Given: 5
Thanks Received: 9

I think this topic makes sense in "psychology".

I’m losing faith in walk-forward analysis. I have done literally thousands. With enough computing power you can always find combinations which performs well over ten years of historical data, doing hundreds of trades, with minimum drawdown. Always testing out-of-sample.

I don’t know how many walk-forward analysis follower are in this forum but I would bet most of traders earn a living without worrying about WFA.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #3 (permalink)
 rosasurfer 
Sofia Bulgaria
 
Experience: Intermediate
Platform: MetaTrader, MultiCharts
Trading: Forex, ES, GC, strange synthetic creatures
Posts: 40 since Nov 2014
Thanks Given: 41
Thanks Received: 34


My guess is you mis-understood the purpose of walk-forward. You must not test thousands of WF combinations to find a profitable one. WF is there to proove the stability of an already working system, not to create one. So, with WF you want to confirm that your system is not overfitted in the first place. If you need thousands of tests it's a sign to me your system is overfitted. By the way, if you really mean what you say: Looking for profitability is not a good otimization criteria. Look for a good sharp ratio, better sortino ratio. Or at least a good ReturnOnRequiredAccount. Thats a better precondition for WF, absolute returns can be created by leverage.

As Kevin Davey explains in his first webinar: If you walk-forward more than a few (a handful) times your OOS data very quickly becomes IS data, and effectively renders your WF useless.

Reply With Quote
Thanked by:
  #4 (permalink)
 
treydog999's Avatar
 treydog999 
seoul, Korea
 
Experience: Intermediate
Platform: Multicharts
Broker: CQG, DTN IQfeed
Trading: YM 6E
Posts: 897 since Jul 2012
Thanks Given: 291
Thanks Received: 1,039

Not only does running WFA many times contaminate the data and eventually render it In Sample. The more iterations or tests you do in order to find a working strategy increases the likelihood that its a fluke result with no future predictive value. For example say we want something with a Sharpe Ratio > 1 with a 95% confidence interval. Well 1 out of 20 you will receive such a system result, due to sheer luck. This type of confidence interval testing / t-testing only works when you did the test ONCE. After you have attempted more than once you have to start to factor that in, or account for your "data mining" bias. From your post it sounds like you did a lot of data mining but ended up not accounting for either the contamination or the high performance results with no future predictive power.

Reply With Quote
Thanked by:
  #5 (permalink)
 
pintope's Avatar
 pintope 
Madrid, Spain
 
Experience: Beginner
Platform: NinjaTrader + Dendric
Broker: IB/Kinetick
Trading: Futures
Posts: 17 since May 2014
Thanks Given: 5
Thanks Received: 9

Thank you both.

MT4Survivor View Post
My guess is you mis-understood the purpose of walk-forward. You must not test thousands of WF combinations to find a profitable one. WF is there to proove the stability of an already working system, not to create one.

For a long time I have been discussing on this subject with a friend of mine. My view coincides with what you say, WFA only makes sense over a well-designed and by other means tested strategies, per se does not say much. If I have understood you right. Otherwise trading would be reduce to computer power.

treydog999 View Post
This type of confidence interval testing / t-testing only works when you did the test ONCE. After you have attempted more than once you have to start to factor that in, or account for your "data mining" bias. From your post it sounds like you did a lot of data mining but ended up not accounting for either the contamination or the high performance results with no future predictive power.

I understand. That’s in line with my intuition too. I gather that if it would suffice to test a WF once, the size of the optimization and test windows are not very important. Otherwise I could “optimize” the size, I mean, to walk-forward with a range of different OOS/IS windows and select that with highest performance. In fact there’s a software, StrategyQuant, which makes such optimization ( they call it Walk-Forward Matrix). Do you agree?

Follow me on Twitter Started this thread Reply With Quote
  #6 (permalink)
 
treydog999's Avatar
 treydog999 
seoul, Korea
 
Experience: Intermediate
Platform: Multicharts
Broker: CQG, DTN IQfeed
Trading: YM 6E
Posts: 897 since Jul 2012
Thanks Given: 291
Thanks Received: 1,039


pintope View Post
Thank you both.


For a long time I have been discussing on this subject with a friend of mine. My view coincides with what you say, WFA only makes sense over a well-designed and by other means tested strategies, per se does not say much. If I have understood you right. Otherwise trading would be reduce to computer power.


I understand. That’s in line with my intuition too. I gather that if it would suffice to test a WF once, the size of the optimization and test windows are not very important. Otherwise I could “optimize” the size, I mean, to walk-forward with a range of different OOS/IS windows and select that with highest performance. In fact there’s a software, StrategyQuant, which makes such optimization ( they call it Walk-Forward Matrix). Do you agree?

What that WFA matrix is doing is basically turning your walk forward into an in sample brute force optimization. Yes you can find stable regions and configure your robustness characteristics. However you have increased your attempts by # of parameters ^ window parameters. Making finding basically any finding in you there actually the opposite of robust and basically just totally optimized. Not to mention completely contaminating your entire data set.

This paper might be of interest to you.


Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance
David H. Bailey, Jonathan M. Borwein, Marcos López de Prado, and Qiji Jim Zhu

Reply With Quote
  #7 (permalink)
 
pintope's Avatar
 pintope 
Madrid, Spain
 
Experience: Beginner
Platform: NinjaTrader + Dendric
Broker: IB/Kinetick
Trading: Futures
Posts: 17 since May 2014
Thanks Given: 5
Thanks Received: 9


treydog999 View Post
This paper might be of interest to you.


Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance
David H. Bailey, Jonathan M. Borwein, Marcos López de Prado, and Qiji Jim Zhu

The paper is very interesting indeed. Thank you.

Follow me on Twitter Started this thread Reply With Quote
  #8 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,356


pintope View Post
The paper is very interesting indeed. Thank you.

The big thing, in my opinion, is that no matter what kind of backtesting you do, you should "incubate" the strategy for a while before trading. Watch how it performs in real time for 3-6 months. The curve fitted, over-optimized systems will usually reveal themselves during this phase.

This approach has literally saved me untold thousands.

The trick is making sure what you test can be replicated in real world - your strategy fills need to reflect reality. For example, if your strategy only uses market orders, and you add in appropriate slippage, there should be a good match between strategy backtest engine and real trading.

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on December 13, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts