🪙
 Get student discount & enjoy best sellers ~$7/week

Bearish Harami

The Bearish Harami is a pivotal candlestick pattern in technical analysis, signaling potential reversals and shifts in market sentiment. This article explores the Bearish Harami in depth, providing traders with a comprehensive understanding of its structure, psychology, and practical applications across stocks, forex, crypto, and commodities.

Introduction

The Bearish Harami is a two-candle reversal pattern that signals a potential shift from bullish to bearish sentiment. Originating from Japanese rice trading centuries ago, candlestick charting has become a cornerstone of modern technical analysis. The Bearish Harami, with its distinctive structure, is valued for its ability to highlight moments when bullish momentum wanes and bears begin to assert control. In today's fast-paced markets, recognizing this pattern can provide traders with a crucial edge, helping them anticipate reversals and manage risk more effectively.

Understanding the Bearish Harami Pattern

The Bearish Harami consists of two candles: the first is a large bullish (white or green) candle, followed by a smaller bearish (black or red) candle that is completely contained within the body of the first. The key elements are:

  • Open and Close: The first candle opens lower and closes higher, while the second opens and closes within the range of the first.
  • High and Low: Both the high and low of the second candle are within the high and low of the first.
  • Color Implications: The first candle is bullish, the second bearish. This color contrast is essential for the pattern's interpretation.

While the classic Bearish Harami is a two-candle pattern, variations exist. Sometimes, the second candle is a doji, indicating even greater indecision. The pattern's reliability increases when it appears after a prolonged uptrend, especially on higher timeframes like daily or weekly charts.

Historical Background and Evolution

Candlestick charting originated in 18th-century Japan, where rice traders developed visual methods to track price movements. The term "Harami" means "pregnant" in Japanese, reflecting the visual of a small candle (the baby) inside a larger one (the mother). Over centuries, these patterns have been refined and adopted globally, forming the backbone of modern technical analysis. The Bearish Harami remains a staple for traders seeking early reversal signals.

Psychology Behind the Bearish Harami

The Bearish Harami reflects a shift in market sentiment. During its formation, the initial bullish candle suggests strong buying interest. However, the appearance of the smaller bearish candle signals hesitation among buyers and the emergence of selling pressure. Retail traders may see this as a warning sign, while institutional traders often interpret it as an opportunity to initiate or add to short positions. The emotions at play include fear among bulls (of losing gains) and growing confidence among bears. This psychological tug-of-war is what makes the Bearish Harami such a powerful reversal signal.

Pattern Structure and Identification

To identify a Bearish Harami, look for a large bullish candle followed by a smaller bearish candle that is completely contained within the body of the first. The second candle's high should be lower than the first candle's high, and its low should be higher than the first candle's low. This containment is crucial for the pattern's validity. Traders often use volume analysis and confirmation from other indicators to filter out false signals.

Types & Variations

The Bearish Harami belongs to the broader family of Harami patterns, which also includes the Bullish Harami. Variations include:

  • Harami Cross: Where the second candle is a doji, indicating extreme indecision.
  • Strong vs. Weak Signals: A strong Bearish Harami has a large first candle and a very small second candle. Weak signals may occur if the second candle is not fully contained or if the preceding trend is unclear.
  • False Signals & Traps: In choppy or sideways markets, Bearish Haramis can produce false signals. Volume analysis and confirmation from other indicators can help filter out these traps.

Chart Examples and Real-World Scenarios

In an uptrend, a Bearish Harami often marks the transition from bullish to bearish sentiment. On a 1-minute chart, the pattern may signal a brief pullback, while on a daily or weekly chart, it can precede significant reversals. In sideways markets, the pattern's reliability decreases. For example, in the forex market, a Bearish Harami on the EUR/USD daily chart after a strong rally may indicate an impending correction. In crypto, spotting this pattern on Bitcoin's 4-hour chart can help traders anticipate short-term drops.

Practical Applications and Trading Strategies

