How Long Should you Backtest a Trading System? - Traders Log (2024)

I am frequently asked how long one should backtest a trading system. Though there’s no easy answer, I will provide you with some guidelines. There are a few factors that you need to consider when determining the period for backtesting your trading system:

Trade Frequency

How many trades per day does your trading system generate? It’s not important how long you backtest a trading system; it’s important that you receive enough trades to make statistically valid assumptions*. If your trading system generates three trades per day, i.e. 600 trades per year, then a year of testing gives you enough data to make reliable assumptions*. But if your trading system generates only three trades per month, i.e. 36 trades per year, then you should backtest a couple of years to receive reliable data.

Underlying Contract

You must consider the characteristics of the underlying contract. The chart below shows the average daily volume of the e-mini S&P:

How Long Should you Backtest a Trading System? - Traders Log (1)

It doesn’t make sense to backtest a trading system for the e-mini S&P before 1999, because the contract simply didn’t exist! In my opinion it doesn’t make sense to backtest an e-mini trading system before 2002 because at that time the market was completely different; less liquidity and different market participants. I believe that a reliable testing period for the e-mini S&P are the years 2002 – 2004.

* What is “statistically valid”?

Recently I received an article from a Ph.D in Statistics. He explained the correlation between the sample size and the “margin of error” in the table below. The bigger the sample is the smaller the margin of error, but usually a sample date of 200 trades should be sufficient. If your trading system generates enough trades, then you should use 500 – 600 trades.

How Long Should you Backtest a Trading System? - Traders Log (3)

For more information visit RockwellTrading.com

How Long Should you Backtest a Trading System? - Traders Log (2024)

FAQs

How Long Should you Backtest a Trading System? - Traders Log? ›

Aim for at least 200 trades in your backtest, but 500-600 offers even greater reliability for informed decision-making. Beware of "Data Fatigue": Excessively long backtests can mislead you by including drastically different market regimes.

How long should you backtest a trading system? ›

When you are backtesting a day trading strategy (15-minute timeframe or lower), it is usually enough to go back two to three months and start your backtest there. When you are backtesting a strategy on a higher timeframe, you will have to go back 6 to 12 months.

What is a good backtesting result? ›

A well-conducted backtest that yields positive results assures traders that the strategy is fundamentally sound and is likely to yield profits when implemented in reality. In contrast, a well-conducted backtest that yields suboptimal results will prompt traders to alter or reject the strategy.

How do you backtest a trading strategy effectively? ›

How to backtest a trading strategy
  1. Define the strategy parameters.
  2. Specify which financial market​ and chart timeframe​ the strategy will be tested on. ...
  3. Begin looking for trades based on the strategy, market and chart timeframe specified. ...
  4. Analyse price charts for entry and exit signals.

How long should I backtest Reddit? ›

On the other hand, if you're trading 1-minute, 5-minute, 15-minute, or scalping trades, limit your backtesting to a maximum of 3-6 months. Going beyond this timeframe becomes excessively time-consuming and will not give you any further edge.

How much backtesting data is enough? ›

Aim for at least 200 trades in your backtest, but 500-600 offers even greater reliability for informed decision-making.

What is a good expectancy for a trading system? ›

Generally speaking, a good trading expectancy should be positive and ideally above 0.25%. This means that the expectancy ratio is higher than 1, meaning that traders can expect to make more money on their winning trades than they lose on their losing trades.

Does backtesting really work? ›

This is that a profitable backtest does not prove that a strategy “worked”, even in the past. This is because most backtests do not achieve any kind of “statistical significance”. As everyone knows, it's trivial to tailor a strategy that works beautifully on any given piece of historical data.

What are the risks of backtesting? ›

Risks and Limitations of Backtesting
  • Data snooping bias: Backtesting involves testing multiple strategies on historical data, which can lead to data snooping bias. ...
  • Overfitting: Backtesting allows traders to optimize their strategies based on historical data.

What is Overfitting in backtesting? ›

A common mistake that many backtesters make is to rely on a single metric or scenario to evaluate their backtesting strategy. This can lead to overfitting, or fitting the model too closely to the data, resulting in poor performance in new or different situations.

Is TradingView good for backtesting? ›

In summary, TradingView provides powerful tools for both manual and automated backtesting. However, remember that backtesting is just one part of strategy development. Past performance doesn't guarantee future results, so always trade with caution and proper risk management.

Which strategy is best for trading? ›

Best trading strategies
  • Trend trading.
  • Range trading.
  • Breakout trading.
  • Reversal trading.
  • Gap trading.
  • Pairs trading.
  • Arbitrage.
  • Momentum trading.

How to test a trading system? ›

You can use demo accounts, paper trading, or small positions to forward test your technical trading system. You should forward test your technical trading system for a sufficient period of time and with realistic conditions to see how it handles market fluctuations, slippage, commissions, and emotions.

What is the best platform to backtest trading? ›

Top best backtesting software for stocks 2024
  1. Amibroker. Amibroker is a comprehensive and highly customizable backtesting platform that allows traders to develop, test, and optimize their trading strategies. ...
  2. TradeStation. ...
  3. MetaTrader 4/5. ...
  4. NinjaTrader. ...
  5. Backtrader. ...
  6. Quant Rocket. ...
  7. Trade Ideas. ...
  8. MultiCharts.
Apr 24, 2024

Which is the fastest backtesting framework? ›

Backtesting.py is a small and lightweight, blazing fast backtesting framework that uses state-of-the-art Python structures and procedures (Python 3.6+, Pandas, NumPy, Bokeh). It has a very small and simple API that is easy to remember and quickly shape towards meaningful results.

Should you wait for retest trading? ›

Price action may not always be predictable enough and fail to retrace as expected. Such events are known as false breakouts. A premature decision could result in a losing trade, which is why waiting for a retest to validate itself is key.

How long is the backtest time frame for TradingView? ›

It is Backtest Calculator For Essential and Plus plan holders, the length of available intraday data is calculated as follows: from now to 6 weeks back multiplied by timeframe(in minutes), i.e. you can go 6 weeks back on the 1-minute chart, 12 weeks back on the 2-minute chart, 30 weeks back on the 5-minute chart, 90 ...

What is the backtest limit on TradingView? ›

When using Deep Backtesting, the limit is 200,000.

What is expectancy in backtesting? ›

What is expectancy? Expectancy is what it sounds like. It helps you understand how winners, losers, gains and losses relate to each other over the long term. This process helps you understand what your trading system profits should be, and helps validate your backtesting.

Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6203

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.