AddPlot(Brushes.Blue, "Avg"); // NEW -- Average Volume Plot [0]
...
double avgVol = SMA(Volume, Period)[0];
Values[0] = avgVol;
..
[Browsable(false)]
[XmlIgnore()]
public Series<double> Default
{
get { return Values[0]; }
}
...
But I got the following compile error:
Error: Cannot impliciily convert type double to NinjaScript Series,double>
Code: CS0029
I have the same problem when I changed to:
Values[0] = SMA(Volume, Period)[0];
However, I was succesful in compiling the following code when I did in another NinjaScript:
...
DiffUp[0] = CCI(Period)[0];
...
DiffDown[0] = CCI(Period)[0];
...
I could find much information on the Beta 8 Help Guide. Appreciate any suggestions you can provide.
Thanks,
Richard
Comment