
A candlestick pattern detection script that identifies and highlights bullish and bearish engulfing patterns with customizable parameters for precise trading signal generation.
Explore complementary indicator rolesHow it works
The engulfing pattern detection script analyzes price candles by comparing their characteristics using specific criteria. It checks the relationship between consecutive candles, focusing on their body size, wick ratio, and color to identify potential reversal patterns.
The script calculates a wick ratio to ensure the candle body represents a significant portion of its total range. It then verifies that the current and previous candles are of opposite types (bullish and bearish) and compares their body sizes against predefined parameters like average body size of previous candles.
Why it may be useful
Engulfing patterns provide traders with critical insights into potential trend reversals and market sentiment shifts. By identifying moments where one candle completely engulfs the previous candle, traders can spot potential entry and exit points with higher probability.
The script's customizable parameters allow traders to adapt the detection method to different market conditions and trading styles. This flexibility enables more precise signal generation, helping traders filter out less reliable patterns and focus on high-quality trading opportunities.
When to explore it
The engulfing pattern detection script works best in markets with clear trend transitions and significant price movements. It is particularly effective in liquid markets like forex, stocks, and cryptocurrency trading where price action is more pronounced.
Traders should use this script in conjunction with other technical analysis tools and confirm signals with additional indicators. It is most reliable on timeframes ranging from 1-minute to daily charts, making it suitable for scalping and day trading strategies.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.


![[EmreKb] Custom Pattern chart preview](https://s3.tradingview.com/c/cIQ5w3lc.png?v=1731832049)
![[S1B] Engulfing Orderblock chart preview](https://s3.tradingview.com/p/PkDFctlx.png?v=1741712084)


