RSI Divergence v6RSI Divergence Band (Close inside High/Low)
This indicator is an advanced RSI visualization designed to show real-time momentum dynamics inside a controlled RSI range.
Unlike the standard RSI, this script builds a dynamic RSI band based on RSI calculated from High and Low prices, while ensuring that RSI based on Close always stays inside the band.
🔹 How it works
RSI is calculated separately for:
Close price (main signal line)
High price
Low price
The High/Low RSI values form a dynamic envelope
The band is automatically adjusted so the RSI Close line is always inside it
All values update on the live bar as price changes
🔹 Why this is useful
Visualizes intrabar pressure and volatility
Helps identify compression and expansion of momentum
Improves divergence analysis
Especially useful for scalping and short-term trading
🔹 Features
RSI length customization
Optional High/Low RSI band
Adjustable RSI levels (20 / 50 / 80 by default)
Clean and minimal visual design
No repainting on closed bars
🔹 Best use cases
Divergence trading
Momentum analysis
Scalping strategies
Market structure confirmation
Penunjuk Pine Script®






















