Bars.Close[n], Bars.Time[n] inside IChartCustomDrawer.Draw method
cause a exception ! (n>0)
It seems that any access outside CalcBar() cause a exception.
ciao
radekj
Exampel:
Code: Select all
void IChartCustomDrawer.Draw(DrawContext context, EDrawPhases phase)
{
if (Bars.CurrentBar > 1) Output.WriteLine(Bars.Close[1].ToString()); // <- !!! aceess of Close[1] cause a exception !!!
}