Price Action Indicators

Engulfing Pattern: Reversal Candlestick | AlfaTactix

📖 7 min read

📝 1,237 words

🏷️ Price Action Indicators

In this page: what Engulfing Pattern is, how it works, when to use it, a practical example with code, and a bonus tip.

Use Engulfing Pattern in a real strategy—no code required

Create a free account to save your progress and build strategies with this indicator and 80+ others in minutes. Backtest, then export to MQL5.


Engulfing Pattern on a price chart: illustration of the indicator and how it is used in technical analysis
Engulfing Pattern – chart illustration

Engulfing Pattern Indicator Explanation

The Engulfing Pattern is a two-candlestick price action pattern that indicates potential trend reversals by showing that one candle completely engulfs the body of the previous candle. The pattern consists of two candles: the first candle (the "engulfed" candle) has a small body, and the second candle (the "engulfing" candle) has a larger body that completely covers the first candle's body. A bullish Engulfing Pattern occurs when a bearish candle is followed by a larger bullish candle that engulfs it, indicating potential upward reversal. A bearish Engulfing Pattern occurs when a bullish candle is followed by a larger bearish candle that engulfs it, indicating potential downward reversal. Engulfing Patterns are highly regarded in candlestick analysis for their ability to signal strong momentum shifts and trend reversals.

How Engulfing Pattern Works: An Engulfing Pattern is identified by comparing two consecutive candles. For a bullish Engulfing Pattern: the first candle is bearish (close < open), and the second candle is bullish (close > open) with a body that completely engulfs the first candle's body (second candle's open < first candle's close, and second candle's close > first candle's open). For a bearish Engulfing Pattern: the first candle is bullish (close > open), and the second candle is bearish (close < open) with a body that completely engulfs the first candle's body (second candle's open > first candle's close, and second candle's close < first candle's open). The pattern is most effective when it occurs at support or resistance levels, after strong trends, or with high volume. The engulfing candle represents strong momentum in the opposite direction, suggesting a potential trend reversal.

When to Use Engulfing Pattern:

  • Trend Reversal Identification: Engulfing Patterns are highly effective at identifying potential trend reversals, particularly when they form at support or resistance levels or after strong trends. The complete engulfment indicates strong momentum shift and potential reversal.
  • Support and Resistance Confirmation: Engulfing Patterns can confirm support and resistance levels when they form at these key levels. A bullish Engulfing Pattern at support suggests strong buying interest and potential upward reversal, while a bearish Engulfing Pattern at resistance suggests strong selling interest and potential downward reversal.
  • Entry Signals: Engulfing Patterns can generate entry signals when they form at key levels or after trends. A bullish Engulfing Pattern can signal a buy entry, while a bearish Engulfing Pattern can signal a sell entry. The pattern should be confirmed by subsequent price action for maximum reliability.

Advantages:

  • Provides clear visual signals of momentum shifts and potential reversals, making it easy to identify strong reversal points. The complete engulfment makes the pattern easy to spot on charts.
  • Works effectively across multiple timeframes and asset classes, including stocks, forex, commodities, and cryptocurrencies. The pattern is universal and reflects strong market psychology shifts.
  • Helps identify strong momentum reversals through complete body engulfment, providing valuable information for risk management and trade placement.

Limitations:

  • Engulfing Patterns can produce false signals in ranging markets when they occur frequently without clear directional bias. The pattern works best when combined with trend analysis and support/resistance levels.
  • The indicator may require confirmation from subsequent price action, as Engulfing Patterns alone do not guarantee reversals. Not all Engulfing Patterns are equally reliable, and context is crucial.
  • Engulfing Patterns alone do not provide information about trend direction or strength, only potential reversal points. Traders should combine them with other indicators for more comprehensive analysis.

In summary, Engulfing Pattern is a valuable price action pattern that identifies potential trend reversals through complete body engulfment, making it ideal for identifying strong momentum shifts and generating entry signals. For comprehensive understanding, refer to candlestick analysis literature, including Steve Nison's "Japanese Candlestick Charting Techniques" (1991), Investopedia's Engulfing Pattern guide, TradingView's Engulfing Pattern documentation, and academic research on candlestick patterns in technical analysis published in journals such as the Journal of Financial Markets and the Review of Financial Studies.

Practical Example: Using the Engulfing Pattern Indicator in a Trading Strategy

The Engulfing Pattern is a price action pattern used to identify potential trend reversals through complete body engulfment. In a trading strategy, the Engulfing Pattern indicator helps traders identify strong momentum shifts and generate entry signals based on reversal patterns.

