OPEN-SOURCE SCRIPT
Aggiornato 52-Week High Line

52-Week High Line
This indicator automatically identifies and plots the highest price level reached over the past 52 weeks (252 trading days) directly on your chart as a horizontal line.
The line starts from the beginning of the 52-week lookback window and extends to the right, giving you a clear visual reference of where the annual resistance level sits at all times. The line updates only on the current live bar, so it remains stable as you scroll or pan through chart history.
Features:
- Plots the rolling 52-week high as a clean horizontal line
- Line anchors to the start of the current 52-week window, not the original high bar
- Label displays the exact 52-week high price level
- Fully customizable — line color, width, and style (Solid / Dashed / Dotted)
- Toggle label on or off
How to use:
- Price approaching or breaking above the 52-week high line signals potential breakout momentum
- Price consistently rejected below the line signals strong resistance
- Best used on the Daily timeframe for true 52-week accuracy. For other timeframes, adjust the lookback accordingly (Weekly = 52 bars, Monthly = 12 bars)
- Note: The default lookback of 252 bars is calibrated for stock markets. For crypto or forex (24/7 markets), change the lookback to 365 bars for daily charts.
This indicator automatically identifies and plots the highest price level reached over the past 52 weeks (252 trading days) directly on your chart as a horizontal line.
The line starts from the beginning of the 52-week lookback window and extends to the right, giving you a clear visual reference of where the annual resistance level sits at all times. The line updates only on the current live bar, so it remains stable as you scroll or pan through chart history.
Features:
- Plots the rolling 52-week high as a clean horizontal line
- Line anchors to the start of the current 52-week window, not the original high bar
- Label displays the exact 52-week high price level
- Fully customizable — line color, width, and style (Solid / Dashed / Dotted)
- Toggle label on or off
How to use:
- Price approaching or breaking above the 52-week high line signals potential breakout momentum
- Price consistently rejected below the line signals strong resistance
- Best used on the Daily timeframe for true 52-week accuracy. For other timeframes, adjust the lookback accordingly (Weekly = 52 bars, Monthly = 12 bars)
- Note: The default lookback of 252 bars is calibrated for stock markets. For crypto or forex (24/7 markets), change the lookback to 365 bars for daily charts.
Note di rilascio
Updated versionScript open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.