OPEN-SOURCE SCRIPT
YCGH Drawdown Percentiles

What This Indicator Does?
The Drawdown Percentiles indicator tracks how far below the all-time high (ATH) a stock or asset is currently trading, then displays statistical percentiles of historical drawdowns in a customizable table.
Percentile Analysis: It collects up to 5,000 historical bars of drawdown data, sorts them, and calculates user-selected percentiles (default: 10th, 30th, 50th) to show where current drawdowns rank historically.
Visual Display: A table shows each percentile threshold with color-coded drawdown values, helping you quickly assess whether the current drawdown is typical or extreme compared to historical patterns.
Practical Use Cases
Risk Assessment: Identify if current drawdowns fall within normal ranges or represent extreme conditions requiring position adjustments.
Entry/Exit Timing: Use percentile rankings to time entries during historically shallow drawdowns (better conditions) and reduce exposure during deep drawdowns.
Strategy Comparison: Compare drawdown patterns across different assets or trading strategies to evaluate risk-adjusted performance.
The Drawdown Percentiles indicator tracks how far below the all-time high (ATH) a stock or asset is currently trading, then displays statistical percentiles of historical drawdowns in a customizable table.
Percentile Analysis: It collects up to 5,000 historical bars of drawdown data, sorts them, and calculates user-selected percentiles (default: 10th, 30th, 50th) to show where current drawdowns rank historically.
Visual Display: A table shows each percentile threshold with color-coded drawdown values, helping you quickly assess whether the current drawdown is typical or extreme compared to historical patterns.
Practical Use Cases
Risk Assessment: Identify if current drawdowns fall within normal ranges or represent extreme conditions requiring position adjustments.
Entry/Exit Timing: Use percentile rankings to time entries during historically shallow drawdowns (better conditions) and reduce exposure during deep drawdowns.
Strategy Comparison: Compare drawdown patterns across different assets or trading strategies to evaluate risk-adjusted performance.
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.