Advanced Harmonic & RSI Reversal Scanner (Dual-Wave)

Description:
Most harmonic indicators suffer from two fatal flaws: they clutter your chart with overlapping lines, and they blindly signal entries at Fibonacci levels without checking if the market is actually slowing down.
The Advanced Harmonic & RSI Reversal Scanner solves both problems. By combining precise Fibonacci geometry (to find the location of a reversal) with an RSI exhaustion filter (to time the exact moment of the reversal), this script prevents you from catching falling knives.
This is a clean, professional-grade scanner designed for traders who want high-probability setups without the chart spam.
🔥 Core Features
Dual ZigZag Engine: The script simultaneously scans a "Major" wave and a "Minor" wave. It prioritizes finding larger, macro setups first, but will automatically scale down to find minor setups if the broader trend is noisy.
Live Point D Tracking: Unlike standard scripts that wait for a pivot to be fully confirmed (which causes late entries), Point D dynamically tracks the live wick of the current candle. The Fibonacci ratios update in real-time as the candle moves into the Potential Reversal Zone (PRZ).
RSI Entry Confirmation: A pattern alone is not enough. The script will only fire a Bull ▲ or Bear ▼ entry signal if Point D forms and the RSI confirms momentum exhaustion (crossing over/under the oversold/overbought thresholds).
Dynamic Risk & Targets: Forget manual measuring. Upon an entry trigger, the script instantly calculates and plots your Take Profit and Stop Loss lines:
TP1: 38.2% retracement of the A-to-D leg.
TP2: 61.8% retracement of the A-to-D leg.
Risk (Stop Loss): Dynamically placed 20% beyond Point D's structural size, safely protecting you against deep extensions like Butterfly or Crab patterns.
Anti-Spam Charting: Built with a strict visual state-machine. When a live candle twitches, the script cleanly deletes and redraws its lines rather than overlapping them. Your chart remains crystal clear.
Smart History Stamping: Once a trade setup completes, the script permanently "stamps" the pattern and its target lines onto the chart so you can accurately backtest past performance.
📐 Supported Patterns
The scanner precisely calculates internal and external Fibonacci ratios to identify:
Gartley
Bat
Butterfly
Crab
AB=CD (Functions as a fallback priority if an XABCD structure is invalid)
💡 How to Trade with this Indicator
Wait for the Setup: Let the script map the X, A, B, and C yellow pivot nodes. Watch as it projects Point D.
Wait for the Trigger: Do not enter blindly. Wait for the colored "Bull ▲" or "Bear ▼" pill to appear. This means price has hit the PRZ and the RSI has hooked, signaling momentum is shifting.
Execute the Plan: Place your entry. Set your Stop Loss at the red Risk line.
Manage the Trade: Take partial profits or move your stop to breakeven when price hits the green TP1 line. Leave a runner for TP2.
Most harmonic indicators suffer from two fatal flaws: they clutter your chart with overlapping lines, and they blindly signal entries at Fibonacci levels without checking if the market is actually slowing down.
The Advanced Harmonic & RSI Reversal Scanner solves both problems. By combining precise Fibonacci geometry (to find the location of a reversal) with an RSI exhaustion filter (to time the exact moment of the reversal), this script prevents you from catching falling knives.
This is a clean, professional-grade scanner designed for traders who want high-probability setups without the chart spam.
🔥 Core Features
Dual ZigZag Engine: The script simultaneously scans a "Major" wave and a "Minor" wave. It prioritizes finding larger, macro setups first, but will automatically scale down to find minor setups if the broader trend is noisy.
Live Point D Tracking: Unlike standard scripts that wait for a pivot to be fully confirmed (which causes late entries), Point D dynamically tracks the live wick of the current candle. The Fibonacci ratios update in real-time as the candle moves into the Potential Reversal Zone (PRZ).
RSI Entry Confirmation: A pattern alone is not enough. The script will only fire a Bull ▲ or Bear ▼ entry signal if Point D forms and the RSI confirms momentum exhaustion (crossing over/under the oversold/overbought thresholds).
Dynamic Risk & Targets: Forget manual measuring. Upon an entry trigger, the script instantly calculates and plots your Take Profit and Stop Loss lines:
TP1: 38.2% retracement of the A-to-D leg.
TP2: 61.8% retracement of the A-to-D leg.
Risk (Stop Loss): Dynamically placed 20% beyond Point D's structural size, safely protecting you against deep extensions like Butterfly or Crab patterns.
Anti-Spam Charting: Built with a strict visual state-machine. When a live candle twitches, the script cleanly deletes and redraws its lines rather than overlapping them. Your chart remains crystal clear.
Smart History Stamping: Once a trade setup completes, the script permanently "stamps" the pattern and its target lines onto the chart so you can accurately backtest past performance.
📐 Supported Patterns
The scanner precisely calculates internal and external Fibonacci ratios to identify:
Gartley
Bat
Butterfly
Crab
AB=CD (Functions as a fallback priority if an XABCD structure is invalid)
💡 How to Trade with this Indicator
Wait for the Setup: Let the script map the X, A, B, and C yellow pivot nodes. Watch as it projects Point D.
Wait for the Trigger: Do not enter blindly. Wait for the colored "Bull ▲" or "Bear ▼" pill to appear. This means price has hit the PRZ and the RSI has hooked, signaling momentum is shifting.
Execute the Plan: Place your entry. Set your Stop Loss at the red Risk line.
Manage the Trade: Take partial profits or move your stop to breakeven when price hits the green TP1 line. Leave a runner for TP2.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.