NinjaTrader chart data

3 min read

How to use NinjaTrader Tick Replay for historical indicators

Two bars can have the same open, high, low and close even when one reached the high first and the other reached the low first. Tick Replay lets a compatible indicator read the trades in order.

Illustration of four trade prices marked on an amber filmstrip beside a single turquoise candlestick.

Quick answer

In the Control Center, open Tools → Settings → Market data and select Show Tick Replay. On the chart, open Data Series, select the primary series and turn on Tick Replay. An indicator written to use those events can then process the historical trades available for that instrument in their recorded order.

What the finished bar leaves out

Suppose four one-contract trades form a bar. Both sequences below produce an open of 100, a high of 102, a low of 99, a close of 101 and a volume of four. An indicator that records which level traded first needs the sequence.

  • 100 → 102 → 99 → 101 reaches the high first.
  • 100 → 99 → 102 → 101 reaches the low first.

Why the Tick Replay option is missing or slow

  • If the setting is missing in Data Series, check Show Tick Replay in the Control Center first. That global setting makes the chart property visible. You still enable it on the primary series.
  • If the property is unavailable for a particular chart, check its bar type. NinjaTrader disables Tick Replay for its built-in Renko and Line Break bars. A custom bar type can also disable it.
  • If loading takes too long, reduce Days to load or choose a shorter date range in Data Series. NinjaTrader has to rebuild the bars from individual trades. The usable history extends only as far back as you have one-tick data for that instrument.

Which bid and ask prices the indicator can see

With Tick Replay, historical OnMarketData() events are Last events. Each event gives the trade price and volume and can carry the best bid and ask prices at the time of that trade. A quote change between two trades has no separate event in this stream. Bid and ask sizes are unavailable.

When the provider supplies historical trades without attached quotes, NinjaTrader uses the last trade price as the bid and adds one tick to get the ask. If your indicator classifies trades by comparing them with these prices, check that the provider supplied actual historical quotes.

When to use Playback or a fill model

For a practice session you can play, pause and rewind, use the Playback connection. For a strategy backtest where the question is how a simulated order filled inside a bar, use Strategy Analyzer’s order fill resolution. High order fill resolution requires Tick Replay to be off.

Official sources

Live connection monitoring

Monitor a live NinjaTrader connection

Ninja Watchdog can email you when a monitored NinjaTrader connection drops on your Windows desktop or VPS.

Try Ninja Watchdog