OPEN-SOURCE SCRIPT

RTH Session Bar Counter EU/US/Asia v.2.2

116
Added a "Label every N bars" setting (1–20) to extend how far back into history the bar numbers are visible. TradingView caps any script at 500 labels total, so on busy timeframes numbers eventually ran out while background shading didn't — raising N now lets you trade granularity for historical reach (e.g. every 2nd bar roughly doubles the visible range, every 3rd roughly triples it).
Regardless of the setting, the first bar of every session, every hour-end bar, and your special marked bar (if enabled) are always numbered and never thinned out.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.