How to Test NinjaTrader 8 Indicators With Market Replay
A finished chart can show where an indicator ended up. Playback lets you watch when it got there. Use it to answer one specific question, such as whether a marker first appears during a bar, at its close, or after a later bar confirms the setup.
Choose Market Replay or Historical playback
Market Replay plays back recorded market data in sequence. Use it when the order of updates matters. If the indicator depends on market depth or tape reading—such as Order Flow Delta tools—use replay data that actually includes Level II for the instrument and time you’re testing.
Historical playback uses historical tick data available from your provider and does not include market depth. It can help you observe price-based chart tools like Liquidity Sweep or VWAP when Replay data is unavailable. Record which mode you used so you can compare like with like.
Set up a dedicated Playback workspace
- Save and close your live workspace. Open a separate workspace with one chart. Match the contract month, bar type, interval, Trading Hours template, and indicator settings you intend to test.
- Get the data while disconnected from Playback. In the Control Center, open Tools → Historical Data. Expand Get Market Replay data, then select the instrument and date. NinjaTrader offers a limited set of downloads. Its documentation also calls for turning off market recording before downloading.
- Connect and pick a start time. Use Connections → Playback Connection, then pick Market Replay or Historical in the controller. The controller’s Show Available Data option helps you check the dates and times present for the instrument. Start early enough to populate the indicator’s lookback.
- Run the first pass slowly. Note the clock and bar when the indicator updates. Avoid jumping straight to the event you’re testing. If the script depends on the earlier event sequence, use Playback from start so it processes that sequence over the selected range.
Record what the indicator actually did
Use the same data, chart settings, and start time for two passes. For each run, record the time on the Playback controller, the bar involved, when the marker first appeared, and whether it was still visible three bars later. Keep a screenshot from each point if the indicator draws on the chart. During Market Replay, the visual display refreshes at one-second intervals. For events within the same interval, use the indicator’s own timestamped output if it provides one.
For example, suppose an intrabar marker appears at 09:42:18 and disappears before the bar closes. Log both observations. Then check whether that behavior matches the indicator’s documented calculation mode. A tool that updates intrabar and a closed-bar indicator answer different questions.
If the chart seems to skip the event, check the exact contract, available replay interval, and chart session before changing any indicator settings. Decide whether the data can answer your question. Historical mode can show how bars update, but a market-depth check needs Level II recordings.
Make the next test comparable
Save the indicator version and settings with your notes. On the next run, change only one input so you can attribute any difference. The same approach works when comparing a new indicator version against the previous one or benchmarking chart load and responsiveness.
For setup help, use our custom indicator installation guide. If the same contract shows a different set of bars across workspaces, check the Trading Hours settings first.
Frequently Asked Questions
What is the difference between Market Replay and Historical Playback?
Market Replay plays back recorded Level I and Level II market data in exact sequence, which order-flow and market-depth indicators require. Historical Playback uses historical tick data without Level II market depth.
Why did an indicator signal disappear during Market Replay?
Indicators calculating on each tick or on price change can display an intrabar signal that invalidates before the bar finishes. Closed-bar indicators wait for the bar close so signals stay fixed.
How far back should I start Market Replay before testing?
Start early enough to populate the indicator's lookback period and session reference levels, and use Playback from start when event sequence affects state.