Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How far back is ideal for backtesting?

There is a common belief that very old data may not show similar pattern as of today's. In a quant's world is not very uncommon to say that algorithm which used to perform very well two years back are useless today. This in a way tells not to back test on too old data.
Whereas there is another school of thought which tells to backtest as much back as possible so as to capture as many uncertainties like say the May 6, 2010 flash crash. What do you guys feel ?

3 responses

I have been back-testing as far back as the Quantopian data will support: early 2002. Unless you have reason to think that your strategy only applies to recent data, I'd recommend longer backtests. If anything, it should reduce the risk of over-fitting. My two cents...

To my mind backtest should be done on full market cycles.
Number of bull and bear legs should be equal.
As Quantopian data starts only from 2002 you have only two choices;
Bottom (March 2003) to Bottom (March 2009)
Top (Oct 2007) to now(July 2016).
Аs we do not know if the market pass the top in current cycle I start all my backtests slightly early -from Jan 2007.

As far back as possible but we have to keep in mind that the market environment of today is unlike anything seen in history. In particular, algorithmic trading has changed how the market operates. Now we have a bunch of algos with the memory of a gold fish driving up market prices because they just look at technical trends, and they are easily manipulated because of that.

I think you just have to accept that no algo is all-weather. My VIX Bot tries but I know there are holes in it that I can only hope doesn't happen.