NinjaTrader performance reports

3 min read

Why NinjaTrader can show a virtual entry in Strategy Performance

The first trade in a Real-Time report can start at a price the strategy calculated before it went live. Here’s where that price comes from and how to check it.

Illustrated timeline with an open ring marking a virtual entry at strategy start and a solid red marker for the later real-time exit.

Quick answer

Choose Real-Time in Strategy Performance to review one NinjaTrader strategy since it started running. If historical processing left that strategy with an open position, NinjaTrader uses its average price as a virtual entry so the report can pair it with a later exit. Look in the account’s executions to verify whether an opening order actually filled at that price.

Choose which trades the report includes

In the Control Center, open the Strategies tab, right-click the strategy’s row and select Strategy Performance. From a chart, right-click, select Strategy Performance and point to the strategy by name.

  • Real-Time covers the period since this run began processing real-time data. Both live accounts and simulation accounts can produce this report.
  • Historical shows trades the strategy calculated from the bars loaded before real-time processing began.
  • Real-Time & Historical combines the two periods. Its totals include trades calculated on historical data.

Trace the first real-time trade back to its entry

Suppose historical processing leaves the strategy long one contract at an average price of 5,000. After the strategy starts processing real-time data, it records an exit at 5,002. The Real-Time report can show a two-point trade by pairing that exit with a synthetic entry at 5,000.

The same pairing matters in NinjaScript. The first trade in SystemPerformance.RealTimeTrades can contain that synthetic entry. If the strategy started flat, there was no opening position to carry forward.

Check whether the account filled the entry

Open Trade Performance and select Executions. Choose the account and date range for the run, then compare the instrument, time, side, price and quantity. If the local history is incomplete, check the brokerage account’s execution record before treating the virtual price as a fill.

The account’s Trades view answers a different question. When two strategies trade the same instrument on one account, NinjaTrader pairs fills using the overall account position and quantity. That pairing can differ from the one in either strategy’s own report.

Why historical trade details can be missing

A strategy applied to a chart keeps individual historical trade records by default. A strategy launched directly from the Control Center’s Strategies tab discards those records by default to save memory. If the historical trade list is empty, check how the strategy was launched and whether IncludeTradeHistoryInBacktest was enabled before drawing a conclusion about its activity.

Official sources

Platform monitoring

Get an email if NinjaTrader goes offline

Ninja Watchdog monitors the Windows desktop or VPS running NinjaTrader and can alert you to a platform interruption.

Explore the free trial