This script allows you to scan multiple assets and timeframes for bullish and bearish divergences based on the RSI (Relative Strength Index) indicator.
Features
Supports up to 40 different assets and timeframes for simultaneous scanning.
Customizable settings for RSI period and source.
Adjustable lookback periods for identifying pivot highs and pivot lows.
Flexible range limits for filtering divergences based on the number of bars since the last pivot point.
Alerts for bullish and bearish divergences on confirmed bars.