OPEN-SOURCE SCRIPT

RSI Divergence v6

400
RSI 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

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.