OPEN-SOURCE SCRIPT
ATH Drawdown Levels

Overview
This script provides a clean, automated way to track key psychological and technical retracement levels from an asset's All-Time High (ATH). Instead of manually drawing Fibonacci levels or horizontal rays every time a new high is reached, this indicator dynamically updates and projects critical drawdown thresholds across your chart.
Key Features
Dynamic ATH Tracking: Automatically identifies the highest price point in the symbol's history and adjusts levels instantly if a new ATH is set.
Key Retracement Levels: Specifically plots the -5%, -10%, and -15% drawdown marks—common "buy the dip" zones and correction milestones used by long-term investors.
Clean Visuals: Uses dashed lines and price labels positioned to the right of the current bar to ensure your main chart area remains uncluttered.
Ghosting Prevention: Optimized logic ensures that labels and lines move with the price action, preventing the "label stacking" common in many drawdown scripts.
How to Use
Simply add the script to your chart. The levels will automatically appear based on the symbol's historical peak. This is particularly useful for:
Risk Management: Visualizing how far the current price is from its peak.
Entry Strategies: Identifying entry points during healthy market pullbacks.
Portfolio Rebalancing: Monitoring correction depths for long-term holds.
Customization
You can easily adjust the colors for each drawdown level in the Settings > Inputs menu to match your specific chart theme.
This script provides a clean, automated way to track key psychological and technical retracement levels from an asset's All-Time High (ATH). Instead of manually drawing Fibonacci levels or horizontal rays every time a new high is reached, this indicator dynamically updates and projects critical drawdown thresholds across your chart.
Key Features
Dynamic ATH Tracking: Automatically identifies the highest price point in the symbol's history and adjusts levels instantly if a new ATH is set.
Key Retracement Levels: Specifically plots the -5%, -10%, and -15% drawdown marks—common "buy the dip" zones and correction milestones used by long-term investors.
Clean Visuals: Uses dashed lines and price labels positioned to the right of the current bar to ensure your main chart area remains uncluttered.
Ghosting Prevention: Optimized logic ensures that labels and lines move with the price action, preventing the "label stacking" common in many drawdown scripts.
How to Use
Simply add the script to your chart. The levels will automatically appear based on the symbol's historical peak. This is particularly useful for:
Risk Management: Visualizing how far the current price is from its peak.
Entry Strategies: Identifying entry points during healthy market pullbacks.
Portfolio Rebalancing: Monitoring correction depths for long-term holds.
Customization
You can easily adjust the colors for each drawdown level in the Settings > Inputs menu to match your specific chart theme.
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.