How do I resolve NinjaScript Programming Errors?

It can happen that you do receive an error message when you try to use or import a 3rd Party Indicator or application. To find where this error is coming from you need to compile an indicator. This will show you where the error is coming from.


Please follow the instructions below to see where the errors are coming from after compiling any indicator.


This will allow you to debug the indicator/strategy or remove it from your PC.


If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.


  1. Open NinjaTrader
  2. From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
  3. Select any indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
  4. A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
  5. At the bottom of the window a new section will appear where you can find the error locations.
  6. From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.

If you are unsure as to what the error is indicating, please get in touch with NinjaTrader directly and they can take a look at the error for you.


They have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on forums - http://www.ninjatrader.com/support/forum/showthread.php?t=4678

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us