NQ · LIVE ENGINE Algomyth
Platforms & tools

The NinjaTrader Strategy Analyzer, explained setting by setting

The Strategy Analyzer is where a backtest becomes a number in NinjaTrader. A field-by-field tour of instrument, period, data, fills, commissions and slippage.

Published 5 min read By the Algomyth desk

Illustration for the Algomyth guide on strategy Analyzer explained

What the Strategy Analyzer actually does

The Strategy Analyzer is NinjaTrader 8's backtesting engine. You point it at a strategy, an instrument and a stretch of historical data, and it walks through that data bar by bar, applying the rules and recording every simulated trade. At the end it prints a report: net profit, number of trades, win rate, profit factor, drawdown, and a long list of secondary statistics.

It does one thing no live account can: it lets someone else reproduce your result exactly. Give two people the same strategy, instrument, period and settings, and they get the same report. That is why every figure on the performance page is a Strategy Analyzer output, not a screenshot of a broker statement. You can check it yourself.

The one thing to remember

The Strategy Analyzer does not tell you whether a system is good. It tells you what a set of rules would have done over the data you gave it, under the fill and cost assumptions you chose. Change the assumptions and you change the number. Same inputs, same output: that is the entire value of the tool.

Instrument, period and the data you feed it

Three inputs sit at the top of the window and together they define the experiment.

  • Instrument. The contract you test. Test the wrong contract and the point value is wrong, which makes every dollar figure wrong.
  • Data series. The bar type and interval the strategy runs on, which has to match what it was built for.

The data has to exist on your machine. NinjaTrader stores historical data locally, and if your download is incomplete the report is silently based on less data than you think. Loading it is covered in how to backtest in NinjaTrader 8, and the platform itself in NinjaTrader 8 explained.

Order fill resolution: the setting that moves results most

This is the setting people miss, and the one that most often explains why two backtests of the same strategy disagree.

When a strategy holds a stop and a target inside the same bar, and that bar's range covers both prices, the Analyzer has to decide which was hit first. On standard resolution it works only from each bar's open, high, low and close, so it guesses, and the guess can be optimistic. Set Order Fill Resolution to High, with a one-tick series underneath, and NinjaTrader resolves the order of events from a finer sub-bar series instead.

For a system that places a stop and a target at entry, as this one does, that decision matters on every trade that reaches its bar's extremes. Set it loosely and the report flatters the strategy. Set it to High and the fills are as honest as a bar backtest can be.

Tick Replay, and when you need it

Tick Replay is a separate switch. It rebuilds each historical bar from the actual sequence of ticks that formed it, rather than from the four summary prices. Any strategy that reads price inside the bar, or calculates an indicator on incoming ticks, needs it on to be tested honestly.

The cost is speed and disk space. Turning it off on a strategy that reads intrabar data is a quiet way a backtest gets inflated, which is why it belongs on the same checklist as overfitting and curve fitting. If you cannot reproduce a published number, this switch and the fill resolution are the first two places to look.

Commissions and slippage

By default the Analyzer applies no commission and no slippage, which produces a gross number no real account earns. Both are set in the strategy parameters or the commission template attached to the backtest account.

What the report shows, and what it hides

If your run lands within rounding distance of those, you have reproduced it. If it is far off, one of the settings above differs, usually the fill resolution or the date range. What the report cannot show is just as important: the trades you would have skipped out of fear, the data it never loaded, and the conditions that have not happened yet. A clean report is a record of the past under your assumptions, nothing more, and what that number means for a real account is the subject of how much a trading bot makes.

The three ways the number lies to you

Most inflated backtests fail in one of three ways, all visible if you know where to look.

  • Optimistic fills. Standard resolution with no tick data, so same-bar stops and targets resolve in the strategy's favor. Fix it with High resolution and Tick Replay.
  • Curve fitting. A strategy tuned until it fits the exact history it was tested on, then falls apart on anything new. A long period and out-of-sample testing are the defenses.
  • A cherry-picked window. A seven-month slice presented as the whole record. The tool makes shortening the period trivial, so always ask what the full range shows.

None of this is a reason to distrust the Strategy Analyzer. It is a reason to read its settings as carefully as its output, because the settings are half the result. The tool answers exactly the question you configured, and a badly configured question gets a confidently wrong answer. For where it fits among platforms, see the best trading software guide.

Frequently asked questions

Do I need a paid NinjaTrader license to run the Strategy Analyzer?

No. NinjaTrader 8's free license lets you backtest and run the Strategy Analyzer on historical data, which is all you need to reproduce a published result. A paid lease or license, or trading through a supported broker, is what unlocks live real-time trading. So you can verify a backtest at no cost before you spend anything, which is the order we recommend.

Does a good Strategy Analyzer report prove the system will make money?

No, and anyone who tells you it does is selling something. A backtest is hypothetical performance over past data under chosen assumptions: reproducible, which is valuable, but not a forecast. Past performance, real or simulated, does not guarantee future results. Treat the report as evidence you can check, not a promise, and plan around the drawdown rather than the profit line.

What is the single most important setting to get right?

Order fill resolution, paired with Tick Replay. Together they decide how honestly the engine handles a stop and a target inside the same bar, which is every trade for a system like this one. Set them loosely and the report flatters the strategy on exactly the trades that matter most. Set them to High with tick data and the fills are as realistic as a bar-level backtest can produce.

Sources and further reading
  • NinjaTrader, "Strategy Analyzer" and "Order Fill Resolution" platform documentation.
  • CME Group, "Micro E-mini Futures" contract specifications.
  • CFTC, "Customer Advisory: Be Cautious of Trading Systems and Robots."

Educational content, not investment advice. Trading futures involves substantial risk of loss and is not suitable for every investor. Any reference to Algomyth results is hypothetical, simulated over historical data, and shown in full on the performance page; past performance does not guarantee future results.

Algomyth Live

Take the seat: watch the engines live

Three specialist engines on Nasdaq, S&P and Gold, every signal streamed the moment it happens, with the stop and the target written before the trade. From €149 a month per market.