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.
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.