Price Action Indicators

Three White Soldiers: Bullish Reversal | AlfaTactix

📖 6 min read

📝 1,184 words

🏷️ Price Action Indicators

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

Use Three White Soldiers 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.


Three White Soldiers Indicator Explanation

The Three White Soldiers is a three-candlestick price action pattern that indicates potential bullish reversals at the end of a downtrend. The pattern consists of three consecutive bullish (green/white) candles with closing prices that progressively increase, each opening within or near the previous candle's body and closing above the previous candle's high. The pattern resembles three white soldiers marching upward, each one higher than the previous. Three White Soldiers indicates strong buying pressure and potential upward reversal, particularly when it occurs after a downtrend or at support levels. The pattern is highly regarded in candlestick analysis for its ability to signal strong bullish momentum and potential trend reversals.

How Three White Soldiers Works: Three White Soldiers is identified by three consecutive bullish candles. Each candle should be bullish (close > open) with a significant body. The first candle opens and closes above the previous downtrend, indicating initial buying pressure. The second candle opens within or near the first candle's body and closes above the first candle's high, indicating continued buying. The third candle opens within or near the second candle's body and closes above the second candle's high, confirming strong buying momentum. The pattern is most effective when it occurs after a downtrend, at support levels, or with high volume. All three candles should have relatively similar body sizes, indicating consistent buying pressure.

When to Use Three White Soldiers:

  • Bullish Reversal Identification: Three White Soldiers patterns are highly effective at identifying potential bullish reversals, particularly when they form after downtrends or at support levels. The three consecutive bullish candles indicate strong buying pressure and potential upward reversal.
  • Support Level Confirmation: Three White Soldiers patterns can confirm support levels when they form at these key levels. The pattern suggests strong buying interest and potential upward reversal.
  • Entry Signals: Three White Soldiers patterns can generate buy entry signals when they form after downtrends or at support, with a stop-loss below the pattern's low. The pattern indicates strong bullish momentum and potential upward continuation.

Advantages:

  • Provides clear visual signals of strong bullish reversal potential, making it easy to identify powerful reversal points. The three-candle pattern makes it 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.
  • Helps identify strong buying pressure through three consecutive bullish candles, providing valuable information for risk management and trade placement.

Limitations:

  • Three White Soldiers 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 Three White Soldiers patterns alone do not guarantee reversals. Not all Three White Soldiers patterns are equally reliable, and context is crucial.
  • Three White Soldiers patterns alone do not provide information about trend direction or strength, only potential bullish reversal points. Traders should combine them with other indicators for more comprehensive analysis.

In summary, Three White Soldiers is a valuable price action pattern that identifies potential bullish reversals through three consecutive bullish candles, making it ideal for identifying strong buying pressure and generating buy entry signals. For comprehensive understanding, refer to candlestick analysis literature, including Steve Nison's "Japanese Candlestick Charting Techniques" (1991), Investopedia's Three White Soldiers guide, TradingView's Three White Soldiers 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 Three White Soldiers Indicator in a Trading Strategy

The Three White Soldiers is a price action pattern used to identify potential bullish reversals through three consecutive bullish candles. In a trading strategy, the Three White Soldiers indicator helps traders identify strong buying pressure and generate buy entry signals based on reversal patterns.

Scenario: You're creating a reversal strategy for Gold (XAU/USD) on a daily chart. You want to buy when Three White Soldiers form after a downtrend or at a support level (indicating strong buying pressure and potential upward reversal), with confirmation from subsequent bullish price action.

Strategy Logic:

  • Identify Three White Soldiers patterns: three consecutive bullish candles where each candle opens within or near the previous candle's body and closes above the previous candle's high, with progressively increasing closes.
  • Buy signal: When Three White Soldiers form after a downtrend or at a support level (e.g., previous low, trend line, Fibonacci retracement), indicating strong buying interest and potential upward reversal.
  • Confirmation: Wait for subsequent bullish price action (e.g., bullish candle closing above the pattern's high) before entering the trade.

Backtrader Example:

import backtrader as bt

class ThreeWhiteSoldiersReversalStrategy(bt.Strategy):
    params = dict(
        min_body_ratio=0.6  # Each candle body should be at least 60% of range
    )
    
    def __init__(self):
        self.support_level = None  # Set based on your analysis
        
    def is_three_white_soldiers(self, bar1, bar2, bar3):
        """Check if three bars form Three White Soldiers pattern"""
        # All three candles should be bullish
        all_bullish = (bar1.close > bar1.open and 
                      bar2.close > bar2.open and 
                      bar3.close > bar3.open)
        
        if not all_bullish:
            return False
        
        # Check body sizes (similar sizes indicate consistent pressure)
        body1 = abs(bar1.close - bar1.open)
        body2 = abs(bar2.close - bar2.open)
        body3 = abs(bar3.close - bar3.open)
        range1 = bar1.high - bar1.low
        range2 = bar2.high - bar2.low
        range3 = bar3.high - bar3.low
        
        bodies_adequate = (body1 >= range1 * self.p.min_body_ratio and
                          body2 >= range2 * self.p.min_body_ratio and
                          body3 >= range3 * self.p.min_body_ratio)
        
        # Progressive higher closes
        progressive_highers = (bar2.close > bar1.close and 
                              bar3.close > bar2.close)
        
        # Each opens within or near previous body
        opens_within = (bar2.open >= bar1.open and 
                       bar2.open <= bar1.close and
                       bar3.open >= bar2.open and 
                       bar3.open <= bar2.close)
        
        return (bodies_adequate and 
                progressive_highers and
                opens_within)
        
    def next(self):
        if len(self.data) < 3:
            return
        
        bar1 = self.data[-2]
        bar2 = self.data[-1]
        bar3 = self.data[0]
        
        if not self.position:
            # Buy when Three White Soldiers at support after downtrend
            if (self.is_three_white_soldiers(bar1, bar2, bar3) and 
                (self.support_level is None or 
                 self.data.low[-2] <= self.support_level * 1.001) and
                self.data.close[-5] > self.data.close[-2]):  # Downtrend
                self.buy()
        else:
            # Exit on reversal or target
            if self._exit_signal():
                self.sell()
    
    def _exit_signal(self):
        # Add exit logic
        return False

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

Expected Outcome: By using the Three White Soldiers indicator, your strategy identifies potential bullish reversals through three consecutive bullish candles, helping you enter trades when strong buying pressure occurs at key levels and exit when reversal patterns complete. This approach leads to better reversal identification, improved buying pressure recognition, and enhanced entry timing by trading strong bullish reversal patterns.

💡 Bonus Tip

Consider using Three White Soldiers patterns in combination with volume analysis for confirmation. When Three White Soldiers form with high volume, it suggests stronger buying pressure and higher probability of reversal. When Three White Soldiers form with low volume, it may be less reliable. This technique, documented in candlestick analysis literature, can significantly improve the accuracy of Three White Soldiers-based trading strategies.

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

Use Three White Soldiers 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