Skip to content
Wildflower
Join free
Backtesting by hand

Free Trading School · Level 4 · Course 4.1

What a backtest is

Lesson 1 of 21 in Backtesting by handModule 1: Why test first

Testing and making it your own · Backtesting by hand

What a backtest is

Wildflower Trading School · Lesson 4.1.1.1

Wildflower

Welcome to Level 4. In Level 3, you wrote strategies down as rules, and in the Test it yourself lessons you tried short runs on past charts. This course teaches the whole method of testing by hand, properly, from start to finish. By the end of this lesson, you'll know what a backtest is, the three things every backtest needs, and what you actually get at the end of one.

1 of 8

What you'll learn

  • Run rules on past prices. A backtest shows what your written rules would have done.
  • Set three things first. Choose the rules, dates and market, and keep a log of every trade.
  • Log every session. Write one row per trade, and note the days with no trade too.
  • Read the result as a list. Every figure comes from the trades and shows only the past.
  • Tell the tests apart. A forward test runs the same rules on new prices as they arrive.

Exercise

  1. Write one sentence that says what a backtest is, in your own words.
  2. Then take the strategy sheet you wrote in Level 3 and list the three things a backtest of it would need: the rules, the dates and the market, and the log's columns.

Quick check

  1. 1. What is a backtest?

  2. 2. A session where the rules took no trade. What goes in the log?

  3. 3. Why fix the rules before you look at the results?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Why test before you risk money” is waiting next time.

Read the full notes

A backtest applies a strategy's written rules to past prices and logs every trade the rules would have taken, so you can see what would have happened.

  • A applies written rules to past prices to see what would have happened. The rules come from a strategy written so clearly that two people would take the same trades, like A one-page strategy sheet.
  • Every backtest needs three things: rules fixed before you look, a stretch of past prices chosen in advance (start date, end date, market), and a log of every trade, including days with no trade.
  • The result is a list of trades, one row each, not a verdict. The figures people quote, like or , are worked out from that list. Backtest results are : they show the past, not the future.
  • A backtest uses past prices. A follows the same rules on new prices as they arrive. means practice orders in a pretend account, which you can use for a forward test.
  • In Level 3 you tried short runs, for example Test it yourself: opening range breakout. This course teaches the full method. More: What is backtesting?

Worked example

Made-up numbers

A tiny backtest, one week

Made-up numbers, . , the breakout rules from Level 3, five sessions.

  1. Mon: long 5,019.50, stopped at 5,014.00: 5,014.00 − 5,019.50 = −5.50
  2. Tue: short 5,027.00, stopped at 5,029.75: 5,027.00 − 5,029.75 = −2.75
  3. Wed: long 5,047.00, target 5,054.00: +7.00
  4. Thu: no trade: 0, still logged
  5. Fri: short 5,036.25, closed at 11:30 at 5,032.00: +4.25

Total: −5.50 − 2.75 + 7.00 + 0 + 4.25 = 3.00 points. Five rows is far too few to learn much; it shows what a backtest looks like.

Your turn

Drill

Made-up numbers · results in points: −5.50, −2.75, +7.00, 0, +4.25

Three words that sound alike

Trading is risky. You can lose money. This lesson explains how testing works. It isn't advice, and a test can't tell you what will happen next.