Free tools › Backtesting template

Free backtesting template for Excel and Google Sheets

A spreadsheet for testing a strategy by hand. Type the entry, stop and exit of every trade your rules give and it works out your result in R, your win rate, your expectancy, your largest drawdown and how many trades you still need. Free, and you do not have to leave your email address.

Download for ExcelAn .xlsx file. For Google Sheets you upload it to Google Drive and open it with Sheets.

What is in the template

  • Backtest. One row per trade with the date, market, timeframe, setup, long or short, entry, stop, target and exit. Your result in R, the planned risk reward and whether it was a win or a loss are worked out from your prices.
  • Dashboard. Number of trades, win rate, average win and average loss in R, expectancy per trade, profit factor, total result in R, largest drawdown in R, longest losing streak and a curve of your result in R.
  • Per setup. Trades, win rate, expectancy and total result in R for each setup, so you see which one holds up.
  • Rules. A column for whether you followed your rules, with the expectancy of the trades where you did and where you did not.

How to backtest with it

  1. Write down your rules before you start: when you enter, where your stop goes and where you take profit.
  2. Pick a market and a period and go through the chart from left to right, without looking at the candles that come next.
  3. Every time your rules give a trade, fill in a row. Also the trades that look bad afterwards.
  4. At 100 trades for a setup, look at the dashboard. Then test a different period before you trust the result.

How many trades you need

With 20 trades a few lucky ones decide the result. From around 100 trades per setup your win rate and expectancy start to settle. The dashboard shows how many trades you still need to reach 100, and the expectancy calculator works out how many you need for your own numbers.

Test more than one kind of market as well. A setup that only works in a strong trend looks great in one month and loses in the next.

Mistakes that make a backtest look better than it is

  • Looking ahead. Seeing the next candles before you decide. Move forward one candle at a time and decide on the close.
  • Skipping trades. Leaving out the setups that went wrong because they did not feel right. Every trade your rules give counts.
  • Changing the rules halfway. Every change is a new test. Start a new sheet or give the setup a new name.
  • Forgetting costs. Spread and commission take a bite out of small targets. Put your exit a little worse than the chart shows when your targets are small.

When a spreadsheet stops being enough

Backtesting by hand in a spreadsheet works, but it is slow. You move the chart in one window and type prices in the other, and most traders stop long before 100 trades.

Backtesting software replays the chart for you and logs a trade the moment you place it. In nuchtr every session keeps its trades and its statistics, and you can test a prop firm challenge with the real rules of the program.

Common questions

Does the backtesting template work in Google Sheets?

Yes. Upload the file to Google Drive and open it with Google Sheets. The formulas keep working.

How is the result in R worked out?

From your prices. For a long it is the exit minus the entry, divided by the entry minus the stop. For a short it is the other way around. A trade that made twice what it risked is 2R.

What is expectancy?

Expectancy is your average result per trade in R. Above 0 your strategy made money in the test. An expectancy of 0.3R means you made 0.3 times your risk per trade on average.

How many trades should a backtest have?

Aim for at least 100 trades per setup. With fewer, a handful of trades can decide the result.

Is the backtesting template really free?

Yes. You download it right away, without an account and without leaving your email address.

Backtest without typing.

nuchtr replays the chart candle by candle, logs every trade you place and keeps the statistics per session. You can also test a prop firm challenge with the real rules of the program.

Start nuchtr7 days free, then €24.75 excl. VAT every 30 days, every feature and connection included. Cancel any time.

More free tools

These tools are for education and do not give financial advice. Check the outcome with your broker or prop firm before you trade. Names of firms, platforms and exchanges are trademarks of their owners.