> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# NinjaScript Wizard

The NinjaScript Wizard is used to generate the minimum code to get started programming any supported **NinjaScript** type. This wizard will allow you to define any default properties, add custom input parameters, add additional data series, and add any relevant event methods. There are a number of different properties and options available in the **NinjaScript** Wizard depending on the type of **NinjaScript** object you are creating.

The information on this page is to be used as a standard overview of the various components of the **NinjaScript** Wizard. For more information on **NinjaScript** methods and properties, please see the **NinjaScript Language Reference** section of our Help Guide.

## Opening the NinjaScript Wizard

### Creating a new NinjaScript file

The **NinjaScript** Wizard can be opened from the **NinjaScript Editor** by selecting the + symbol on the tab row, and then selecting the **NinjaScript** object type you wish to develop.

![ns\_wizard\_1](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/d4edf058cb6d44616832a4be6869dff45585185795b5abea5ed471ed5c3acabe/docs/assets/developer/desktop-sdk/guides/ninjascript-wizard-ns-wizard-1.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070403Z&X-Amz-Expires=604800&X-Amz-Signature=6aa913f31525e5c060c791331b4ed4c3be8d955a9dc5136e47f3703864763645&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

You can also right click on any of the **NinjaScript** categories listed in the [NinjaScript Explorer](/developer/desktop-sdk/guides/ninjascript-editor-overview/ninjascript-explorer) and select "New\..."

## Understand the NinjaScript Wizard Display

### Display Overview

![ns\_wizard\_3](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/79e6861ca0bb6987c8a01de323485f5650895ee708460ffae3cbb91e6e1ee1db/docs/assets/developer/desktop-sdk/guides/ninjascript-wizard-ns-wizard-3.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070403Z&X-Amz-Expires=604800&X-Amz-Signature=95a1771459ba37b25d610b45f32802bb4e4896d7abb05701fa66221f7b279b58&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

| Name                      | Description                                                                                                                                                                                                                                                                            |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. Wizard Navigation Menu | Used to navigate to various pages of the wizard.  You can skip ahead or return to any page in the wizard at any time.                                                                                                                                                                  |
| 2. Wizard Screen          | Displays relevant information pertaining to the step of wizard you have navigated to and will provide instructions to help you define your script at various stages.                                                                                                                   |
| 3. Wizard Controls        | Buttons used to perform various actions pertaining to the script that is being created.  Selecting Generate at any time will exit the wizard and open your script in the NinjaScript Code Editor (Note:  You cannot return back to the NinjaScript Wizard once the code is generated). |

## Understanding the Wizard Screens

### Optional Pages

The **NinjaScript** Wizard has a number of different pages available used to define various steps of your custom script. Please note that the table below describes ALL of the pages available from the Wizard, but does not imply that these steps will be available for the script you are currently creating.

| Name                     | Description                                                                                                                                |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Welcome                  | The first step of the Wizard, used to identify which type of object is being created                                                       |
| General                  | Used to define a name and description to identify the **NinjaScript** file                                                                 |
| Default Properties       | Sets various properties and start behavior for the script being created                                                                    |
| Additional Data          | Used to optionally add additional data series such as minute, tick, etc or even custom series you may plan on calculating programmatically |
| Additional Event Methods | Optionally add additional event methods to your custom script, such as **OnMarketData**, **OnMarketDepth**, etc                            |
| Input Parameters         | Used to define any public properties that may be used in your script                                                                       |
| Plots and Lines          | Optionally add visual plots or lines to your script for charting purposes                                                                  |
| Finish                   | Last page of the Wizard, gives you a chance to go back and review each page if desired before finishing generating the script.             |