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
- 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.
- Count the weekdays, take off market holidays, and note any roll dates inside.
- Don't open a replay until it's written.
Quick check
1. Why write the test dates down before looking at the chart?
2. Which stretch shows you more about how rules behave?
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
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 A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary, 5-minute, New York time), a start date and an end date, and the A stretch of the trading day with a set start and end, such as the hours a big stock exchange is open.More in the glossary 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 (A label for the kind of market price is in: trending or ranging, and quiet or busy.More in the glossary: 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 A chart made by joining one futures contract month to the next at each roll, so years of history show as one line. It isn’t a contract you can trade.More in the glossary, the switch to the next contract at the Moving from a futures contract that’s about to expire to the next contract month.More in the glossary 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 numbersCounting sessions on a data card
Made-up numbers, data card: A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary, 5-minute, New York time, Mon 5 Jan 2026 to Fri 27 Mar 2026, 9:30 to 11:30.
- 12 weeks × 5 weekdays = 60 weekdays
- US stock market closed 19 Jan (Martin Luther King Jr. Day) and 16 Feb (Washington's Birthday)
- 60 − 2 = 58 sessions
- 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
DrillMade-up numbers · data card · 8 full weeks of weekdays · 1 US stock market holiday falls inside
Why continuous charts can jump
- A An agreement, traded on an exchange, to buy or sell a set amount of something at a price agreed now, on a set date later.More in the glossary expires, so MES1! shows one The month a futures contract ends in. Several contract months of one market trade at the same time, each with its own price.More in the glossary 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.