> 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.

# Export

You can export **NinjaScript** for others to import in several formats:

* **Source files** - **NinjaScript** source files that can be imported and edited by others.
* **Assemblies** - A compiled assembly (DLL) of **NinjaScript** that "hides" your source code. This can be further [protected by SecureTeam's Agile.NET](/developer/desktop-sdk/guides/distribution/protection-dll-security) to prevent theft of your intellectual property.

## Exporting NinjaScript as Source Files

You may want to provide other **NinjaTrader** users with source files of your **NinjaScript** in a format where they are able to view and edit them.

1. From the Control Center window select the menu Tools > Export > **NinjaScript**... to open the "Export **NinjaScript**" dialog window.
2. Press "add".
3. Use the "Type" drop down to filter available **NinjaScript** types.
4. Select all of the files that you want to export and press the "OK" button.
5. A list of all files that will be exported will be shown.
6. Press the "Export" button to export the selected files.
7. A file dialog will open where you can choose the location your zip export file will be created in. Per default the **NinjaScript Archive File** (.zip) file will be created in **My Documents\<ninjatrader folder="">\bin\Custom\ExportNinjaScript**.
8. The file can be [imported](/developer/desktop-sdk/guides/distribution/import) by another **NinjaTrader** application on a different PC.

![exportninjascript\_1](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/ebceb90178ccf4610a123b8342440abf980afa1b7cbcaf3d5d551432989af8a4/docs/assets/developer/desktop-sdk/guides/export-exportninjascript-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=20260729T062120Z&X-Amz-Expires=604800&X-Amz-Signature=a63b5afaf771d9d890c3db79fecab858f6cacb55af7efdac7f2eefb4f56def7a&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## Exporting NinjaScript as Assembly

You may want to provide other **NinjaTrader** users with access to your proprietary indicators or strategies in a secure format preventing them from being able to see your proprietary source code. You can do this by exporting your **NinjaScript** indicators as a compiled **Microsoft .NET** assembly (DLL) file.

1. From the Control Center window select the menu Tools > Export > **NinjaScript**... to open the "Export **NinjaScript**" dialog window.
2. Select the option "Export as compiled assembly".
3. You can optionally select "Protect compiled assembly" (For information on protection see the "[Protection/DLL Security](/developer/desktop-sdk/guides/distribution/protection-dll-security)" page).
4. Press "add".
5. Use the "Type" drop down to filter available **NinjaScript** types.
6. Select all of the files that you want to export and press the "OK" button.
7. A list of all files that will be exported will be shown.
8. Optionally enter information that describes the assembly in the "Product" and "Version" fields.
9. Press the "Export" button to export the selected files.
10. A file dialog will open where you can choose the location your zip export file will be created in. Per default the **NinjaScript Archive File** (.zip) file will be created in **My Documents\<ninjatrader folder="">\bin\Custom\ExportNinjaScript**.
11. The file can be imported by another **NinjaTrader** application on a different PC.

![exportninjascript\_3.png](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/1b0ed3dc804af895470a5702a202f771a758494163dc51721153e79192e848dc/docs/assets/developer/desktop-sdk/guides/export-exportninjascript-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=20260729T062120Z&X-Amz-Expires=604800&X-Amz-Signature=c5b0ca36df8bf7c64b9d4ff925424ddd8ed86cbf8b458a7cacc98e9e341c9558&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)