PROTECTED SOURCE SCRIPT
Updated

Visible Bars

181
This utility script displays the number of visible bars currently on your chart and helps you monitor your zoom level in real time.

Shows a table in the top-right corner with the visible bar count

Highlights in green if the bar count is within your preferred range

Highlights in red if you're too zoomed in or out

Includes easy-to-adjust settings for min and max acceptable bar counts

Useful for traders using strategies that depend on consistent zoom/perspective

Ideal for manual traders who want consistent chart context or developers testing visual scripts that depend on screen real estate.
Release Notes
This utility script displays the number of visible bars currently on your chart and helps you monitor your zoom level in real time.

Shows a table in the top-right corner with the visible bar count

Highlights in green if the bar count is within your preferred range

Highlights in red if you're too zoomed in or out

Includes easy-to-adjust settings for min and max acceptable bar counts

Useful for traders using strategies that depend on consistent zoom/perspective

Ideal for manual traders who want consistent chart context or developers testing visual scripts that depend on screen real estate.
Release Notes
Added a hard cap of 3000 for performance reasons.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.