OPEN-SOURCE SCRIPT
Relative Strength index 2x

Relative Strength Index 2×
The RSI*2 by AZly is an advanced dual-RSI indicator that allows traders to analyze momentum from two distinct perspectives — short-term and medium-term — on a single chart. It combines RSI precision with multi-timeframe flexibility, giving a clear view of both immediate and underlying momentum trends.
⚙️ How It Works
This indicator calculates and plots two fully independent RSI lines, each with customizable settings:
RSI 1 (Main RSI): Captures medium-term momentum, ideal for trend and context.
RSI 2 (Fast RSI): Reacts quickly to short-term moves, identifying overbought and oversold conditions.
Both RSIs include:
Custom timeframe, source, and smoothing method (SMA, EMA, WMA, VWMA, HMA, SMMA).
Gradient zones to visualize momentum strength and reversals.
Adjustable levels and colors for clear chart presentation.
📘 Andrew Cardwell Zones (RSI 1)
RSI 1 uses Andrew Cardwell’s “range rules” to distinguish bullish and bearish momentum phases:
Bullish Range: RSI holds between 40–80, finding support around 40–45.
Bearish Range: RSI stays between 20–60, with rallies capped near 55–60.
A breakout from one range into another often signals a trend phase transition — marking potential trend beginnings or endings.
⚡ Overbought/Oversold Zones (RSI 2)
RSI 2 is designed for fast reactions and reversal detection:
95–100: Extreme overbought zone — potential exhaustion and short setup.
5–0: Extreme oversold zone — potential exhaustion and long setup.
Crossing these levels highlights short-term momentum exhaustion, often preceding pullbacks or strong price reversals.
💡 Why It’s Better
Compared to traditional RSI indicators, this version provides superior control and insight:
Dual independent RSIs with separate timeframes and smoothing.
Cardwell-style range recognition for better context of trend strength.
Extreme bands for fast RSI 2 to time entries with precision.
Dynamic gradient zones for intuitive visual interpretation.
Multi-timeframe flexibility that adapts to any trading style.
🎯 Trading Concepts
Trend Confirmation:
RSI 1 above 50 (bullish range) confirms uptrend bias; below 50 (bearish range) confirms downtrend.
Reversal Setup:
RSI 2 hitting extreme zones (above 95 or below 5) while RSI 1 stays steady often signals exhaustion and reversal setups.
Divergence Confirmation:
When RSI 2 diverges from price and RSI 1 supports the direction, it strengthens reversal probability.
Range Transition:
A shift in RSI 1’s range (from bearish to bullish or vice versa) confirms a major change in market structure.
🕒 Trade Timing (Entry Ideas)
Timing is one of the indicator’s strongest features.
Wait for RSI 2 to reach an extreme zone (above 95 or below 5).
Then confirm the direction with RSI 1 — trades are most effective when RSI 1’s range aligns with the anticipated move.
Buy Setup:
RSI 1 in bullish range + RSI 2 rebounds upward from the 5 zone.
Sell Setup:
RSI 1 in bearish range + RSI 2 turns down from the 95 zone.
Best Timing:
Enter when RSI 2 crosses back inside the 10–90 range in the same direction as RSI 1’s trend.
This captures momentum just as it resumes — avoiding early or late entries.
🔷 M & W Patterns (RSI 2)
RSI 2 also reveals short-term exhaustion structures:
“M” Formation: Two RSI peaks near 95–100 — bearish reversal setup.
“W” Formation: Two RSI troughs near 0–5 — bullish reversal setup.
These shapes often appear before price reversals, offering early momentum clues.
⚠️ Important Trading Guidance
It is strongly recommended not to trade against the prevailing trend or attempt to pick exact tops or bottoms. The indicator works best when used in alignment with trend direction. Counter-trend entries carry higher risk and lower probability.
📊 Recommended Use
Ideal for momentum traders, scalpers, and multi-timeframe analysts seeking precise timing and context. Works on all markets — forex, crypto, stocks, indexes, and commodities.
The RSI*2 by AZly is an advanced dual-RSI indicator that allows traders to analyze momentum from two distinct perspectives — short-term and medium-term — on a single chart. It combines RSI precision with multi-timeframe flexibility, giving a clear view of both immediate and underlying momentum trends.
⚙️ How It Works
This indicator calculates and plots two fully independent RSI lines, each with customizable settings:
RSI 1 (Main RSI): Captures medium-term momentum, ideal for trend and context.
RSI 2 (Fast RSI): Reacts quickly to short-term moves, identifying overbought and oversold conditions.
Both RSIs include:
Custom timeframe, source, and smoothing method (SMA, EMA, WMA, VWMA, HMA, SMMA).
Gradient zones to visualize momentum strength and reversals.
Adjustable levels and colors for clear chart presentation.
📘 Andrew Cardwell Zones (RSI 1)
RSI 1 uses Andrew Cardwell’s “range rules” to distinguish bullish and bearish momentum phases:
Bullish Range: RSI holds between 40–80, finding support around 40–45.
Bearish Range: RSI stays between 20–60, with rallies capped near 55–60.
A breakout from one range into another often signals a trend phase transition — marking potential trend beginnings or endings.
⚡ Overbought/Oversold Zones (RSI 2)
RSI 2 is designed for fast reactions and reversal detection:
95–100: Extreme overbought zone — potential exhaustion and short setup.
5–0: Extreme oversold zone — potential exhaustion and long setup.
Crossing these levels highlights short-term momentum exhaustion, often preceding pullbacks or strong price reversals.
💡 Why It’s Better
Compared to traditional RSI indicators, this version provides superior control and insight:
Dual independent RSIs with separate timeframes and smoothing.
Cardwell-style range recognition for better context of trend strength.
Extreme bands for fast RSI 2 to time entries with precision.
Dynamic gradient zones for intuitive visual interpretation.
Multi-timeframe flexibility that adapts to any trading style.
🎯 Trading Concepts
Trend Confirmation:
RSI 1 above 50 (bullish range) confirms uptrend bias; below 50 (bearish range) confirms downtrend.
Reversal Setup:
RSI 2 hitting extreme zones (above 95 or below 5) while RSI 1 stays steady often signals exhaustion and reversal setups.
Divergence Confirmation:
When RSI 2 diverges from price and RSI 1 supports the direction, it strengthens reversal probability.
Range Transition:
A shift in RSI 1’s range (from bearish to bullish or vice versa) confirms a major change in market structure.
🕒 Trade Timing (Entry Ideas)
Timing is one of the indicator’s strongest features.
Wait for RSI 2 to reach an extreme zone (above 95 or below 5).
Then confirm the direction with RSI 1 — trades are most effective when RSI 1’s range aligns with the anticipated move.
Buy Setup:
RSI 1 in bullish range + RSI 2 rebounds upward from the 5 zone.
Sell Setup:
RSI 1 in bearish range + RSI 2 turns down from the 95 zone.
Best Timing:
Enter when RSI 2 crosses back inside the 10–90 range in the same direction as RSI 1’s trend.
This captures momentum just as it resumes — avoiding early or late entries.
🔷 M & W Patterns (RSI 2)
RSI 2 also reveals short-term exhaustion structures:
“M” Formation: Two RSI peaks near 95–100 — bearish reversal setup.
“W” Formation: Two RSI troughs near 0–5 — bullish reversal setup.
These shapes often appear before price reversals, offering early momentum clues.
⚠️ Important Trading Guidance
It is strongly recommended not to trade against the prevailing trend or attempt to pick exact tops or bottoms. The indicator works best when used in alignment with trend direction. Counter-trend entries carry higher risk and lower probability.
📊 Recommended Use
Ideal for momentum traders, scalpers, and multi-timeframe analysts seeking precise timing and context. Works on all markets — forex, crypto, stocks, indexes, and commodities.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.