OPEN-SOURCE SCRIPT
Engulfing Pattern Scanner with RSI Filter

Engulfing Pattern Scanner with RSI Filter
This indicator identifies high-probability engulfing patterns using multiple confirmation filters including candle stability, RSI divergence, and price momentum over a specified period.
═══ INDICATOR LOGIC ═══
BUY Signal Generated When:
• Bullish engulfing pattern forms
• Candle stability exceeds threshold (body/wick ratio)
• RSI is below oversold threshold
• Price has decreased over the delta period
• Bar is confirmed (no repainting)
SELL Signal Generated When:
• Bearish engulfing pattern forms
• Candle stability exceeds threshold
• RSI is above overbought threshold
• Price has increased over the delta period
• Bar is confirmed (no repainting)
═══ KEY FEATURES ═══
• Candle Stability Index (0-1): Filters out unstable/noisy candles
• RSI Index (0-100): Confirms momentum conditions
• Candle Delta Length: Defines lookback period for price movement
• Disable Repeating Signals: Removes consecutive same-direction signals
• Multiple visual styles: Text bubbles, triangles, or arrows
• Customizable colors and label sizes
• Built-in alert conditions
═══ INPUT PARAMETERS ═══
Candle Stability Index (0.5 default): Higher values require more decisive candles
RSI Index (50 default): Threshold for overbought/oversold conditions
Candle Delta Length (5 default): Bars to measure price change
Label customization: Size, style, and colors
═══ HOW TO USE ═══
1. Add indicator to chart
2. Adjust technical parameters based on market volatility
3. Set visual preferences for signal display
4. Create alerts using the built-in conditions
5. Higher Candle Stability = fewer but higher quality signals
6. Lower RSI Index = more conservative entry points
═══ BEST PRACTICES ═══
• Use on higher timeframes (4H+) for swing trading
• Combine with support/resistance for confluence
• Test parameters on historical data before live trading
• Consider market conditions when adjusting filters
═══ VERSION INFO ═══
Pine Script: v5
Repainting: No (uses barstate.isconfirmed)
Max Labels: 500
```
This indicator identifies high-probability engulfing patterns using multiple confirmation filters including candle stability, RSI divergence, and price momentum over a specified period.
═══ INDICATOR LOGIC ═══
BUY Signal Generated When:
• Bullish engulfing pattern forms
• Candle stability exceeds threshold (body/wick ratio)
• RSI is below oversold threshold
• Price has decreased over the delta period
• Bar is confirmed (no repainting)
SELL Signal Generated When:
• Bearish engulfing pattern forms
• Candle stability exceeds threshold
• RSI is above overbought threshold
• Price has increased over the delta period
• Bar is confirmed (no repainting)
═══ KEY FEATURES ═══
• Candle Stability Index (0-1): Filters out unstable/noisy candles
• RSI Index (0-100): Confirms momentum conditions
• Candle Delta Length: Defines lookback period for price movement
• Disable Repeating Signals: Removes consecutive same-direction signals
• Multiple visual styles: Text bubbles, triangles, or arrows
• Customizable colors and label sizes
• Built-in alert conditions
═══ INPUT PARAMETERS ═══
Candle Stability Index (0.5 default): Higher values require more decisive candles
RSI Index (50 default): Threshold for overbought/oversold conditions
Candle Delta Length (5 default): Bars to measure price change
Label customization: Size, style, and colors
═══ HOW TO USE ═══
1. Add indicator to chart
2. Adjust technical parameters based on market volatility
3. Set visual preferences for signal display
4. Create alerts using the built-in conditions
5. Higher Candle Stability = fewer but higher quality signals
6. Lower RSI Index = more conservative entry points
═══ BEST PRACTICES ═══
• Use on higher timeframes (4H+) for swing trading
• Combine with support/resistance for confluence
• Test parameters on historical data before live trading
• Consider market conditions when adjusting filters
═══ VERSION INFO ═══
Pine Script: v5
Repainting: No (uses barstate.isconfirmed)
Max Labels: 500
```
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.