Checking the prints...the system believes it is 6pm and not the current time which I'm guessing is causing the index error. How can I work around this?
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
Print("0Time"+Time[0]);
for (int idx = ChartBars.FromIndex; idx <= ChartBars.ToIndex; idx++)
{
Print("1Time"+Time[0]);
if(mid.IsValidDataPointAt(idx))
{
Print("2Time"+Time[0]);
float x = chartControl.GetXByBarIndex(ChartBars, idx);
float y = chartScale.GetYByValue(mid.GetValueAt(idx));
Thanks

Comment