Communauté · Indicators
RSI Divergence
Bullish/bearish divergence with confirmation on close.
@maeve41267MITPublié le 2026-04-22
rsi-divergence.spec
// RSI divergence with two-bar confirmation.let r = rsi(close, 14)let bull = pivot_low(r, 5) and pivot_low(close, 5)let bear = pivot_high(r, 5) and pivot_high(close, 5)mark(bull, color: bull, label: "div+")mark(bear, color: bear, label: "div-")output bull or bear