Traders use the Bearish Harami to time entries and exits. A common strategy is to enter a short position when the low of the second candle is breached, placing a stop loss above the high of the first candle. Risk management is crucial, as false signals can occur. Combining the Bearish Harami with indicators like RSI or moving averages can improve accuracy. For example, if the pattern appears while RSI is overbought, the probability of a reversal increases. In commodities, such as gold, the Bearish Harami can signal the end of a rally, prompting traders to tighten stops or take profits.

Backtesting & Reliability

Backtesting reveals that the Bearish Harami has varying success rates across markets. In stocks, it tends to be more reliable on higher timeframes. In forex, its effectiveness increases when combined with trend analysis. Crypto markets, known for volatility, may produce more false signals, so confirmation is essential. Institutional traders often use the Bearish Harami as part of broader strategies, incorporating order flow and volume analysis. Common pitfalls in backtesting include ignoring market context and overfitting to historical data.

Advanced Insights: Algorithmic Detection and Machine Learning

Algorithmic trading systems can be programmed to detect Bearish Harami patterns, triggering automated trades or alerts. Machine learning models can enhance pattern recognition by analyzing thousands of charts and identifying subtle variations. In the context of Wyckoff and Smart Money Concepts, the Bearish Harami may signal distribution phases, where smart money is offloading positions to less informed traders. Understanding these advanced concepts can help traders avoid common traps and align their strategies with institutional flows.

Case Studies

Historical Chart: Apple Inc. (AAPL)

In 2018, AAPL formed a Bearish Harami on the weekly chart after a prolonged uptrend. The pattern preceded a multi-week correction, offering traders an early warning of the reversal. Step-by-step:

  1. Identify the large bullish candle followed by a smaller bearish candle within its range.
  2. Wait for confirmation with a break below the second candle's low.
  3. Enter a short position with a stop above the first candle's high.
  4. Manage the trade as the correction unfolds.

Crypto Example: Bitcoin (BTC/USD)

On the 4-hour chart, a Bearish Harami appeared after a sharp rally. The pattern signaled a short-term pullback, allowing traders to capitalize on the reversal. In forex, similar setups on EUR/USD and GBP/USD have provided profitable opportunities when combined with momentum indicators.

Comparison Table: Bearish Harami vs. Other Patterns

PatternStructureSignal StrengthReliability
Bearish HaramiLarge bullish candle, small bearish candle withinModerateMedium-High
Bearish EngulfingSmall bullish candle, large bearish candle engulfsStrongHigh
Shooting StarSmall body, long upper wick, appears after uptrendModerateMedium

Practical Guide for Traders

  • Checklist:
    • Is the pattern appearing after a clear uptrend?
    • Is the second candle fully contained within the first?
    • Is there confirmation from volume or indicators?
    • Is risk/reward favorable?
  • Risk/Reward Example: Enter short at break of second candle's low, stop above first candle's high, target recent support.
  • Common Mistakes: Trading the pattern in sideways markets, ignoring confirmation, risking too much on a single trade.

Bearish Harami Detection Code Examples

Below are code examples for detecting the Bearish Harami pattern in various programming languages and trading platforms. Use these as a foundation for building your own indicators or automated strategies.

// C++ Example
bool isBearishHarami(double open1, double close1, double open2, double close2) {
    return (close1 > open1) && (open2 < close2) && (open2 < close1 && close2 > open1);
}
# Python Example
def is_bearish_harami(open1, close1, open2, close2):
    return close1 > open1 and open2 < close2 and open2 < close1 and close2 > open1
// Node.js Example
function isBearishHarami(open1, close1, open2, close2) {
  return close1 > open1 && open2 < close2 && open2 < close1 && close2 > open1;
}
//@version=6
// Bearish Harami Detection Script
indicator("Bearish Harami Detector", overlay=true)

// Define the previous and current candles
prevOpen = open[1]
prevClose = close[1]
prevHigh = high[1]
prevLow = low[1]
currOpen = open
currClose = close
currHigh = high
currLow = low

// Bullish candle followed by bearish candle
isBullishPrev = prevClose > prevOpen
isBearishCurr = currClose < currOpen

