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 to properly backtest a trading strategy? ›

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.

How long does it take to backtest 100 trades? ›

It takes around 1 hour to back test a strategy 100 times. If we find the profitability of a strategy by testing it 100 times, why waste time by testing it 1000 or 10000 times.

How do you backtest efficiently? ›

Here are some tips to ensure effective backtesting:
  1. Consider different market scenarios. ...
  2. Aim to keep volatility as low as possible. ...
  3. Backtest using a relevant set of data. ...
  4. Customise backtesting parameters to meet your specific needs to get accurate results. ...
  5. Be careful about over-optimisation.

How do you backtest accurately? ›

Let us now see the general steps to backtest below.
  1. Step 1: Define the trading strategy. ...
  2. Step 2: Obtain historical data. ...
  3. Step 3: Execute the strategy. ...
  4. Step 4: Track and record results. ...
  5. Step 5: Analyse the results. ...
  6. Step 6: Refine and optimise the strategy. ...
  7. Step 7: Validate the strategy.
Aug 14, 2023

How can I backtest my strategy for free? ›

Free backtesting software

Microsoft Excel is a beginner-friendly backtesting software that involves the use of a set of formulas. Though there are other powerful tools too available, that makes testing a strategy easy and convenient. TradingView software helps the traders for stock and forex markets.

Can TradingView do backtesting? ›

TradingView offers a rich set of tools to facilitate backtesting: Bar Replay Function: Enables manual backtesting. Pine Script: A scripting language unique to TradingView, allowing you to code your own strategies and then backtest them using the Strategy Tester.

How do you backtest a trading strategy without coding? ›

Formulate Define the parameters of your hypothesis
  1. Specify the financial assets and metrics in the hypothesis you are backtesting.
  2. Define the timeframe of historical data you plan to backtest.

How much backtesting is enough for intraday trading? ›

The time period for backtesting depends on the average holding period of your position. If you are trading a strategy with a holding period of more than a month, then it is better to use a long time period, preferably 15 years. If you are creating an intraday strategy, then 10 years is a good amount of time.

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.

References

Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 6130

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.