OPEN-SOURCE SCRIPT

Relative Strength Index (RSI) w/ Multi Time Frame w/ Divergences

87
This indicator is an advanced evolution of the classic Relative Strength Index (RSI), designed to provide deeper market context by combining Momentum, Multi-Timeframe (MTF) analysis, and Divergences into a single, clean visual tool.

Unlike standard indicators, RSI MTF Pro v2 allows you to configure the Main RSI and the Background Trend Zone independently, giving you full control over your strategy (e.g., watching a 15m RSI while monitoring the 4H trend).

Key Features:

🚀 Dual MTF Engine: Completely independent settings for the Main RSI Line and the Background Zone. You can choose different Timeframes, Lengths, and Levels for each.

heatmap Style Background: The indicator background changes color (Red/Green) based on the MTF RSI trend, helping you filter out bad trades and stick to the dominant trend.

🎨 Smart Gradient Fills: To keep your chart clean, the gradient colors (Red/Green fills) only appear when the RSI breaches the Overbought or Oversold levels.

🎯 Divergence Detector: Automatically spots and marks Regular Bullish and Bearish divergences with pivot-based logic.

How to Use:

Trend Confirmation: Use the Background Color to determine the higher timeframe direction (e.g., Red Background = Uptrend).

Entry Signals: Look for RSI signals that align with the background color (e.g., RSI Oversold/Green Gradient + Green Background).

Reversals: Use the built-in Divergence circles to spot potential trend reversals.

Settings:

Main RSI: Customizable Timeframe, Length, OB/OS Levels.

MTF Background: Independent Timeframe, Length, and Zone thresholds (e.g., >60 Red, <40 Green).

Divergences: Toggle On/Off and adjust Pivot lookback periods.

Disclaimer: This tool is for informational purposes only and does not constitute financial advice.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน