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.
• | This is a great distribution option if your proprietary indicator or strategy files do not reference external DLL's |
• | If your proprietary indicator or strategy references external DLL's then its advised to create your own custom installer |
1. | From the Control Center window select the menu File > Utilities > Export NinjaScript to open the "Export NinjaScript" dialog window |
2. | Select the option "Export compiled assembly of selected source files". |
3. | You can optionally select "Protect compiled assemblies" (For information on protection see the "Protection/DLL Security page) |
4. | Enter a user defined file name |
5. | Select all of the files that you want to export and either double click on them or press the ">" button |
6. | A list of all files that will be exported |
7. | Optionally enter information that describes the assembly |
8. | Press the "Export" button to export the selected files |
9. | A NinjaScript Archive File (.zip) file will be created in My Documents\<NinjaTrader Folder>\bin\Custom\ExportNinjaScript |
10. | The file can be imported by another NinjaTrader application on a different PC |
Note: When exporting a protected assembly the generated .zip will contain a x86 (32-bit) and x64 (64-bit) version of the DLLs. When a user installs this .zip, both assemblies are installed and NinjaTrader will automatically load the correct one based on if the user is in 32-bit or 64-bit mode.
|