NQ · LIVE ENGINE Algomyth
Tools

How to backtest a strategy in NinjaTrader 8, step by step

SEP 14, 2026 · 9 MIN READ

The Algomyth engine backtest prints $87,359 net on a mid-size account. The reason that number is worth anything is that you can produce it yourself: same platform, same instrument, same period, same costs, same report. Here is how, click by click, in the NinjaTrader 8 Strategy Analyzer.

A backtest is a simulation of a strategy over historical data, explained on its own terms in what is a backtest. Done carefully it is the most honest thing in trading, because it is reproducible. Done carelessly it is a machine for lying to yourself. The gap between the two lives entirely in the settings, so we will go slowly.

The one thing to remember

A backtest is only as honest as its settings. Defaults flatter results: no commissions, optimistic fills, too little data. Change five settings and the same strategy can look twice as good or half as good. Fix them before you trust a single number.

What the Strategy Analyzer is

The Strategy Analyzer is the tool inside NinjaTrader 8 that runs a strategy against historical bars and prints a performance report: net profit, win rate, profit factor, maximum drawdown, the full list. It is separate from a live chart. You point it at an instrument and a date range, it replays history bar by bar, and it tells you what the strategy would have done. If the platform itself is new to you, start with NinjaTrader 8 explained and NinjaTrader 8 for beginners, then come back here.

What you need first

Before the first run, a short checklist:

  • Windows 11. NinjaTrader 8 is a Windows program and does not run natively on macOS.
  • 8 GB of RAM, more is better. Loading years of tick data is memory-hungry, and a thin machine will crawl or run out.
  • The instrument, MNQ, the Micro E-mini Nasdaq-100 future, which is the micro contract the backtest uses. If you are unsure why the micro and not the full-size NQ, see MNQ vs NQ.
  • Historical data for the period you want to test, downloaded and actually loaded. At least 15 days for a quick sanity check, the full period from January 2022 onward to reproduce the published figure.
  • A 1-minute chart as the data series, the timeframe the strategy is built on.

The steps, in order

  1. Open the Strategy Analyzer. In the NinjaTrader Control Center, choose New, then Strategy Analyzer. A window opens with a tree of instruments on the left and a blank report on the right.
  2. Select the instrument. In the instrument box, type MNQ and pick the Micro E-mini Nasdaq-100 contract. Use the continuous contract so the data series spans the whole period instead of a single expiry.
  3. Set the data series. Set the bar type to Minute and the value to 1, for a 1-minute chart. Set the session template so the trading hours are correct; the 9:30 AM ET window depends on the session being defined properly.
  4. Set the period. Choose the from and to dates. For a fair test, use as much history as you have. To match the published result, that is 1 January 2022 to 5 September 2026.
  5. Load enough data. Confirm the data actually exists locally for that range. If only a few weeks are downloaded, the test silently runs on a few weeks. Download the history first through the platform's historical data manager.
  6. Choose the strategy and its parameters. Select the Algomyth engine from the strategy list, leave the sizing level at Medium to match the headline figures, and leave the rest of its parameters at the tested defaults. Nudging parameters to make the report prettier is the exact mistake covered further down.
  7. Set costs and fill realism. Enter commissions, add a slippage allowance, set the order fill resolution, and turn on tick replay for the most realistic fills. The table below spells these out.
  8. Run it. Click the run arrow. On a full multi-year tick-replay run, expect to wait, and this is where the RAM earns its keep.
  9. Read the report. When it finishes, read the Performance tab: net profit, gross profit, total trades, win rate, profit factor, and above all the maximum drawdown. That last one tells you what you would have had to sit through to collect the rest.

The settings that change the result

Five settings move the number more than anything else. Get these wrong and the report is fiction.

SettingWhat it changesWhat to use
Order fill resolutionHow precisely fills are simulated inside each barHigh, or use tick replay, so fills are not assumed at impossible prices
Tick replayReplays every tick inside the bar instead of just the open, high, low and closeOn for a realistic test; it is slower and needs tick data downloaded
CommissionsBroker and exchange fees per contractYour real rate, about $1.90 per contract round turn, never zero
SlippageThe gap between the price you wanted and the price you gotA conservative allowance, never zero for market orders
Data amountHow many days or years are actually testedAs much as you have; a handful of days proves nothing

