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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。