OPEN-SOURCE SCRIPT
52-Week High & 20% Below

This indicator plots the rolling 52-week high along with a clear horizontal level 20% below that high.
The core idea behind this script:
For long-term investors who truly believe in a company’s fundamentals, a 20% drop from the 52-week high often represents a high-probability area to add to positions or start building a position.
This tool helps you visually identify those moments of temporary weakness in quality companies without getting caught up in short-term noise. It’s designed for patient, conviction-based investing — not for day trading or chasing momentum.
How to use it:
Watch for price approaching or touching the red 20% Below line on stocks you already like fundamentally.
Use it as a reference to scale into positions during pullbacks rather than trying to catch the absolute bottom.
Best used on daily charts for stocks, ETFs, or indices you intend to hold for years.
This is a simple visual aid to support a time-tested long-term investing approach: Buy quality companies when they go on sale.
The core idea behind this script:
For long-term investors who truly believe in a company’s fundamentals, a 20% drop from the 52-week high often represents a high-probability area to add to positions or start building a position.
This tool helps you visually identify those moments of temporary weakness in quality companies without getting caught up in short-term noise. It’s designed for patient, conviction-based investing — not for day trading or chasing momentum.
How to use it:
Watch for price approaching or touching the red 20% Below line on stocks you already like fundamentally.
Use it as a reference to scale into positions during pullbacks rather than trying to catch the absolute bottom.
Best used on daily charts for stocks, ETFs, or indices you intend to hold for years.
This is a simple visual aid to support a time-tested long-term investing approach: Buy quality companies when they go on sale.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.