My idea is to build a Bar Index Number indicator, that paints bar index number at the bottom of the chart, something like this:
- As you can see, the most right bar is marked as "/", as it's live bar and it is yet to close to be reffered as Time[0] (it can be empty in the indicator)
- Then, from right to left should be numbers from 0 to TOTAL (user input integer, in order to save up space and do not paint bar index numbers for 500+ bars)
- It may also be beneficial to have those numbers rotated 90 degrees, as it would be hard to fit 3 digit numbers like 110 into one bar.
How can this be achieved?
Also, it is essential, that numbers correspond to the bar index correctly, that is if I input Time[BarIndex] it should return correct value.

Comment