Operations
Installing in NinjaTrader
An exported strategy is one standalone .cs file. Installing it in NinjaTrader 8 takes a compile and an attach.
Install steps
- Copy the downloaded file into NinjaTrader's strategy folder:
Documents\NinjaTrader 8\bin\Custom\Strategies\<ClassName>.cs - In NinjaTrader 8, open the NinjaScript Editor and press F5 to compile. The strategy needs no other files — it inherits NinjaTrader's own
Strategyclass. - The strategy now appears in NinjaTrader's Strategies list. Attach it to a chart of the same instrument and bar size it was built on (e.g. a strategy built on MES 5m goes on an MES 5-minute chart).
- Run it on a simulation or paper account first. The strategy validated on history; history is not the future.
The two classic mistakes
- Compile errors are almost always a partial copy — a truncated file or a hand-edit. Re-save the full generated
.csand press F5 again. If you exported with the beta verification trace and moved the file, keep the class name and filename identical. - Zero trades, no errors means an instrument or bar-size mismatch: the strategy is attached to a different market or timeframe than it was built on. It won't error — its conditions simply never line up. Match the chart to the dataset the strategy was discovered on.
More cases in Troubleshooting → NinjaTrader.
Keeping it honest over time
A deployed strategy should be re-checked against fresh data on a routine — export new bars weekly, Re-evaluate the saved spec, and watch the degradation table before continuing to trade it. The full routine: Strategy specs & re-evaluation.