How to Backtest the Order Book Heatmap on Past Sessions
By Geoff · · Updated
An order book heatmap shows how much size is resting at every price, over time. Price runs up the side, time runs across, and the brighter a spot, the more limit orders were sitting there. On MarketByOrder you pick a day that has already traded and the heatmap replays from that minute: orders appear, get pulled, and get traded through in the same order they did live.

Open a past day
- Under Session date, click the date and pick a day from the calendar. Greyed out days have no data. Latest day and Random day are one click shortcuts.
- Set the Time. RTH open jumps to 9:30 ET and RTH close to 16:00 ET.
- Pick the Primary instrument, for example ES or NQ.
- Click Open session.
- In the chart header, open the chart style menu and choose Heatmap or Heatmap: Bookmap Circles.

Heatmap draws the book with the best bid and offer as lines on top and large trades as markers. Heatmap: Bookmap Circles groups trades into circles sized by volume, each split into its blue buys and red sells, so you can see which orders on the heatmap got hit.
To put the heatmap behind a footprint chart instead, keep your footprint style and turn on Depth in the Indicators panel. The heatmap works on time bars, not tick or range bars.
What to watch for
- Orders pulled before price gets there. A bright level that fades out as price approaches was never going to be filled.
- Orders that hold. A level that stays bright while trades print into it is being absorbed. If it refills after each hit, someone is reloading it.
- Thin books. A dark stretch above or below price is where it can move quickly, because there is little resting size in the way.
These are easier to judge in a replay than on a finished chart, because you see the order the changes came in. Stacking, pulling and absorption shows the same moves on the DOM ladder, which replays alongside the heatmap.
Move around the day
Play at speeds from 0.1× to 16×, and pause whenever something catches your eye. To jump somewhere else, right click a bar and pick Replay from here. Clicking the time in the header opens Select Date & Time for a completely different day.
Backtest what you see
Watching shows you a read. To find out whether it makes money, trade it in the replay and keep score.
- Place Sim orders on the DOM or the chart, with a take profit and a stop loss attached, and watch them fill against the real market.
- When the trade is done, scroll to the next place the setup appeared, right click the bar and pick Replay from here. You skip the quiet stretches in between.
- Every Sim trade is kept. The dashboard adds them up across sessions: net P&L, win rate, profit factor, and how you entered and exited.
Fifty trades of the same read tell you whether it holds up, not just whether it looked good once. Futures backtesting covers the dashboard, and how to run a setup as an algo instead.
Which markets, and how much of the book
The included data covers these futures, most from August 2025 onward:
6A, 6E, BTC, CL, ES, ETH, GC, M2K, M6E, MES, MET, MGC, MNQ, MYM, NQ, TN, UB, YM, ZB, ZF, ZN, ZT.
It carries the full book on each side. CME days become available about eight hours after they trade, and every symbol is a continuous contract that rolls from one front month to the next.
Days worth replaying
Scheduled news shows the book at its most interesting: it thins out in the minutes before the release and refills after. These links open straight into the replay, ten minutes before the event.
ES, FOMC decision, September 16, 2026
The rate decision comes out at 14:00 ET. Watch how much of the book is still there in the last minute before it, and how quickly it comes back once the first move is done.

CL, crude inventory report, September 16, 2026
The weekly EIA crude inventory report is out every Wednesday at 10:30 ET. Compare the size resting either side of price just before 10:30 with how far the first second of the release travels.

NQ, the cash open, September 18, 2026
The 9:30 open is the busiest stretch of most days. Slow the replay down to 0.1× for the first minute, since the book changes too quickly to follow at full speed.
Pricing
Every account gets 3 replays and 5 minutes of replay time a day for free, on all of the markets above. A paid plan removes the limit. Create an account to open your first session.
To change the heatmap's colours and brightness, see chart.depth. To read the book from your own indicator, see the book docs. For the footprint side of the same replay, see Historical Footprint Charts.
Questions
Can I replay an order book heatmap for a past day for free?
Yes. Every account gets 3 replays and 5 minutes of replay time a day for free. Open a past session and choose Heatmap or Heatmap: Bookmap Circles from the chart style menu.
Can I see the heatmap behind a footprint chart?
Yes. Keep your footprint style and turn on Depth in the Indicators panel. It works on time bars, not tick or range bars.
Does the heatmap replay with the DOM and time and sales?
Yes. The DOM ladder and time and sales replay alongside the heatmap, and you can place Sim orders from the DOM or the chart while it plays.