protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
if(Time.Count < Count - 1) { Print("Data array not initialized"); return; }
int bpnt = CurrentBar-Bars.GetBar(bTime);
int cpnt = CurrentBar-Bars.GetBar(cTime);
int apnt = CurrentBar-Bars.GetBar(aTime);
Print("apnt: "+apnt.ToString()+" bpnt: "+bpnt.ToString()+" cpnt: "+cpnt.ToString()+" element: "+(bpnt+(int)Math.Round((apnt-bpnt)/2.0)).ToString()+" T: "+Time.Count.ToString());
DateTime bpt1=Time[bpnt+(int)Math.Round((apnt-bpnt)/2.0)];
}
Indicator 'EnigmaV009': Error on calling 'OnRender' method on bar 6783: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.

Comment