What You Need to Understand About NinjaTrader 8 Backtesting?

By Carl · Updated Oct 29, 2026 · 6 min read
Featured image for “What You Need to Understand About NinjaTrader 8 Backtesting?”
Subscribe to get alerts to our next blog post!

The Limitations Behind NinjaTrader 8 Backtesting

NinjaTrader 8 backtesting is a common practice with traders but is it going to produce results that are useful? Traders will use backtesting to try and test strategies and this practice has been going on for quite some time.
Although past results do not mean the same will hold true for future results; most traders used ninjatrader 8 backtesting information if they had it. Backtesting in NinjaTrader is not all bad, but there are some things you should be aware about when doing it.

The Problems

  • News Events are Ignored

    When back testing, news events are ignored meaning you could be firing off a trade right before a news event and that outcome (for better or worse) should not be included. With hundreds of news events every month, this is a sure way to get unreliable results.

  • Price Action is Ignored

    We have all been in a situation where we're about to enter the trade and you don't because of how quick and fast price might be moving at that time. When back testing, this sort of emotion or hesitation isn't included which can make your own results quite different.

  • Open / Close Times Ignored

    You would probably never take a trade just before the market is about to open, or just after - but when you back tested these market open and closed times are ignored.

News and Order Entry While Backtesting

When you do backtesting (automatically or manually) chances are news events that are released are not being included in your results.

If non-farm payrolls is coming out, and your backtesting triggers a trade just before the news releases, then regardless of the outcome you probably never would have taken that trade yourself.

The same would go for a situation if you trade Crude Oil and you ignore Wednesday inventory numbers. If software of yours determines to place a trade, would you have done it if trading manually yourself?

Chances are, you wouldn't be placing orders right before news events since the outcome could be no better odds than a coin flip, so your results (for better or worse) are going to be incorrect and misleading.

When you think about all the news events that come out - if you wanted to avoid the news your back testing strategy would need to watch for news and pause or halt trading and wait for the news to pass, measure some sort of momentum to know price has settled after the news and then reactivate the trading strategy.

Are you doing this with your current back-testing? If not your results are misleading you.

What is Better than Backtesting?

Forward Walking Tests

The best thing about a forward walking test is it's going to be a lot more accurate. The downside to doing forward walking tests in NinjaTrader 8 is the time it will take you since you can't run it through an automated platform. But that is also why your accuracy of your results should be more reliable.

An example of a forward walking test would be if you traded on a demo account with live quotes. Another way you can do this but have it be quicker is by using the NinjaTrader 8 market replay.

Market Replay for Forward Walking Tests

You can download data in NinjaTrader 8 (within the platform) and then replay that data as if it was happening live. You can then test your strategy. For example we use XABCD Patterns so you can attach a pattern indicator to the chart and then trade the patterns according to your execution plan.

Here is a video that will show you how to use market replay data.

Put News Events Directly On Your Chart

News and Backtesting

If you need to get news put directly on your NinjaTrader 8 charts you might want to consider our XABCD News Pro which will allow you to map on the current weeks news events starting on Sunday and ending on the upcoming Sunday.

This will help you during your live forward walking tests by notifying you where your going to get news release in the market. This will help in your NinjaTrader 8 testing by pointing out where those emotional periods are that you'll want to stay out of the market.

NinjaTrader 8 Backtesting Vs Reward Walking Tests

Forward walking tests allow you to get a much more accurate sample set of trade results. It can do this by letting you factor in news events and allowing you to look closely at price action, when the markets open and closes to prevent taking trades before and after as well as many other factors.

Frequently Asked Questions

How do I set up backtesting in NinjaTrader 8?

To set up backtesting in NinjaTrader 8, open the Strategy Analyzer from the New menu, select your strategy, configure the instrument, date range, and data series, then click Run. The Strategy Analyzer will simulate your strategy against historical data and generate a detailed performance report including profit/loss, drawdown, and trade statistics.

Is NinjaTrader 8 backtesting accurate?

NinjaTrader 8 backtesting accuracy depends on the quality of your historical data, the tick granularity you select, and how realistically your strategy accounts for slippage and commission. Using higher-resolution data such as tick-level replay improves accuracy, but no backtest can perfectly replicate live market conditions due to factors like order fill assumptions and liquidity variations.

