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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.