// Current candle within previous candle's body
withinBody = currOpen < prevClose and currOpen > prevOpen and currClose < prevClose and currClose > prevOpen

// Detect Bearish Harami
bearishHarami = isBullishPrev and isBearishCurr and withinBody

// Plot shape on chart
plotshape(bearishHarami, title="Bearish Harami", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="BH")

// Alert condition
alertcondition(bearishHarami, title="Bearish Harami Alert", message="Bearish Harami detected!")
// MetaTrader 5 Example
bool isBearishHarami(double open1, double close1, double open2, double close2) {
    return (close1 > open1) && (open2 < close2) && (open2 < close1 && close2 > open1);
}

Conclusion

The Bearish Harami is a versatile and reliable reversal pattern when used in the right context. Its effectiveness increases with confirmation and proper risk management. Traders should trust the pattern when it appears after strong trends and avoid it in choppy markets. Combining the Bearish Harami with other tools and maintaining discipline is key to long-term success. Use the provided code examples to automate detection and enhance your trading strategies.

Frequently Asked Questions about Bearish Harami

What is a Bearish Harami in Pine Script?

A Bearish Harami is a chart pattern used in technical analysis that indicates a potential bearish trend reversal.

It consists of a small white candle (or a doji) that is completely inside the body of a larger black candle, with the wick of the smaller candle touching or crossing above the upper wick of the larger candle.

This pattern suggests that the bulls are losing momentum and may soon lose control to the bears, leading to a potential price drop.

How do I identify a Bearish Harami in Pine Script?

To identify a Bearish Harami, look for the following conditions:

  • A small white candle (or a doji) that is completely inside the body of a larger black candle.
  • The wick of the smaller candle touching or crossing above the upper wick of the larger candle.
  • A clear bearish trend, with the price moving in an uptrend before the appearance of this pattern.

Be cautious when identifying Bearish Haramis, as false signals can occur if the market is experiencing a prolonged period of consolidation or if there are other factors at play.

What is the significance of a Bearish Harami in trading?

A Bearish Harami is considered a bearish reversal pattern, indicating that the bulls have lost control and the bears may take over.

Traders can use this pattern as a signal to sell or short the market, especially if it appears in conjunction with other bearish signals or trends.

However, it's essential to remember that no single pattern is foolproof, and traders should always combine Bearish Haramis with other forms of analysis before making trading decisions.

How do I use a Bearish Harami in Pine Script?

To use a Bearish Harami in Pine Script, you can create a custom indicator that detects this pattern and provides alerts or signals when it appears.

Here's an example code snippet:

[@version=5]def bearish_harami(c):    # Define the conditions for a Bearish Harami    if c.close[0] < c.open[0] and c.close[-1] > c.open[-1]:        return True

This code snippet detects the basic condition of a Bearish Harami, but you can modify it to include additional features or filters as needed.

Can I use a Bearish Harami in combination with other indicators?

A Bearish Harami can be used in conjunction with other technical analysis indicators and strategies.

  • Combining it with moving averages, RSI, or Bollinger Bands can help confirm the pattern and provide more accurate signals.
  • Merging it with trend-following strategies like momentum indicators or Ichimoku Cloud can also enhance its effectiveness.

Remember to always backtest and validate any new strategy before using it in live trading.



How to post a request?

Posting a request is easy. Get Matched with experts within 5 minutes

  • 1:1 Live Session: $60/hour
  • MVP Development / Code Reviews: $200 budget
  • Bot Development: $400 per bot
  • Portfolio Optimization: $300 per portfolio
  • Custom Trading Strategy: $99 per strategy
  • Custom AI Agents: Starting at $100 per agent
Professional Services: Trading Debugging $60/hr, MVP Development $200, AI Trading Bot $400, Portfolio Optimization $300, Trading Strategy $99, Custom AI Agent $100. Contact for expert help.
⭐⭐⭐ 500+ Clients Helped | 💯 100% Satisfaction Rate


Was this content helpful?

Help us improve this article