"Indicator cannot be serialized" error in NinjaTrader

Created by Andrea Bordoni, Modified on Wed, 29 Nov, 2023 at 6:03 PM by Andrea Bordoni

The problem is caused by a corrupt indicator. This solution comes to us straight from NinjaTrader. 

These are the steps recommended by NinjaTrader:

  1. Open NinjaTrader
  2. Navigate to the Control Center -> Tools -> Edit NinjaScript -> Indicator
  3. Select the one of the indicators and double click on it.
  4. A new window will appear and you will need to right click and compile the indicator. All NinjaScript files will now be compiled, not just the indicator you opened.
  5. At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error.
  6. From there you have the option to remove the indicator or debug it. You can delete NinjaScript files via Tools-->Edit NinjaScript-->Indicator/Strategy, highlight it and select Delete.

If the corrupt indicator in question is the ST indicator please replace the indicator by downloading and installing the software again. Instructions to set up the NT indicator can be found here.


If the problem persists please either contact Sentient Trader support or NinjaTrader support.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article