Disclaimer: I have never done any Ninjatrader scripting, but, AFAIU, Ninja script is C#.
In C#, the line
private Series<double> speeda;
declares an object speeda but does not create an instance of it. Thus, when you do
speeda[0]=1;
You are referring to a null object, and getting an...