Skip to content
Wildflower
Join free
Backtesting by hand

Free Trading School · Level 4 · Course 4.1

Choosing the data to test on

Lesson 8 of 21 in Backtesting by handModule 2: Bar replay on TradingView

Testing and making it your own · Backtesting by hand

Choosing the data to test on

Wildflower Trading School · Lesson 4.1.2.4

Wildflower

You know how to replay a session and mark a trade. Before a full test, there's one more decision, and it shapes everything that follows: which stretch of history you test on. By the end of this lesson, you'll know what to write down before you begin, why it has to be written first, and what makes a stretch of dates useful. You'll also know a trap on continuous futures charts, and how to count your sessions.

1 of 8

What you'll learn

  • Write a data card. List the market, chart, start and end date, and session times.
  • Choose dates before you look. Dates picked after looking can quietly pick the result.
  • Pick a useful stretch. Use dates in a row, different market moods and news days marked.
  • Note roll dates. A continuous chart can jump at the switch, and nobody traded that jump.
  • Count the sessions. Take off holidays so you know the size of the job.

Exercise

  1. Write a data card for your Level 3 strategy: the market and chart, the timeframe and clock, a start and end date, and the session window.
  2. Count the weekdays, take off market holidays, and note any roll dates inside.
  3. Don't open a replay until it's written.

Quick check

  1. 1. Why write the test dates down before looking at the chart?

  2. 2. Which stretch shows you more about how rules behave?

  3. 3. On a continuous chart like MES1!, what can happen at the roll?

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 “Replay limits to know about” is waiting next time.

Read the full notes

Before a backtest, write down the market and chart, a start and end date and the session times, so the dates can't be chosen to suit the result.

  • Before you begin, write a data card: the market and chart (for example , 5-minute, New York time), a start date and an end date, and the times your rules use. Test every session in between, in order.
  • Write the dates first, because dates chosen after looking can quietly choose the result. Whatever happened in those dates is what the test is about.
  • A useful stretch has dates in a row, different moods (: trends, chop, calm and busy days), news days left in and marked, and enough length for the rules to trade many times. More: Backtest sample size
  • On a , the switch to the next contract at the can show a jump nobody traded. Note roll dates and check trades open across one (Continuous charts and their gaps).
  • Count the job: 12 weeks × 5 = 60 weekdays, minus 2 US stock market holidays = 58 sessions.

Worked example

Made-up numbers

Counting sessions on a data card

Made-up numbers, data card: , 5-minute, New York time, Mon 5 Jan 2026 to Fri 27 Mar 2026, 9:30 to 11:30.

  1. 12 weeks × 5 weekdays = 60 weekdays
  2. US stock market closed 19 Jan (Martin Luther King Jr. Day) and 16 Feb (Washington's Birthday)
  3. 60 − 2 = 58 sessions
  4. At 8 minutes each: 58 × 8 = 464 minutes, under 8 hours

You know the size of the job before you start, and the holidays are written down with the reason.

Your turn

Drill

Made-up numbers · data card · 8 full weeks of weekdays · 1 US stock market holiday falls inside

Why continuous charts can jump

  • A expires, so MES1! shows one and then switches to the next around the roll.
  • The two contracts trade at different prices, so the chart can jump at the switch. That jump wasn't traded by anyone.
  • Your rule sheet can say what to do, for example no trades held over a roll.

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.