In order to create a library where i could abstract functionality, I passed the indicator reference from my indicator and was able to create series in the add-on successfully...
Here is code that does work (for the constructor):
public Belt(Indicator Indicator)
{
this.Indicator = Indicator;
MAShort = new Series<double>(Indicator);
MAMedium = new Series<double>(Indicator);
}
What can I do to work around this problem?

Comment