OPEN-SOURCE SCRIPT
A-B-C-D Levels with Customizable Pct & Price Line

A-B-C-D Levels with Customizable Pct & Price Line
This indicator plots four dynamic “fall” levels (A, B, C and D) based on percentage dips from your chosen pivot, plus an optional live price line. Use it to see at a glance exactly how far price has retraced from a recent high (or other reference).
Features:
• Customizable Dip Percentages – Define your own fall % for Levels A, B, C and D
• Flexible Pivot Source – Reference the highest high, lowest low, close or any other series
• Price Line Overlay – Optionally display a continuous current‐price line for real-time context
• Style & Visibility Controls – Independently tweak colors, widths and line styles
• Alert Conditions – Trigger alerts when price crosses above or below any fall level
• Universal Compatibility – Works on any timeframe or instrument
How to Use:
1. Open Inputs and set your desired dip percentages (e.g. A = 10%, B = 20%, etc.).
2. Choose your pivot source and lookback period.
3. Toggle “Show Price Line” to overlay the live price.
4. (Optional) In the “Create Alert” dialog, set alerts on any level crossing.
Interpretation Guide:
- **Level A** = first dip from pivot (e.g. 10% fall)
- **Level B** = deeper retracement (e.g. 20% fall)
- **Level C/D** = even deeper fall benchmarks (e.g. 30%, 40%)
- The **Price Line** shows current price relative to your fall levels
Happy trading!
#TradingView #PineScript #DipLevels #PriceLine #TechnicalAnalysis
This indicator plots four dynamic “fall” levels (A, B, C and D) based on percentage dips from your chosen pivot, plus an optional live price line. Use it to see at a glance exactly how far price has retraced from a recent high (or other reference).
Features:
• Customizable Dip Percentages – Define your own fall % for Levels A, B, C and D
• Flexible Pivot Source – Reference the highest high, lowest low, close or any other series
• Price Line Overlay – Optionally display a continuous current‐price line for real-time context
• Style & Visibility Controls – Independently tweak colors, widths and line styles
• Alert Conditions – Trigger alerts when price crosses above or below any fall level
• Universal Compatibility – Works on any timeframe or instrument
How to Use:
1. Open Inputs and set your desired dip percentages (e.g. A = 10%, B = 20%, etc.).
2. Choose your pivot source and lookback period.
3. Toggle “Show Price Line” to overlay the live price.
4. (Optional) In the “Create Alert” dialog, set alerts on any level crossing.
Interpretation Guide:
- **Level A** = first dip from pivot (e.g. 10% fall)
- **Level B** = deeper retracement (e.g. 20% fall)
- **Level C/D** = even deeper fall benchmarks (e.g. 30%, 40%)
- The **Price Line** shows current price relative to your fall levels
Happy trading!
#TradingView #PineScript #DipLevels #PriceLine #TechnicalAnalysis
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。