PROTECTED SOURCE SCRIPT
Engulfing Detector by RWBTradeLab

Engulfing Detector by RWBTradeLab
A clean, non-repainting engulfing pattern detector designed for traders who rely on price action and candle confirmation.
What this indicator does
This script automatically identifies and highlights two types of engulfing patterns on closed candles only:
1. Regular Engulfing (R EG)
* Regular Buy EG: A bullish candle fully engulfs the previous bearish candle’s high.
* Regular Sell EG: A bearish candle fully engulfs the previous bullish candle’s low.
2. E-Regular Engulfing (ER EG)
* Detects “extended” engulfing setups where a strong base candle is followed by 2 or more opposite-color candles and then a confirming engulf close.
* Useful for spotting delayed but powerful reversals.
Visuals on chart
* A rectangle (box) is drawn from the base candle to the confirmation candle.
* Optional text labels appear above/below the box (offset adjustable).
* Separate color controls for:
- Regular Buy / Regular Sell
- E-Regular Buy / E-Regular Sell
Alerts
Built-in alerts trigger only at candle close:
* R Buy EG
* R Sell EG
* ER Buy EG
* ER Sell EG
Each alert includes price and time in the message.
Key settings
* Candle Length: Scans last N closed candles (running candle excluded).
* On/Off toggles: Enable/disable each engulfing type and labels individually.
* Text Offset (%): Controls label distance from the box.
Non-repainting confirmation
All signals and alerts are calculated using confirmed bars only.
No running-bar signals → no repainting.
Best use
Works on any market and timeframe. For higher reliability, combine with:
* Key S/R zones
* Trend direction
* Volume or structure confirmation
Disclaimer:
This indicator is a pattern-detection tool, not financial advice. Trading involves risk; always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.
A clean, non-repainting engulfing pattern detector designed for traders who rely on price action and candle confirmation.
What this indicator does
This script automatically identifies and highlights two types of engulfing patterns on closed candles only:
1. Regular Engulfing (R EG)
* Regular Buy EG: A bullish candle fully engulfs the previous bearish candle’s high.
* Regular Sell EG: A bearish candle fully engulfs the previous bullish candle’s low.
2. E-Regular Engulfing (ER EG)
* Detects “extended” engulfing setups where a strong base candle is followed by 2 or more opposite-color candles and then a confirming engulf close.
* Useful for spotting delayed but powerful reversals.
Visuals on chart
* A rectangle (box) is drawn from the base candle to the confirmation candle.
* Optional text labels appear above/below the box (offset adjustable).
* Separate color controls for:
- Regular Buy / Regular Sell
- E-Regular Buy / E-Regular Sell
Alerts
Built-in alerts trigger only at candle close:
* R Buy EG
* R Sell EG
* ER Buy EG
* ER Sell EG
Each alert includes price and time in the message.
Key settings
* Candle Length: Scans last N closed candles (running candle excluded).
* On/Off toggles: Enable/disable each engulfing type and labels individually.
* Text Offset (%): Controls label distance from the box.
Non-repainting confirmation
All signals and alerts are calculated using confirmed bars only.
No running-bar signals → no repainting.
Best use
Works on any market and timeframe. For higher reliability, combine with:
* Key S/R zones
* Trend direction
* Volume or structure confirmation
Disclaimer:
This indicator is a pattern-detection tool, not financial advice. Trading involves risk; always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.