Error on calling 'OnBarUpdate' method on bar 21: You are accessing an index with a value that is invalid since it is out-of-range
Bars required to trade is 20
I have this code:
if (ShowLines ) Draw.Text(this, "Lable1", false,MyValue.ToString(), Convert.ToInt32((ChartBars.ToIndex-ChartBars.FromIndex)*0.1), LowOfRange-TickSize*2, 0, Brushes.Green, smallFont, TextAlignment.Justify, Brushes.Transparent, Brushes.Transparent, 0);
thought about :
if (ShowLines && CurrentBar > 50) Draw.Text(this .....
not working...
Comment