Getting Started with NinjaTrader Xen
NinjaTrader Xen is an AI development workspace for NinjaTrader 8 strategies and indicators. It is designed around practical development tasks rather than open-ended chat. You choose what you want to do, describe the required behaviour, and Xen uses a task-specific set of instructions to prepare NinjaScript C# for that job.
The workspace can create a new Strategy or Indicator, work on existing NinjaScript, and convert source code from another trading platform. After code has been returned, Xen can run a server-side Build Check, compare the implementation with your original requirements, save source revisions, and analyse an exported NinjaTrader Strategy Analyzer report.
NinjaTrader Xen does not connect to your trading account and does not place trades. Generated code must still be compiled and tested inside NinjaTrader before it is considered ready for simulation or live use.
Starting a project
Sign in and open Xen. The dark workspace opens with Build Strategy selected. Choose the task that matches the work you intend to perform before entering a request. This matters because each task has its own platform rules and expected output.
For a new strategy or indicator, describe its behaviour in plain language. For existing or converted code, paste the complete source file or use the upload control. Xen keeps the conversation and generated source together as a project, so later refinements have the context of the earlier work.
When your initial description leaves important trading behaviour unclear, Xen offers to clarify the request. The built-in Prompt Builder asks only the questions needed to remove material ambiguity and can create a staged Build Plan for larger projects.
A safe development path
Treat the first generated file as the beginning of a development cycle. Run Build Check to catch compiler and common lifecycle problems, then copy or download the source and compile it in NinjaTrader. Test the script in a suitable chart, Strategy Analyzer or simulation environment before requesting further changes.
Use Verify requirements when you want Xen to compare the latest complete source with the behaviour you originally requested. For strategies, a successful Build Check also opens the path to Analyse backtest results, where a Strategy Analyzer Summary CSV can be reviewed.
Continue with the guide
Explore the workspace and tasks
Learn how to write an effective request
Generated trading code requires testing
AI-generated source can contain compilation, runtime or trading-logic errors. Compile it in NinjaTrader, test it with historical data, and run it in simulation before considering live use. Historical results are not a guarantee of future performance.