What is the difference between Strategy Analyzer and Market Replay in NinjaTrader 8?

The Strategy Analyzer runs automated backtests by processing historical data rapidly against your coded strategy to produce performance metrics. Market Replay, on the other hand, replays recorded tick data in real time or at accelerated speeds, allowing you to practice discretionary trading or observe how a strategy behaves as if the market were live.

Can I optimize strategy parameters during NinjaTrader 8 backtesting?

Yes, NinjaTrader 8's Strategy Analyzer includes a built-in optimization engine that lets you test multiple parameter combinations across a defined range. You can run standard optimization, walk-forward optimization, or use genetic algorithm-based optimization to find the best-performing parameter sets while watching for overfitting.

Why is my NinjaTrader 8 backtest running slowly?

Slow backtests in NinjaTrader 8 are typically caused by using tick-level data over long date ranges, running complex strategies with many indicators, or performing large-scale optimizations with wide parameter ranges. To improve speed, try using minute-based data when tick precision is not required, reduce the optimization search space, or ensure your PC meets recommended hardware specifications with sufficient RAM and CPU power.

Frequently Asked Questions

How do I set up backtesting in NinjaTrader 8?

To set up backtesting in NinjaTrader 8, open the Strategy Analyzer from the New menu, select your strategy, configure the instrument, date range, and data series, then click Run. The Strategy Analyzer will simulate your strategy against historical data and generate a detailed performance report including profit/loss, drawdown, and trade statistics.

Is NinjaTrader 8 backtesting accurate?

NinjaTrader 8 backtesting accuracy depends on the quality of your historical data, the tick granularity you select, and how realistically your strategy accounts for slippage and commission. Using higher-resolution data such as tick-level replay improves accuracy, but no backtest can perfectly replicate live market conditions due to factors like order fill assumptions and liquidity variations.

What is the difference between Strategy Analyzer and Market Replay in NinjaTrader 8?

The Strategy Analyzer runs automated backtests by processing historical data rapidly against your coded strategy to produce performance metrics. Market Replay, on the other hand, replays recorded tick data in real time or at accelerated speeds, allowing you to practice discretionary trading or observe how a strategy behaves as if the market were live.

Can I optimize strategy parameters during NinjaTrader 8 backtesting?

Yes, NinjaTrader 8's Strategy Analyzer includes a built-in optimization engine that lets you test multiple parameter combinations across a defined range. You can run standard optimization, walk-forward optimization, or use genetic algorithm-based optimization to find the best-performing parameter sets while watching for overfitting.

Why is my NinjaTrader 8 backtest running slowly?

Slow backtests in NinjaTrader 8 are typically caused by using tick-level data over long date ranges, running complex strategies with many indicators, or performing large-scale optimizations with wide parameter ranges. To improve speed, try using minute-based data when tick precision is not required, reduce the optimization search space, or ensure your PC meets recommended hardware specifications with sufficient RAM and CPU power.

Still have a question about this?Ask the XABCD team in Live Chat and get help with your setup.Ask in Live Chat →
Be the First to Read New Articles
Free tutorials, fixes and setup guides by email.
Recommended Tool
XABCD ATM Pack
23 free ATM strategy templates for NinjaTrader 8. Import them and start with your stops and targets already set up.
Get the Free ATM Pack →
Recommended Video
XABCD Pattern Indicator Suite
Ditch NinjaTrader ATMs: This Is More Powerful
See how to set your risk and calculate contracts directly on the chart.
Watch Now
(opens in a new tab)
Subscribe on YouTube
(opens in a new tab)
Related Tool
XABCD ATM Pack
XABCD ATM Pack
23 free ATM strategy templates for NinjaTrader 8. Import them and start with your stops and targets already set up.
Get the Free ATM Pack
Why XABCD Trading
  • Built for NinjaTrader 8 since 2009
  • Trusted by 2,000+ traders
  • On-chart tools, no ATM templates needed
  • Free tools to get started
Free XABCD Tools
Product image placeholder
XABCD News
GET IT
Product image placeholder
XABCD Performance
GET IT
Product image placeholder
XABCD ATM Pack
GET IT
Get Project Updates
Twice-monthly maximum, we will give you updates on all the projects going here.