This is where a published figure is either honest or decorative. The $87,359 on the performance page is what the report prints once these fields are filled in: $1.90 per contract round turn in commission and one tick of slippage, which is $0.50 on MNQ and $1.25 on MES. Leave them at zero and you will get a bigger number that means nothing. The full breakdown of what comes off the top is in slippage and commissions.

Hypothetical performance. The $87,359 net figure is the result of a backtest of the Algomyth engine over historical data, not a live account. Simulated results are prepared with hindsight, carry no financial risk, and cannot fully reflect real execution, slippage or liquidity. Past performance, real or simulated, does not guarantee future results.

Reproduce the number, do not take our word for it

The full report is published with its period and settings stated in the open, and the live signal log lets you compare the present against it, line by line.

The traps that make a backtest lie

Three failures turn a good-looking report into a worthless one.

Overfitting. If you keep adjusting parameters until the report looks great on this exact history, you have not found an edge, you have memorized the past. The result will not survive contact with new data. This is the single most common way people fool themselves, and it has its own article: overfitting and curve fitting.

Too little data. A strategy that looks brilliant over three weeks has told you almost nothing. Markets go through quiet stretches and violent ones, and a real test has to include the bad conditions, not just a lucky window. That is why the published test runs from January 2022 to September 2026, including plenty of periods the strategy did not enjoy.

Look-ahead bias. If the strategy accidentally uses information it could not have known at the time, for example the close of a bar that has not finished yet, the backtest shows profits that are impossible to capture live. Careful bar handling and tick replay guard against it. Any result that looks too clean deserves suspicion, not celebration.

In-sample and out-of-sample

The honest way to test is to design the rules on one slice of history and then check them on a different slice the rules never saw. If it holds up on data it was not tuned on, you have something. If it only works on the slice you built it on, you have an overfit wearing a costume. A single all-history run that looks perfect is a flag, not a trophy. This is exactly why reproducibility matters more than size: a number you can regenerate on your own machine, over data you choose, is far harder to fake than a screenshot on a sales page.

Frequently asked questions

Is the Strategy Analyzer free to use?

The Strategy Analyzer is part of NinjaTrader 8, and you can run backtests on historical data without funding a live account. What you need is the platform installed on Windows and enough historical data downloaded for the period you want to test. Live trading and real-time data are separate arrangements, but backtesting the strategy on past data does not require them.

How long does a full backtest take?

A quick test over a few days finishes in seconds. A full multi-year run with tick replay switched on can take several minutes or more, because the engine is replaying every tick across nearly four years of data. This is where the 8 GB of RAM matters, and where a faster machine is worth having. If it is unbearably slow, you are usually short on memory.

Why does my report not exactly match the published number?

Small differences almost always trace back to settings: a different commission rate, a different slippage assumption, a shorter data range, or a lower fill resolution. That is a feature, not a bug, because it lets you substitute your own broker's costs and see the result on your terms. If the number is wildly different, check that you loaded the full period and the correct MNQ contract on a 1-minute series.

Do I really need tick replay switched on?

For a realistic test of an intraday strategy, yes, because it simulates fills using every tick inside the bar rather than assuming a price the market may never have offered. It is slower and it requires tick data to be downloaded, but it is the difference between a fill you could actually get and a fill the report invented. For a rough first look you can leave it off, then confirm with it on before you trust anything.

Can a good backtest guarantee live results?

No, and any source that says otherwise is selling something. A backtest is a hypothetical simulation prepared with hindsight, and it cannot fully reproduce live slippage, liquidity, outages or your own behavior under a drawdown. Past performance, real or simulated, does not guarantee future results. A clean, honest backtest raises your confidence that the rules have an edge; it does not promise the edge repeats.

In short: open the Strategy Analyzer, select MNQ on a 1-minute series, set the full period, download and load the data, pick the strategy, then set real commissions and slippage with a high fill resolution and tick replay before you run it and read the report, drawdown first. Do that and the Algomyth engine backtest reproduces on your own machine: $87,359 net, in simulation. Skip the settings, or test three weeks of cherry-picked data, and the same tool will happily lie to you.
Sources and further reading
  • NinjaTrader, "Strategy Analyzer," NinjaTrader 8 Help Guide.
  • CME Group, "Micro E-mini Nasdaq-100 Futures" contract specifications.
  • Robert Pardo, "The Evaluation and Optimization of Trading Strategies."

Watch the engine, not the promises

Everything we write comes back to one idea: verify, then decide. The live terminal exists for exactly that.

Unlock Algomyth Live