They shouldn't match exactly, and NinjaTrader's own guide says so. A backtest only knows each bar's open, high, low and close; live trading depends on price order, volume and the order queue. What matters is telling normal differences from a real problem.
If the same strategy wins in Strategy Analyzer and loses in your account, don't start by changing parameters. Check these causes in order, from the most common to the most specific.
On this page
1. The backtest fills from four data points
Historically, NinjaTrader decides whether an order fills from the bar's open, high, low and close. With live data or Playback it uses incoming price and volume, and in a live account the market decides. These are three different models, so a limit order filled in the backtest may never fill live.
What to check: Look for backtest trades with limit entries that are missing from your live results.
2. The fill price is an estimate too
Even when an order fills in both, the price can differ. The backtest assumes it from the bar and the order price; live, it depends on the bid, the ask and available volume. One tick per side sounds small, but it changes the result of a strategy with small targets.
What to check: Compare entry and exit prices of the same trades and work out the average gap in ticks.
3. Bar close in the backtest, every tick live
The official guide explains that a backtest processes at the close of each bar. With On Each Tick live, a condition can turn true inside a bar and false before it closes: you get a live entry and no backtest entry. NinjaTrader support notes that Tick Replay changes this behavior historically.
What to check: Check the strategy's Calculate property and use the same value in both tests.
4. It isn't the same data
What you saw live yesterday is recalculated today from historical data. On tick-based charts, a single different tick can change every bar after it, and the indicators with them. The comparison only works with the same instrument, contract, session, bar type and period.
What to check: Reload historical data and rerun the backtest on the exact dates you traded.
5. Renko and Heiken Ashi show prices that never traded
Standard Renko bars rewrite the last bar on reversals, which can't be reproduced historically. Some custom Renko bars use a fake open, and Heiken Ashi replaces bar values with averages. The guide recommends testing Renko with Playback and, where prices are synthetic, using High Order Fill Resolution or submitting orders to a single tick series.
What to check: If you use these bar types, don't trust a backtest with standard fill resolution.
6. Costs and delay are missing
Live orders take time to reach the market and pay commission. NinjaTrader support points out that this latency adds slippage, and no backtest setting fully reproduces it. Without realistic commission and slippage, the backtest shows a bigger edge than the real one.
What to check: Rerun the backtest with your real commission and at least one tick of slippage per side.
How to check it in an hour
- Pick a short period you've already traded and export the real trades.
- Run the backtest with the same dates, data, Calculate setting, commission and slippage.
- Repeat the period with Playback, which is closer to live.
- Compare trade by trade: missing trades first, then prices.
- Classify each difference with the list above before changing the strategy.
It matters more on a prop firm account. With a tight drawdown, a few ticks per trade can decide whether you survive a bad streak. Measure that gap and run it through the evaluation simulator before buying an account.
Want someone to review it? We check your NinjaScript strategy and show you where the backtest and live trading part ways.
Review from $90 Analyze NinjaTrader with AISources
- Discrepancies: Real-Time vs Backtest (NinjaTrader 8 Help Guide)
- Tick Replay and High Order Fill Resolution (NinjaTrader Support Forum)
- Different results between Strategy Analyzer and live (NinjaTrader Support Forum)
Keep reading
Free: The Other Half Workbook. Nine templates for trading with a cool head: your one-page plan, the pre-session checklist, the twelve-patterns test, your size and the bill for your mistakes.
Get the free workbookGet ready for 2027: the Trader Planner. Each day's US releases in New York time, your pre-market routine and a log for every session.
Paperback on Amazon, $16.99 Get the PDF, $9Educational content based on the official NinjaTrader documentation. Not investment advice. Simulated results do not guarantee real results.