Skip to content

Getting Started with Xen for NinjaTrader

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 and save source revisions. The independent Analyse Backtest task can review an exported NinjaTrader Strategy Analyzer report from any strategy without requiring its source code.

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.

Open Xen AI for NinjaTrader

Explore the Features of Xen AI

Tip: Set the video quality to HD (1080p) for the best viewing experience.

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 a build 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. Focused changes to established source normally continue without restarting the planning workflow.

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 the source, download the .cs file or import Xen's generated Add-On ZIP. Compile it in NinjaTrader and 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. Use the separate Analyse Backtest task when you want Xen to review a Strategy Analyzer Summary CSV from any strategy.

Continue with the guide

Explore the workspace and tasks

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.