What You Need to Understand About NinjaTrader 8 Backtesting?

The Limitations Behind NinjaTrader 8 Backtesting
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
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

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
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.
Free tutorials, fixes and setup guides by email.












