TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
NinjaTrader Desktop

How to Backtest in NinjaTrader Strategy Analyzer Check Fill Resolution, Slippage and Commission

Begin with one instrument and a short test window. Keep the strategy inputs and history fixed while you change one execution setting. Inspect the individual trades to learn what changed.

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described on this website, or any interest, ownership, or otherwise, in any such product or service, and no NinjaTrader company endorses, recommends, or approves any such product or service.

Quick Answer

In NinjaTrader Desktop, open Control Center → New → Strategy Analyzer. Choose Backtest, then select a strategy, dated contract, interval, date range and Trading Hours template. Verify commission and slippage before comparing Standard and High order fill resolution on a compatible strategy.

Start 7-Day TrialMore Guides

Two paths through the same five-minute MES candle

Synthetic MES 1-minute candles. Times are bar closes in ET.

At the 9:32 close, the sequence has already traded through 6,005.00. The stop level of 5,997.00 is first reached during the bar that closes at 9:34. The completed five-minute candle opens at 6,000.00 and closes at 6,001.00, with a high of 6,007.00 and low of 5,996.00.

Strategy bars

The main series supplies the bars used by your strategy.

Fill resolution

High can use a finer series to simulate historical order fills.

Costs

Check modeled commission and slippage on completed trades.

Run a small, reproducible backtest

Open Strategy Analyzer from Control Center → New. Set Backtest type to Backtest and choose a NinjaScript strategy or a preinstalled sample to learn the controls. Select the dated instrument and data-series Type and Value. Set start and end dates and the Trading Hours template. Match the chart’s Break at EOD setting when comparing bar-dependent results.

Click Run and inspect the Trades results. If there are no trades, first check that the same dated contract has historical bars in that interval and session. If Use local data only is enabled in Analyzer Properties, confirm the data exists locally. Check Bars required to trade and allow enough history for the strategy to become eligible. A strategy can also return zero trades because its conditions never qualified.

Troubleshoot zero trades in NinjaTrader Strategy Analyzer

First check the bars the strategy could use. Match the dated contract, interval, price type and Trading Hours template. Compare the first and last available bar with the requested test range. If you use a separate fill series, verify that data too. Check the Control Center Log for errors before interpreting an empty Trades tab.

Next check the history the strategy requires before it can place orders. Suppose a fictional strategy requires 20 historical bars, but the selected dates and session produce only 12 completed five-minute MES bars. Even if a chart shows the price pattern, the strategy cannot qualify under those test settings. Load enough earlier data for its warmup, keep the strategy’s original requirements, and compare the same observation window. If the longer run starts trades before that window, check whether those positions affect the later result.

Finally separate a missing signal from a missing fill. If the strategy exposes diagnostics, check the signal time and whether it called an entry method. NinjaTrader’s TraceOrders can show that an order method was called and why NinjaTrader ignored it. If an order was accepted, check its state and whether the price reached it while it was active under the selected fill model. Record whether you found no signal, an ignored or rejected order, or an unfilled order before changing the settings.

Compare Standard and High order fill resolution

Standard uses the bars selected for the backtest. NinjaTrader estimates an intrabar path from the open, high, low and close. High lets you use a more granular data series for fills when supported. For example, keep a five-minute main strategy series and select a one-minute fill series. Use a date range where both have data.

In the synthetic chart, assume a one-contract long already has a stop at 5,997.00 and a target at 6,005.00. Both scenarios aggregate to the same five-minute open, high, low and close. On the one-minute bars, the levels are reached in opposite order. At Standard resolution, the documented path for this five-minute candle visits the low before the high because the open is closer to the low. The synthetic comparison illustrates the sequencing problem. Actual simulated fills also depend on the stored orders and fill settings.

NinjaTrader documents restrictions on High order fill resolution with Tick Replay, multi-timeframe strategies and multi-instrument strategies. Tick Replay lets compatible scripts calculate on historical tick events. Check strategy compatibility before changing either setting.

Compare Fill limit orders on touch in Strategy Analyzer

