Learn
Lesson · Backtesting and Trading Systems

Timeframes, Sessions, and Bar Construction

Define how raw trades or quotes become bars, which sessions are eligible, and how timeframe choices change indicators, signals, and fills.

Review concepts
Core concepts

What to understand

Keep each definition operational so it can be implemented and tested.

1

Bar interval

Open, high, low, close, and volume depend on the aggregation window.

2

Session rule

Regular, extended, overnight, and exchange-specific sessions produce different datasets.

3

Decision clock

Define the exact timestamp when indicators update and orders become eligible.

Interactive lab

Timeframe and Session Lab

Aggregate the same intraday sequence into different bars and sessions. Observe how signals and market interpretation change.

Timeframe and Session Lab

Deterministic synthetic educational data · no live market connection

BACKTEST MODEL
Process

Define the market clock

Bar boundaries and sessions must be fixed before testing.

1

Choose source frequency

Use data granular enough for the execution assumptions.

2

Define sessions

Include only times the system is allowed to observe and trade.

3

Aggregate consistently

Use one timezone, calendar, and boundary rule.

Knowledge check

Check your understanding

Select one answer for each question. Feedback appears immediately.

1. Why can a 60-minute test miss an intrabar stop?

2. Extended-hours inclusion can change:

3. What should determine bar boundaries?

4. A regular session runs 390 minutes. Aggregated into 60-minute bars it produces:

Practical rules

  • Store timestamps in a clear canonical timezone.
  • Use exchange calendars and session definitions.
  • Use lower-frequency bars only when their information supports the fill model.

Common mistakes

  • Assuming all daily bars close at the same time.
  • Mixing extended-hours signals with regular-hours fills without rules.
  • Using daily OHLC to infer an exact intraday sequence.
References

Official reading

The labs are simplified simulations. These sources cover historical performance, data, costs, or execution limitations.

CME Group · Historical Market Data
Describes historical market data used for market analysis and strategy validation.

Open official reference ↗

CME Group · Trading Simulator
Provides a practice environment for testing trading decisions without live capital.

Open official reference ↗

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.