RSI Pro Divergences: Crypto Edition

601
# RSI Pro Divergences — Crypto Edition

A professional-grade RSI divergence detector built from the ground up in
Pine Script v6, specifically optimized for cryptocurrency markets
(BTC, ETH, SOL, LTC and altcoins) across all timeframes.

This indicator automatically identifies and visualizes the 4 key types of
RSI divergences, displays them with clear labels and connecting lines,
and provides a real-time status dashboard — everything an active trader
needs to spot high-probability reversal and continuation setups.

---

## 🎯 What It Detects

**▲ Regular Bullish Divergence** — Price prints a Lower Low while RSI
prints a Higher Low. Classic reversal signal at the end of a downtrend;
strong setup at support zones, springs, or accumulation phases.

**▼ Regular Bearish Divergence** — Price prints a Higher High while RSI
prints a Lower High. Classic reversal signal at the end of an uptrend;
strong setup at resistance, UTADs, or distribution phases.

**△ Hidden Bullish Divergence** — Price prints a Higher Low while RSI
prints a Lower Low. Continuation signal during pullbacks within an
established uptrend. Great for trend-following entries.

**▽ Hidden Bearish Divergence** — Price prints a Lower High while RSI
prints a Higher High. Continuation signal during retraces within an
established downtrend.

---

## 🚀 Key Features

- **Pine Script v6** — Built on TradingView's latest engine for
maximum speed, type safety, and future-proofing

- **All 4 divergence types** — Regular and Hidden, both Bullish and
Bearish, each independently toggleable

- **Connecting lines between pivots** — Visualizes the divergence
directly on the RSI panel (solid for Regular, dashed for Hidden)

- **Differentiated labels** — BULL / H.BULL / BEAR / H.BEAR so you
can instantly distinguish reversal from continuation signals

- **Triangle markers** — Aligned to the actual pivot bar (not the
confirmation bar) using offset compensation

- **Dual overbought/oversold zones** — Standard (70/30) plus Extreme
(80/20) with shaded background for instant visual context

- **Real-time dashboard** — Shows current RSI value, market zone,
last divergence detected, and how many bars ago it appeared

- **6 alert conditions** — One per divergence type plus OB/OS crosses,
fully customizable for webhooks and notifications

- **Fully configurable** — Period, source, pivot lookbacks, range
filters, colors, and dashboard position all adjustable via inputs

---

## ⚙️ Recommended Settings by Timeframe

| Timeframe | RSI Period | Pivot L/R | Range Min/Max | Use Case |
|-----------|------------|-----------|---------------|-------------------|
| 5m | 10 | 3 / 3 | 5 / 40 | Scalping entries |
| 15m | 12 | 4 / 4 | 5 / 50 | Intraday |
| 1H | 14 | 5 / 5 | 5 / 60 | Short-term swing |
| 4H | 14 | 5 / 5 | 5 / 60 | Macro validation |
| 1D | 14 | 7 / 7 | 5 / 80 | Weekly structure |

---

## 📊 How to Use

1. **Apply to chart** — Adds a new sub-panel with the RSI and signals
2. **Set your timeframe** — Use the table above as a starting point
3. **Watch the dashboard** — Top-right corner shows live RSI status
4. **Confirm with context** — Divergences work best when combined with:
- Support/resistance zones
- Volume confirmation
- Higher timeframe trend alignment
- Order flow or market structure analysis

5. **Set alerts** — Right-click any signal → Add Alert → choose
the divergence type you want to be notified about

---

## ⚠️ Important Notes

**This is an indicator, not a complete trading system.** Divergences are
high-probability signals but should never be traded in isolation. Always
combine with proper risk management, position sizing, and confluence
from other tools (volume, structure, higher timeframes, macro context).

**On repainting:** Pivots are confirmed N bars after they form (where N
equals the right lookback). This means signals appear with a small delay
but do NOT repaint once confirmed. Lower lookback values reduce delay
but increase noise.

**Best results in crypto:** This indicator was tuned specifically for
24/7 markets with high volatility. It also works on stocks, forex,
and futures, but parameters may need adjustment for those markets.

---

## 🔧 Technical Details

- Language: Pine Script v6
- Type: Indicator (study), non-overlay
- Performance: Up to 500 lines and 500 labels rendered
- Repainting: Confirmed pivots only (delayed but stable)
- Resource usage: Lightweight, suitable for multi-chart layouts

---

## 📜 Credits

Built on the divergence detection logic originally popularized in the
TradingView community, completely rewritten and modernized in Pine v6
with crypto-specific optimizations, visual enhancements, dashboard
integration, and alert system.

Open source — feel free to fork, modify, and improve. If you find this
useful, a like and comment would be appreciated!

---

**Happy trading. Stay patient. Trust the system.** 🎯

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.