In Strategy Analyzer, open the backtest settings and find Historical fill processing → Fill limit orders on touch. NinjaTrader’s default requires price to trade through a working limit. Enabling the checkbox allows the historical model to consider a fill when price reaches the limit. In NinjaScript, the corresponding property is IsFillLimitOnTouch.

In the fictional chart, assume a 6,000.00 buy limit is already working. The bar ending at 9:40 a.m. ET reaches exactly 6,000.00. With touch fills enabled, that bar can qualify. Under the default rule, the first bar to trade through the limit ends at 9:50, when the low reaches 5,999.75. If the strategy canceled an unfilled order at the 9:45 close, the trade-through version would have no entry in this example.

Keep Order fill resolution, instrument, dates, session, and strategy inputs fixed, then run with the checkbox off and on. Open Trades and record whether the entry moved to a different bar or disappeared. After you understand the difference, keep the checkbox fixed if you test Standard versus High. Finer data can change the order in which prices are reached. It cannot supply your live order’s queue position.

NinjaTrader limit touch and trade-through on MES

Synthetic MES 5-minute candles. Times are bar closes in ET.

The 9:40 ET bar touches the 6,000.00 order price. The 9:50 bar is the first to reach 5,999.75, one tick beyond the buy limit.

Verify commissions, slippage and the trade list

Enable Include commission and confirm that the commission template used by the test produces the charges you expect. Enter Slippage in ticks under Historical fill processing. NinjaTrader applies it to market, stop-market and market-if-touched fills, subject to the next bar’s price range. The Summary reports slippage in points.

At $1.25 per tick on one MES, one adverse tick on each of two eligible fills represents $2.50 if the model applies the full amount. Check the listed fills and commission on the trade. Keep Fill limit orders on touch fixed when comparing fill resolution, since that setting can change which limits fill.

Right-click Strategy Analyzer and choose Show Logs to recover a previous run’s settings. Save the symbol, dates, session, fill resolution and costs next to the result. If performance changes, inspect the trades whose entry, exit or order sequence changed before drawing conclusions from the summary.

Sources

Official References

Platform details on this page were checked against these official resources.

NinjaTrader TraceOrders referenceFind which order methods ran and why some calls were ignored.NinjaTrader Strategy Analyzer backtest settingsFind data series, test dates, commission, and fill options.NinjaTrader IsFillLimitOnTouchThe default trade-through assumption and the optional touch model.NinjaTrader historical fill processingCheck the Standard price path, High resolution, and slippage rules.NinjaTrader Tick ReplayCheck which calculations and order fill settings it supports.NinjaTrader Strategy Analyzer logsRecover a prior run’s settings for comparison.CME MES contract specificationsVerify the tick increment and dollar multiplier.
Related Guides

Keep Building the Rule System

Compare Break at EOD on and off

Follow the same seven trades through two 100-tick charts at the session boundary.

Enable NinjaTrader Tick Replay

Check when historical tick calculations, Playback, and High fill resolution apply.

Check a NinjaTrader strategy after reconnecting

Verify the enabled state, broker position, and working orders after an interruption.

Verify NinjaTrader historical data

Check the provider’s date coverage and base interval before running the same test again.

Review market data in NinjaTrader Playback

Replay a specific session and check the exact contract and data type.

Practice order execution in NinjaTrader simulation

Verify the simulated account before pressing Buy or Sell.

Compare TradingView’s simulated limit fills

Use the same MES bars to compare TradingView’s current limit-order settings.

Record an unresolved stop and target in a replay comparison

See how two possible fills can reverse the comparison between two trading methods.

FAQ

Common Questions

Can I use High fill resolution and Tick Replay together?

NinjaTrader documents that the two cannot be combined. High changes the data available for historical fills, and Tick Replay changes calculation events for compatible scripts.

Why do Standard and High give different fills?

Standard estimates a price path within the main bars. High can use finer available data, which can change the order in which price reaches a stop or a target.

Why is my NinjaTrader backtest showing no trades?

Check historical data for the symbol, date range and Trading Hours template, then check Bars required to trade and whether the strategy’s entry conditions were met.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.