OPEN-SOURCE SCRIPT
bar count plot only for far lookback

Purpose:
TradingView limits the number of text/label objects (≈500), which causes traditional bar-count indicators to stop showing numbers when you scroll far back in history.
This plots-only version bypasses that limitation entirely, allowing you to view bar numbers anywhere on the chart, even thousands of bars back.
How It Works:
Displays each bar’s in-day sequence number (1–78 by default) under the candles.
Counts restart automatically at the start of each trading day.
Uses a dual-channel “digit plot” system (tens + ones) instead of labels—extremely light on performance and unlimited in lookback.
The digits are drawn every N bars (default = 3) to keep the view uncluttered.
Key Parameters:
Show every Nth bar: Controls how often numbers appear (1 = every bar, 3 = every 3 bars, etc.).
Notes:
Digits are plotted directly via plotshape()—no labels—so they remain visible even 5 000 + bars back.
Alignment may vary slightly depending on chart zoom; this version is intended mainly for deep historical review rather than precise near-term alignment.
TradingView limits the number of text/label objects (≈500), which causes traditional bar-count indicators to stop showing numbers when you scroll far back in history.
This plots-only version bypasses that limitation entirely, allowing you to view bar numbers anywhere on the chart, even thousands of bars back.
How It Works:
Displays each bar’s in-day sequence number (1–78 by default) under the candles.
Counts restart automatically at the start of each trading day.
Uses a dual-channel “digit plot” system (tens + ones) instead of labels—extremely light on performance and unlimited in lookback.
The digits are drawn every N bars (default = 3) to keep the view uncluttered.
Key Parameters:
Show every Nth bar: Controls how often numbers appear (1 = every bar, 3 = every 3 bars, etc.).
Notes:
Digits are plotted directly via plotshape()—no labels—so they remain visible even 5 000 + bars back.
Alignment may vary slightly depending on chart zoom; this version is intended mainly for deep historical review rather than precise near-term alignment.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.