A backtest that ignores slippage, uses a broken contract roll or tunes parameters until the curve looks good will tell you what you hoped to hear. The NinjaTrader 8 Strategy Analyzer can produce honest numbers, but only if you configure it that way.
Opening the Strategy Analyzer
In the NinjaTrader 8 Control Center, choose New and then Strategy Analyzer. Pick the strategy, instrument, date range and data series, and set the parameters. Menus differ a little between versions, so confirm details against the official guide at ninjatrader.com/support/helpguides/nt8.
Before the first run, check these inputs:
- Instrument and contract handling. Futures contracts expire, so multi-year tests rely on how historical data is merged across rolls. Check the instrument's merge policy, then look at the chart around each roll for gaps. A short test window often points to a merge problem, not a data limit. Roll dates are not the same for every product.
- Data series. Match bar type and period to the strategy's design, and use enough history to cover different conditions: trends, chop and at least one fast sell-off.
- Entry and fill behavior. Check the strategy's Calculate setting (on bar close, on each tick or on price change) and the order fill resolution. If you test on bar close with standard resolution, intrabar fill order is approximated, so a strategy where stop and target sit inside the same bar can look better than it would live.
- Slippage and commission. Set both to realistic values for the product and your broker's current rate sheet.
Why costs change the result
Your next step
Review the setup before you automate it.
Read the NinjaTrader setup and strategy limits, then test in SIM. YMI bot access belongs to Pro. Check your broker or prop firm's rules before enabling automation.
Here is a hypothetical. A strategy makes 200 round-turn ES trades and shows $5,000 net in a zero-cost test. Assume 1 tick of slippage per side. That's 2 ticks x $12.50 = $25 per round turn, or $5,000 across 200 trades, before commission. The $5,000 profit disappears. You can change the numbers, but run the math for your strategy before you trust any report.
Evaluating the report
No single metric makes a strategy tradable, and no threshold such as a profit factor of 1.5 certifies one. Read the numbers together:
- Expectancy per trade in R multiples. For example, a 40% win rate with an average win of 2R and average loss of 1R gives 0.4 x 2 - 0.6 x 1 = +0.8R. A 60% win rate with an average win of 0.6R and loss of 1R gives 0.6 x 0.6 - 0.4 x 1 = -0.04R, which is negative before costs.
- Maximum drawdown in dollars, compared with the account you'd actually use. A hypothetical $10,000 profit with an $8,000 drawdown means you'd have to sit through most of your capital disappearing first.
- Longest losing streak, and whether you'd keep following the rules through it.
- Trade count. Thirty trades is not evidence of an edge, and even a few hundred trades from one market regime can mislead you.
- Profit concentration. If three trades produce most of the profit, you have a lottery ticket, not a system.
Optimization and walk-forward testing
The Strategy Analyzer lets you optimize parameters and run walk-forward tests. Optimization will always find something that fit the past. The useful question is whether it keeps working on data it hasn't seen. The procedure:
- Split history into an in-sample period and a later out-of-sample period, and write down the split before looking at results.
- Optimize on the in-sample period only, with a small set of parameters.
- Run the chosen settings on the out-of-sample period without editing them.
- If out-of-sample results fall apart, assume the strategy was fitted to the in-sample data. If they hold, you have some evidence, not proof.
Keep a record of the commit or version, the data range, the settings and the number of variants you tried. The more variants you tested, the less any single winner means.
What SIM testing adds
After a backtest, run the strategy on a SIM account. In NinjaTrader these are separate choices: the account you trade on (the SIM account) and the data connection you use (a live data feed or the Playback connection for replay). Make sure you've selected both deliberately. SIM can show you whether the code handles session changes, data gaps and order modifications as intended. It can't confirm exchange queue position, true slippage or how you'll behave with real money at risk, because simulated fills are not exchange fills. Fifty SIM trades is a functional check, not live proof.
For results, use the Trade Performance report in the Control Center instead of the old Account Performance view.
Using the numbers
Run the expectancy math yourself with the edge calculator, and see /docs/kpl-bot-specs for the documented behavior of YMI's automation. Whether a given prop firm allows automation is a separate question, so read that firm's current rules first.
About the Author
Founder, Young Money Investments · Quant Trader
Cameron trades ES, NQ, and futures across multiple market cycles. He founded Young Money Investments to teach systematic, data-driven trading and manages Magnum Opus Capital. His work emphasizes documented rules, risk controls, and review over outcome promises.
Free, No Credit Card
Get the Free Room Preview
See how the room works before choosing a membership. Follow a setup in SIM and review what happened.
Risk Disclosure & Disclaimer
Educational Purposes Only: The content provided in this blog is for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Young Money Investments is not a registered investment advisor, broker-dealer, or financial analyst.
Risk Warning: Trading futures, forex, stocks, and cryptocurrencies involves a substantial risk of loss and is not suitable for every investor. The valuation of futures, stocks, and options may fluctuate, and as a result, clients may lose more than their original investment.
CFTC Rule 4.41 - Hypothetical or Simulated Performance Results: Certain results (including backtests mentioned in these articles) are hypothetical. Hypothetical performance results have many inherent limitations. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program.
Testimonials: Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

