I would like to write a simple indicator that would number the candles/bars visible in the chart, i.e. there will be numbers 1,2,3,4 under or above each bar. What functions/methods should I have a look at?
Thank you. Could you point me to a similar indicator so that I can have a look at it and change it for my purposes? This is the first indicator I want to code so I need some working reference, e.g. an indicator that draws objects on the chart.