After investigation, I found it only stops plotting when more than one AddDataSeries() are present in the code.
In other words, it plots with this:
else if (State == State.Configure) { //[0][0] = current data series AddDataSeries(Data.BarsPeriodType.Minute, 60); //[1][0] } protected override void OnBarUpdate() { if (CurrentBars[0] < 1 || CurrentBars[1] < 1) return;
else if (State == State.Configure) { //[0][0] = current data series AddDataSeries(Data.BarsPeriodType.Minute, 30); //[1][0] AddDataSeries(Data.BarsPeriodType.Minute, 60); //[2][0] } protected override void OnBarUpdate() { if (CurrentBars[0] < 1 || CurrentBars[1] < 1 || CurrentBars[2] < 1) return;
Can a Ninjascript rep test the script with IB and share the solution?
In all there are 8 AddDataSeries() that should be working in this script.
Comment