Scenario: You're creating a reversal strategy for Gold (XAU/USD) on a 4-hour chart. You want to buy when a bullish Engulfing Pattern forms at a support level after a downtrend (indicating strong buying momentum and potential upward reversal), and sell when a bearish Engulfing Pattern forms at a resistance level after an uptrend (indicating strong selling momentum and potential downward reversal).

Strategy Logic:

  • Identify Engulfing Pattern: two consecutive candles where the second candle's body completely engulfs the first candle's body. Bullish Engulfing: bearish candle followed by larger bullish candle. Bearish Engulfing: bullish candle followed by larger bearish candle.
  • Buy signal: When a bullish Engulfing Pattern forms at a support level (e.g., previous low, trend line, Fibonacci retracement) after a downtrend, indicating strong buying momentum and potential upward reversal.
  • Sell signal: When a bearish Engulfing Pattern forms at a resistance level (e.g., previous high, trend line, Fibonacci retracement) after an uptrend, indicating strong selling momentum and potential downward reversal.

Backtrader Example:

import backtrader as bt

class EngulfingPatternReversalStrategy(bt.Strategy):
    params = dict(
        min_engulf_ratio=1.1  # Engulfing candle must be at least 1.1x the engulfed candle
    )
    
    def __init__(self):
        self.support_level = None  # Set based on your analysis
        self.resistance_level = None  # Set based on your analysis
        
    def is_bullish_engulfing(self, prev_bar, current_bar):
        """Check if current bar is a bullish Engulfing Pattern"""
        prev_body = abs(prev_bar.close - prev_bar.open)
        current_body = abs(current_bar.close - current_bar.open)
        # Previous candle is bearish, current is bullish
        return (prev_bar.close < prev_bar.open and 
                current_bar.close > current_bar.open and
                current_bar.open < prev_bar.close and
                current_bar.close > prev_bar.open and
                current_body >= prev_body * self.p.min_engulf_ratio)
    
    def is_bearish_engulfing(self, prev_bar, current_bar):
        """Check if current bar is a bearish Engulfing Pattern"""
        prev_body = abs(prev_bar.close - prev_bar.open)
        current_body = abs(current_bar.close - current_bar.open)
        # Previous candle is bullish, current is bearish
        return (prev_bar.close > prev_bar.open and 
                current_bar.close < current_bar.open and
                current_bar.open > prev_bar.close and
                current_bar.close < prev_bar.open and
                current_body >= prev_body * self.p.min_engulf_ratio)
        
    def next(self):
        if len(self.data) < 2:
            return
        
        prev_bar = self.data[-1]
        current_bar = self.data[0]
        
        if not self.position:
            # Buy when bullish Engulfing at support after downtrend
            if (self.is_bullish_engulfing(prev_bar, current_bar) and 
                self.data.low[0] <= self.support_level * 1.001 and
                self.data.close[-5] > self.data.close[0]):  # Downtrend
                self.buy()
        else:
            # Sell when bearish Engulfing at resistance after uptrend
            if (self.is_bearish_engulfing(prev_bar, current_bar) and 
                self.data.high[0] >= self.resistance_level * 0.999 and
                self.data.close[-5] < self.data.close[0]):  # Uptrend
                self.sell()

# Usage
cerebro = bt.Cerebro()
cerebro.addstrategy(EngulfingPatternReversalStrategy)

Expected Outcome: By using the Engulfing Pattern indicator, your strategy identifies potential trend reversals through complete body engulfment, helping you enter trades when strong momentum shifts occur at key levels and exit when reversal patterns complete. This approach leads to better reversal identification, improved momentum shift recognition, and enhanced entry timing by trading strong reversal patterns.

💡 Bonus Tip

Consider using Engulfing Patterns in combination with volume analysis for confirmation. When an Engulfing Pattern forms with high volume, it suggests stronger momentum shift and higher probability of reversal. When an Engulfing Pattern forms with low volume, it may be less reliable. This technique, documented in candlestick analysis literature, can significantly improve the accuracy of Engulfing Pattern-based trading strategies.

Using the Engulfing Pattern indicator ensures your strategy trades strong reversal patterns effectively, improving entry and exit timing based on objective price action analysis.

Use Engulfing Pattern in a real strategy—no code required

Create a free account to save your progress and build strategies with this indicator and 80+ others in minutes. Backtest, then export to MQL5.

Try Strategy Builder

Use this indicator in Strategy Builder — free

Create free account