NinjaScript is a proprietary scripting language developed by NinjaTrader and specifically designed for creating custom indicators, strategies, and automated trading systems within the NinjaTrader platform.

Traders can harness the power of programming to develop their own unique technical indicators and trading strategies using NinjaScript. This allows them to tailor their trading approach to their specific preferences and requirements.

Integrated directly into the NinjaTrader platform, NinjaScript provides a seamless environment for coding, testing, and deploying custom solutions. It's particularly appealing to traders who have coding experience or a desire to create their own personalized trading tools. Additionally, NinjaTrader provides a variety of educational resources and a supportive community to assist traders in learning and mastering the NinjaScript programming language.

For comprehensive resources on Ninjascript, click here.

Import

Please ensure that you only import NinjaScript Archive files (.zip) acquired from trusted sources.

Here's how to import your NinjaScript:

  1. First, open the Control Center window and navigate to Tools > Import > NinjaScript...
  2. Then select the file you wish to import.
  3. Finally, click on the "Import" button, now you got your file imported

Export

1. Exporting as Source Files

If you want to share your NinjaScript with other NinjaTrader users so they can view and edit it:

  1. Start by opening the Control Center window and choose Tools > Export > NinjaScript...
  2. Click "Add."
  3. Use the dropdown labelled "Type" to filter the available NinjaScript types.
  4. Pick the files you want to export and press "OK."
  5. You'll see a list of the files that will be exported.
  6. Choose the "Export" button to begin exporting.
  7. A dialogue box will appear, allowing you to choose the location for your zip export file. By default, the NinjaScript Archive File (.zip) is in My Documents<NinjaTrader Folder>\bin\Custom\ExportNinjaScript.
  8. You can import the exported file into another NinjaTrader application on a different PC.

     

Exporting as Assembly

If you need to provide access to your proprietary indicators or strategies while securing your source code, consider exporting your NinjaScript indicators as compiled Microsoft .NET assembly (DLL) files.

  • This is a suitable approach if your proprietary indicators or strategy files don't rely on external DLLs.
  • For proprietary content that references external DLLs, creating a custom installer is recommended.
  1. Start by opening the Control Center window and selecting Tools > Export > NinjaScript...
  2. Next, choose "Export as compiled assembly."
  3. Optionally, you can choose "Protect compiled assembly" (For details on protection, refer here).
  4. Then click "Add."
  5. Use the dropdown labelled "Type" to filter the available NinjaScript types.
  6. Select the files you wish to export and press "OK."
  7. A list of the files to be exported will be displayed afterwards.
  8. Optionally, provide descriptive information in the "Product" and "Version" fields.
  9. Then you can click the "Export" button to initiate the export process.
  10. A dialogue box will appear, allowing you to select the location for the zip export file. By default, the NinjaScript Archive File (.zip) will be generated in My Documents<NinjaTrader Folder>\bin\Custom\ExportNinjaScript.
  11. The exported file can be imported by another NinjaTrader application on a different PC.

Remove your NinjaScript assembly:

  1. Open the Control Center window and select Tools > Remove NinjaScript Assembly.
  2. Choose the file(s) you wish to remove (You can select multiple files by holding Shift while making selections).
  3. Click the "Remove NinjaScript assembly" button.

Discover the high quality of NinjaScript Indicators

ninZa.co stands out as a leading and prominent provider of top-tier trading indicators for the NinjaTrader platform. Our exceptional range of pro-grade indicators caters to the trading needs of over 20,000 NinjaTrader users across the globe, spanning every continent except Antarctica.

Say goodbye to the complexities of coding & managing your own scripts – our extensive collection of over 140 NinjaScript indicators offers solutions that cater to a wide array of trading styles.

Backed by a stellar 5-star customer support service, we are dedicated to delivering an unmatched trading experience, join us now and receive our limited $150 gift for New members: https://ninza.co/join.