Backtests
Run, optimize, read the results.
NinjaTrader's Strategy Analyzer, run from the chat. Name the strategy, instrument, bars, dates, fills and costs; the analyzer opens, runs, and the numbers come back: trades, net profit, profit factor, drawdown, every trade if you want them. Then optimize and compare. Any strategy you have. Simulated fills, no account. The four below are one session in order.
The replies are the assistant’s exact words, the pictures stills, from the recorded run of September 24, 2026. Watch the recording.
"Backtest it on ES 5-minute, last thirty days, RTH, with commission."
The analyzer's grid filled from your sentence, Run pressed, and the summary read back in plain words.
Click for what came back
SampleMACrossOver on ES 12-26, 5 minute regular hours, August 25 to September 24, Fast 10 and Slow 25, commission on, one tick of slippage. All trades: 90 trades, net minus 13,105 dollars, profit factor 0.43, max drawdown 13,297 dollars, 24 percent profitable. Longs: 45 trades, minus 6,996. Shorts: 45 trades, minus 6,109. The five biggest trades: a short on September 14 lost 2,029. A short on September 16 made 1,858. A long on September 18 made 1,733. A long on September 3 made 1,458. And a long on September 16 lost 1,104.
"Now optimize the fast average from 5 to 15."
The analyzer's optimization, a range per parameter, the fitness you name, the kept runs back with the best flagged.
Click for what came back
Nine combinations ran, best ten kept by net profit. The winner is Fast 15, Slow 30: 67 trades, net minus 4,130 dollars, profit factor 0.72, drawdown 8,583, 37 percent profitable. The default, Fast 10 Slow 25, lost 13,009 in the same grid. So the winner is 8,880 dollars better, and still a loss.
The Strategy Analyzer after the optimization: the visible combinations sorted by net profit, Fast 15 Slow 30 on top, its summary below.
"Run the winner on NQ and on July, and tell me if it holds up."
The same strategy with the best parameters, on another instrument and another date range, and the three runs side by side. The check every backtest needs and few people do.
Click for what came back
All three with Fast 15, Slow 30. ES, August 25 to September 24: 67 trades, net minus 4,130, profit factor 0.72, drawdown 8,583, 37 percent profitable. NQ, same dates: 77 trades, net minus 27,646, profit factor 0.50, drawdown 38,137, 36 percent. ES in July: 72 trades, net minus 7,801, profit factor 0.76, drawdown 14,039, 36 percent. It does not hold up. The winner loses on NQ, and loses in July.
"Close the analyzer and save."
The Strategy Analyzer opens where NinjaTrader puts it, over your charts, so it goes when you are done; closing a window needs the Destructive tick and your yes unless --- Unattended is on. Then the workspace saved as it stands.
Click for what came back
The Strategy Analyzer is closed, confirmed by a separate read, and HTAITest is saved.
More you can ask (These are just examples. There is no menu to learn.)
- "Open the Strategy Analyzer." / "Close it." (opening is the Charts tick; closing the window also needs Destructive, and your yes unless --- Unattended is on)
- "Backtest the strategy you just wrote."
- "From June 1 to August 31."
- "Fast 8, Slow 21." (any of the strategy's own parameters)
- "High fill resolution, exit on session close."
- "How did the longs do against the shorts?" (every run carries all, long and short)
- "List every trade."
- "Optimize for the best profit factor instead."
- "Optimize for the smallest drawdown."
- "What fitness choices does the analyzer have?"
- "Run it on ES, NQ and YM and rank them."