OPEN-SOURCE SCRIPT
Updated 52 Week High/Low with Grid

52 Week High/Low Indicator — Plots the trailing 52-week high and low as horizontal reference lines on any chart. A compact info table sits in your chosen corner and displays three key rows: the 52-week high with how far price is from reaching it, the current price with its daily change, and the 52-week low with how far price sits above it. Below that, a visual gauge bar (██████░░░░) shows at a glance where price falls within the full 52-week range as a percentage — near 0% means hugging the low, near 100% means pressing the high. The gauge turns green near the top, red near the bottom, and yellow in the middle. Distance labels also highlight when price is within 5% of either extreme, making potential breakouts or breakdowns easy to spot. Supports daily lookback (252 bars) or weekly security calls, with options to base levels on candle wicks or closing prices. Includes markers for new 52-week highs/lows and four built-in alert conditions.
Release Notes
52 Week High/Low Indicator — Plots the trailing 52-week high and low as horizontal reference lines on any chart. A compact info table sits in your chosen corner and displays three key rows: the 52-week high with how far price is from reaching it, the current price with its daily change, and the 52-week low with how far price sits above it. Below that, a visual gauge bar (██████░░░░) shows at a glance where price falls within the full 52-week range as a percentage — near 0% means hugging the low, near 100% means pressing the high. The gauge turns green near the top, red near the bottom, and yellow in the middle. Distance labels also highlight when price is within 5% of either extreme, making potential breakouts or breakdowns easy to spot. Supports daily lookback (252 bars) or weekly security calls, with options to base levels on candle wicks or closing prices. Includes markers for new 52-week highs/lows and four built-in alert conditions.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.