Hi guys,

I'm writing an indicator (NT 8 Beta) which labels the bars with their number, 1 being the first bar of the session.

I'm using Draw.Text and the indicator works fine - EXCEPT it appears to be consuming too much in the way of resources. Moving the mouse/cursor over a chart becomes very laggy as does performing any manual operation such as scrolling through the chart, using a drawing tool. This is because around 9,000 drawing objects are created (the number of bars in the chart).

Is there a way of determining which bars are visible on screen so that I could create those drawing objects only on the fly, significantly reducing the number of drawing objects existing at any one time and thus, hopefully, improving performance?