PROTECTED SOURCE SCRIPT

RSI Divergence wpr Engine by MadScientist

25
RSI Divergence Engine by MadScientist - Advanced Momentum Analysis

A powerful divergence detection system that automatically identifies and visualizes bullish and bearish divergences between price action and oscillator momentum.

🎯 Key Features:

4 Divergence Types: Regular & Hidden Bullish/Bearish divergences
Dual Oscillator Support: Toggle between RSI and Williams %R
Automatic Detection: Smart pivot-based algorithm finds divergences in real-time
Visual Clarity: Divergence lines drawn directly on oscillator with color-coded labels
Customizable Settings: Adjust pivot lookback, divergence strength, and visual preferences
Full Alert System: 7 alert conditions for all divergence combinations
📊 Divergence Types:

Regular Bullish 🐂: Price makes lower low, oscillator makes higher low (reversal signal)
Hidden Bullish 🐂: Price makes higher low, oscillator makes lower low (trend continuation)
Regular Bearish 🐻: Price makes higher high, oscillator makes lower high (reversal signal)
Hidden Bearish 🐻: Price makes lower high, oscillator makes higher high (trend continuation)
⚙️ Configurable Parameters:

Oscillator type (RSI or Williams %R)
RSI/WPR length and overbought/oversold levels
Pivot lookback period (1-50 bars)
Maximum lookback range (10-200 bars)
Minimum divergence strength filter
Individual show/hide toggles for each divergence type
Customizable colors and zones
Perfect for traders seeking:

Early reversal signals
Trend continuation confirmations
Momentum analysis
Multi-timeframe divergence screening
Usage Tips: Works best on higher timeframes (4H+) for swing trading, or lower timeframes (5M-15M) for day trading. Combine with support/resistance levels for highest probability setups.

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.