Bars in progress 0 is a non time frame chart and Bars in progress1 is a time based chart.
The issue arises which I think that because Currentbar in BarsInSession 0 may have less than Barsinprogress1. When plotting I get an index error.
If I just print live. I don't have an issue. What I want to do is paint some Stochastics back 5 bars so I can have a feel how the stochastics trend is.
//live
if(BarsInProgress == 1 && CurrentBar == Bars.Count - 1)
{
TimeChart[0] =( DoubleStochastics(10)[0];
PlotBrushes[1][0] = pTimeTrendColor;
}
Comment