OPEN-SOURCE SCRIPT
52 Week High Low

Purpose
This indicator plots the rolling **52-week high and low price levels** to highlight long-term breakout zones, major support/resistance bands, and trend structure used by position and swing traders.
## How It Works
The script dynamically calculates:
- The highest high over the last ~260 trading sessions (52-week high)
- The lowest low over the last ~260 trading sessions (52-week low)
- Visual bands that update in real time as price evolves
## Best Timeframe
Optimized for **daily charts** to reflect true yearly price ranges.
Can be adapted to other timeframes using the bar-count inputs.
## Trading Applications
✅ Breakout confirmation tool
✅ Long-term trend validation
✅ Relative strength filter alignment
✅ RRG and momentum cross-checks
✅ Swing trade zone identification
## How To Use
1. Apply to daily charts.
2. Track price interaction with the 52-week bands.
3. Look for:
- Breakouts above the high band for trend continuation
- Pullbacks toward the high band for retest entries
- Rejections at the low band as breakdown confirmation
⚠️ This indicator maps key price structure — it does **not predict directional outcomes**.
Always combine with volume or momentum confirmation.
---
## Mathematical Basis
Rolling extreme calculations based on:
- **Highest high over N bars**
- **Lowest low over N bars**
N defaults to **52 weeks × 5 sessions = 260 bars** for daily charts.
---
Developed for professional retail traders seeking institutional-grade structural tools.
This indicator plots the rolling **52-week high and low price levels** to highlight long-term breakout zones, major support/resistance bands, and trend structure used by position and swing traders.
## How It Works
The script dynamically calculates:
- The highest high over the last ~260 trading sessions (52-week high)
- The lowest low over the last ~260 trading sessions (52-week low)
- Visual bands that update in real time as price evolves
## Best Timeframe
Optimized for **daily charts** to reflect true yearly price ranges.
Can be adapted to other timeframes using the bar-count inputs.
## Trading Applications
✅ Breakout confirmation tool
✅ Long-term trend validation
✅ Relative strength filter alignment
✅ RRG and momentum cross-checks
✅ Swing trade zone identification
## How To Use
1. Apply to daily charts.
2. Track price interaction with the 52-week bands.
3. Look for:
- Breakouts above the high band for trend continuation
- Pullbacks toward the high band for retest entries
- Rejections at the low band as breakdown confirmation
⚠️ This indicator maps key price structure — it does **not predict directional outcomes**.
Always combine with volume or momentum confirmation.
---
## Mathematical Basis
Rolling extreme calculations based on:
- **Highest high over N bars**
- **Lowest low over N bars**
N defaults to **52 weeks × 5 sessions = 260 bars** for daily charts.
---
Developed for professional retail traders seeking institutional-grade structural tools.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。