The error is letting you know that an object was not declared.
If the Dataseries is a plot, the MACD Avg is a good example of how to declare a public plot series.
If the Dataseries is a custom private Dataseries, below is a link to the help guide on the Dataseries class.
Below is a link to a forum post with helpful tips on porting a script from NinjaTrader 7 to NinjaTrader 8.
Comment