OPEN-SOURCE SCRIPT

RSI Divergence Indicator with Custom Levels

248
Here's a publish-ready description you can paste into TradingView's publishing form:

---

**RSI Divergence Indicator with Custom Levels**

This indicator combines a standard RSI oscillator with automatic divergence detection, plus fully customizable horizontal reference lines.

**Core Features:**
- **RSI Oscillator** — configurable period and source, plotted with standard 30/50/70 reference lines and an overbought/oversold shaded zone.
- **Automatic Divergence Detection** — identifies and labels four types of divergence directly on the RSI:
- Regular Bullish (price makes a lower low, RSI makes a higher low)
- Hidden Bullish (price makes a higher low, RSI makes a lower low)
- Regular Bearish (price makes a higher high, RSI makes a lower high)
- Hidden Bearish (price makes a lower high, RSI makes a higher high)
- **Built-in Alerts** — alert conditions are included for all four divergence types, so you can get notified the moment a new divergence forms.

**New: Custom Horizontal Lines**
Beyond the default 30/50/70 levels, you can now add up to 10 additional horizontal reference lines anywhere on the RSI scale — useful for marking your own thresholds, historical pivot levels, or extreme readings. Each line is fully independent and configurable:
- Enable/disable individually
- Set the exact level
- Choose the color and opacity
- Choose the line style (solid, dashed, dotted)
- Set the line width

This makes it easy to tailor the indicator to your own trading strategy without cluttering the chart with lines you don't need.

**How to Use:**
Add the indicator, then open its settings to adjust RSI period/source, toggle divergence types, and turn on any custom lines you want under "Custom Line 1" through "Custom Line 10."

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。