OPEN-SOURCE SCRIPT

Multi-TimeFrame RSI Divergence

119
1. Table Usage

The table shows all divergences for each timeframe (5m → 4h).

Columns:

Bull Reg → Regular bullish divergence

Bear Reg → Regular bearish divergence

Bull Hid → Hidden bullish divergence

Bear Hid → Hidden bearish divergence

Movable via inputs: adjust Table X Position (bars from left) and Table Y Position (price level).

Customizable timeframe text color: set via TF Color input.

2. Reading Divergences

Lines on the chart:

Solid green/red = regular divergence

Dotted = hidden divergence

Dashed = RSI side of divergence

Labels appear at the pivot points to indicate type and timeframe.

3. Timeframes

Works on 5m, 15m, 30m, 1h, and 4h.

Each timeframe is independent, so divergences are correctly detected even if higher or lower TFs don’t show anything yet.

4. Adjusting Sensitivity

Pivot Left Bars / Pivot Right Bars → controls how sensitive pivots are.

Lower values = more pivots detected (shorter-term swings).

Higher values = smoother pivots, fewer false signals.

Pivot search lookback → how far back the script searches for pivots.

RSI Length → default is 14, but can be adjusted for faster/slower RSI responsiveness.

5. Line and Label Cleanup

Expire lines/labels after N bars → prevents the chart from cluttering.

Older lines/labels are automatically deleted after this many bars.

6. Practical Tips

Use multiple charts or TradingView layouts: you can run the script on one chart and visually track divergences across TFs without switching.

Combine with support/resistance levels or trend analysis for higher-probability trades.

Watch for hidden divergences on pullbacks → often signal trend continuation.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.