Why futures contracts have a roll gap
Unlike a stock or spot crypto pair, individual futures contracts expire. E-mini Nasdaq-100 (NQ) rolls quarterly (H, M, U, Z); E-mini S&P 500 (ES) and COMEX Gold (GC) roll across active front months. Because of interest rates (cost of carry) and dividends, the incoming contract usually trades at a spread above or below the expiring contract. When liquidity moves to the new contract, a continuous chart has to handle that spread.

Two ways to build a continuous futures chart
| Method | How it handles the roll spread | What stays accurate | What breaks in backtesting |
|---|---|---|---|
| Back-adjusted (B-ADJ) | Shifts all historical bars up or down by the roll spread at every roll so no gap appears at the transition. | Multi-month percentage trends and long-term moving averages across rolls. | Every historical price level changes. A 2016 ES bar that traded at 2,050.00 may display thousands of points higher, destroying round-number and exact-level backtests. |
| Unadjusted volume-crossover (True traded prices) | Switches to the new front-month contract when its volume overtakes the old contract, without altering past prices. | Every historical bar shows the exact OHLC prices printed on the exchange that minute. | The single minute or daily bar where the contract switches contains the natural roll spread between the two expiries. |
When back-adjustment distorts intraday futures backtests
- Round-number magnet & psychological levels: Intraday traders on ES (4,000 / 5,000), NQ (15,000 / 20,000) and GC (1,800 / 2,000 / 2,500) frequently place stops, targets or fade orders around major whole numbers. Back-adjustment moves those historical bars off the round number they actually respected.
- Tick-accurate limit & stop orders: Cumulative adjustments over 30–40 rolls can shift NQ history by thousands of points and gold by hundreds of dollars, making historical prices unrecognisable.
- Re-adjusting history on every new roll: A back-adjusted series rewrites its entire historical price scale every time a new quarterly roll occurs, meaning a trade logged at a specific price last quarter no longer matches the chart price today.
How Charts Replay builds ES, NQ and GC history
Charts Replay is built for intraday and session-by-session backtesting, so all three futures series use unadjusted true traded prices from January 3, 2016 to November 1, 2026:
- ES (E-mini S&P 500): 3.81 million 1-minute bars stitched across 78 monthly contracts at the volume crossover, with zero spread adjustment and 0.25-tick validation.
- NQ (E-mini Nasdaq-100): 3.79 million 1-minute bars stitched across 44 quarterly contracts using the same volume-crossover rule and 0.25-tick validation.
- GC (COMEX Gold): 3.78 million 1-minute bars across 55 front-month segments (G, J, M, Q, Z) selected by prior-day volume ranking at UTC midnight (19:00 or 20:00 ET), validated to 0.10-point ticks.
How to handle roll days in your backtest
Because unadjusted contracts are never rewritten, intraday price action inside any single trading session reflects the exact front-month contract that led volume on that day. When replaying across a quarterly or bi-monthly roll date, avoid holding a swing position across the roll minute itself, or start a fresh intraday session after the new front month takes over.