OPEN-SOURCE SCRIPT
Quantum RCI Fusion

represents a significant evolution in oscillator-based scalping. Unlike standard indicators that rely on raw price data, this script utilizes a "Quantum Engine": a combination of Rank Correlation Index (RCI) mathematics and Hull Moving Average (HMA) pre-smoothing to eliminate market noise before it even affects the signal.
This tool is designed for Scalpers and Day Traders who need precision entries and, more importantly, an intelligent exit strategy that doesn't close trades prematurely during minor pullbacks.
🚀 Key Features:
⚡ Quantum Engine (Array + Smooth): Built on an optimized array structure with HMA pre-filtering. It detects the true market rank correlation while ignoring choppy price action.
🛡️ Trend Shield Logic: The unique "Shield" feature keeps you in the trade even if the fast signal crosses down, provided the Baseline Trend (RCI 30) remains strong. Captures the full move, not just the breakout.
📊 Live Performance Dashboard: A real-time table tracks your simulated Wins, Losses, and Win Rate % for the current session, giving you instant feedback on market conditions.
🧠 Intelligent Filtering: Combines ADX (trend strength) and Impulse (momentum velocity) to filter out weak setups.
🔔 Rich Alerts: Ready for automation with detailed messages containing Entry Price, TP, and SL levels.
How it Works: It analyzes three distinct time-horizons of price rank (Fast, Confirm, Slow). A signal is generated only when:
Momentum crosses in an extreme zone (Overbought/Oversold).
ADX confirms sufficient volatility.
The price "Impulse" is strong enough to validate the move.
USER MANUAL: How to Trade with Quantum RCI
1. The Setup
Timeframe: Optimized for 1m, 5m, and 15m (Scalping). It works on H1/H4 for Swing trading but requires wider SL settings.
Assets: Highly effective on Crypto (BTC, ETH, SOL) and Volatile Forex Pairs (GBPUSD, XAUUSD).
Source Data: By default, it uses close. Try changing the "Source" in settings to Heikin Ashi closing price for smoother trends.
2. The Strategy (Entry Rules)
The indicator paints Triangles on the chart (Green for Buy, Pink for Sell).
LONG Signal: Occurs when the Fast RCI crosses UP from the Oversold zone (< -80), confirmed by ADX and Momentum.
SHORT Signal: Occurs when the Fast RCI crosses DOWN from the Overbought zone (> 80), confirmed by filters.
3. The Exit Logic (The "Shield")
This is the most important part. The indicator manages exits dynamically:
TP/SL Hits: Based on the ATR multiplier in settings (Standard: 2.0 TP / 1.5 SL).
Tech Exit (X Icon): A standard exit when momentum fades.
Shield Break (Yellow Circle): This is the Trend Follower. If the "Trend Shield" (RCI 30) is active (thick green/red line), the indicator ignores minor crosses. It will only signal an exit when the main trend actually breaks. This allows you to ride waves longer.
4. The Dashboard & Statistics
Status: Shows if a trade is currently simulating LONG, SHORT, or SCANNING.
Win Rate: Shows the % of successful signals since the indicator was loaded.
Reset: Use the "Reset Statistics" toggle in settings to clear data (useful when switching sessions, e.g., from London to New York).
💡 Pro Tip:
If the ADX Filter says "WAIT" on the dashboard, the market is ranging/flat. Avoid taking trades manually, even if you see a crossover, or wait for the ADX to turn "READY".
This tool is designed for Scalpers and Day Traders who need precision entries and, more importantly, an intelligent exit strategy that doesn't close trades prematurely during minor pullbacks.
🚀 Key Features:
⚡ Quantum Engine (Array + Smooth): Built on an optimized array structure with HMA pre-filtering. It detects the true market rank correlation while ignoring choppy price action.
🛡️ Trend Shield Logic: The unique "Shield" feature keeps you in the trade even if the fast signal crosses down, provided the Baseline Trend (RCI 30) remains strong. Captures the full move, not just the breakout.
📊 Live Performance Dashboard: A real-time table tracks your simulated Wins, Losses, and Win Rate % for the current session, giving you instant feedback on market conditions.
🧠 Intelligent Filtering: Combines ADX (trend strength) and Impulse (momentum velocity) to filter out weak setups.
🔔 Rich Alerts: Ready for automation with detailed messages containing Entry Price, TP, and SL levels.
How it Works: It analyzes three distinct time-horizons of price rank (Fast, Confirm, Slow). A signal is generated only when:
Momentum crosses in an extreme zone (Overbought/Oversold).
ADX confirms sufficient volatility.
The price "Impulse" is strong enough to validate the move.
USER MANUAL: How to Trade with Quantum RCI
1. The Setup
Timeframe: Optimized for 1m, 5m, and 15m (Scalping). It works on H1/H4 for Swing trading but requires wider SL settings.
Assets: Highly effective on Crypto (BTC, ETH, SOL) and Volatile Forex Pairs (GBPUSD, XAUUSD).
Source Data: By default, it uses close. Try changing the "Source" in settings to Heikin Ashi closing price for smoother trends.
2. The Strategy (Entry Rules)
The indicator paints Triangles on the chart (Green for Buy, Pink for Sell).
LONG Signal: Occurs when the Fast RCI crosses UP from the Oversold zone (< -80), confirmed by ADX and Momentum.
SHORT Signal: Occurs when the Fast RCI crosses DOWN from the Overbought zone (> 80), confirmed by filters.
3. The Exit Logic (The "Shield")
This is the most important part. The indicator manages exits dynamically:
TP/SL Hits: Based on the ATR multiplier in settings (Standard: 2.0 TP / 1.5 SL).
Tech Exit (X Icon): A standard exit when momentum fades.
Shield Break (Yellow Circle): This is the Trend Follower. If the "Trend Shield" (RCI 30) is active (thick green/red line), the indicator ignores minor crosses. It will only signal an exit when the main trend actually breaks. This allows you to ride waves longer.
4. The Dashboard & Statistics
Status: Shows if a trade is currently simulating LONG, SHORT, or SCANNING.
Win Rate: Shows the % of successful signals since the indicator was loaded.
Reset: Use the "Reset Statistics" toggle in settings to clear data (useful when switching sessions, e.g., from London to New York).
💡 Pro Tip:
If the ADX Filter says "WAIT" on the dashboard, the market is ranging/flat. Avoid taking trades manually, even if you see a crossover, or wait for the ADX to turn "READY".
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.