[Browsable(false)]
[XmlIgnore]
public Series<double> myPlotLine
{
get { return Values[4]; }
}
There is no Values[4] in your script.
You have not called AddPlot() 5 times and added 5 plots for there to be a [4] index with Values.
There is only one call to AddPlot() and this would be Values[0].
Also, the script has a data series added.
You will need to make sure that CurrentBars[1] is greater than 1 and ensure the secondary series has a bar
if (CurrentBars[0] < 1 || CurrentBars[1] < 1)
return;
Comment