barsPainted = ChartBars.ToIndex - ChartBars.FromIndex; height = chartScale.Height/16; width = chartScale.Width/32; Draw.ArrowLine(this, "myArrow", CurrentBar-ChartBars.FromIndex-(barsPainted/32), chartScale.GetValueByY((float)(height+height/64)), CurrentBar-ChartBars.FromIndex-(barsPainted/32), chartScale.GetValueByY((float)(height+height*2)), Brushes.Red,DashStyleHelper.Solid, 7);
Update: PC which does not work has windows 7 OS
Update 2: Error looks like: "Error on calling 'OnRender' method on bar 5546: 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."
while currentBar = 5545, why does OnRender method trying to recive non exist bar
Comment