5 min read·Algomaya Editorial

Introduction to Candlestick Patterns

candlestickpatternsdojiengulfinghammerchart-analysis

Candlestick charts originated in 18th-century Japan, where rice trader Munehisa Homma used them to track price movements in the Dojima Rice Exchange. Three centuries later, they remain the most popular chart type among traders worldwide. Every trading platform — from TradingView to Zerodha Kite — uses candlestick charts as the default.

This article teaches you how to read individual candlesticks, identify the most reliable patterns, and understand what they tell you about market psychology.

Anatomy of a Candlestick

Every candlestick shows four prices for a given time period (1 minute, 1 hour, 1 day, etc.):

  • Open: The price at the start of the period
  • Close: The price at the end of the period
  • High: The highest price reached during the period
  • Low: The lowest price reached during the period

The body is the thick part between open and close:

  • Green (or white) body: Close > Open (price went up — bullish)
  • Red (or black) body: Close < Open (price went down — bearish)

The shadows (wicks) are the thin lines above and below the body:

  • Upper shadow: Extends from the body to the high
  • Lower shadow: Extends from the body to the low

What shadows tell you: Long shadows indicate that the price was pushed significantly in one direction but then rejected. A long lower shadow means buyers stepped in after a decline (bullish). A long upper shadow means sellers pushed back after a rally (bearish).

Single Candlestick Patterns

Doji

A doji forms when open and close are virtually the same (tiny or no body). It signals indecision — neither buyers nor sellers could take control.

Types of doji:

  • Standard Doji: Cross shape — pure indecision
  • Dragonfly Doji: Long lower shadow, no upper shadow — bullish at support levels
  • Gravestone Doji: Long upper shadow, no lower shadow — bearish at resistance levels

Key point: A doji alone is not a signal. It needs context — a doji after a long uptrend suggests the trend may be exhausting.

Hammer and Hanging Man

Both have a small body at the top with a long lower shadow (2x the body length or more). The difference is context:

  • Hammer: Appears after a downtrend → Bullish reversal signal. Buyers fought back from the lows and closed near the high.
  • Hanging Man: Appears after an uptrend → Bearish reversal signal. Despite closing near the high, the deep intraday decline shows selling pressure building.

Shooting Star and Inverted Hammer

These have a small body at the bottom with a long upper shadow:

  • Shooting Star: After an uptrend → Bearish. Buyers pushed prices up but sellers overwhelmed them.
  • Inverted Hammer: After a downtrend → Potentially bullish. Buyers attempted to rally (needs confirmation from the next candle).

Two-Candlestick Patterns

Bullish and Bearish Engulfing

Bullish Engulfing: A small red candle followed by a larger green candle that completely engulfs the previous candle's body. It signals that buyers have overwhelmed sellers.

Bearish Engulfing: A small green candle followed by a larger red candle that engulfs the previous body. Sellers have taken control.

Reliability: Engulfing patterns are among the most reliable reversal patterns, especially when they occur at key support/resistance levels with above-average volume.

Tweezer Tops and Bottoms

Tweezer Top: Two candles with matching highs after an uptrend — the market tested resistance twice and failed. Tweezer Bottom: Two candles with matching lows after a downtrend — support held firm twice.

Three-Candlestick Patterns

Morning Star (Bullish Reversal)

  1. Large red candle (downtrend continues)
  2. Small-bodied candle (doji or spinning top) that gaps down — indecision
  3. Large green candle that closes above the midpoint of candle 1

This pattern signals that selling pressure exhausted, and buyers are taking over.

Evening Star (Bearish Reversal)

The mirror image of the morning star:

  1. Large green candle
  2. Small-bodied candle that gaps up
  3. Large red candle closing below the midpoint of candle 1

Three White Soldiers / Three Black Crows

Three White Soldiers: Three consecutive large green candles, each opening within the previous body and closing at new highs. Strong bullish continuation.

Three Black Crows: Three consecutive large red candles. Strong bearish continuation.

Using Candlestick Patterns in Algo Trading

Candlestick patterns can be coded into algorithms. Here's the general approach:

  1. Define the pattern mathematically (e.g., hammer: lower shadow > 2× body, upper shadow < 0.1× body)
  2. Require context — only signal at support/resistance levels or after extended trends
  3. Confirm with volume — patterns with above-average volume are more reliable
  4. Combine with other indicators — use RSI, moving averages, or MACD for confirmation

Key Takeaways

  • Candlestick anatomy (open, close, high, low) reveals the battle between buyers and sellers
  • Long shadows indicate price rejection — critical for identifying potential reversals
  • Single candle patterns (doji, hammer) need context and confirmation to be reliable
  • Engulfing patterns and morning/evening stars are among the most reliable reversal signals
  • Always confirm candlestick signals with volume and other technical indicators

Conclusion

Candlestick patterns are a powerful tool for understanding market psychology, but they are not magic. No pattern works 100% of the time. The key is combining candlestick analysis with other technical tools (support/resistance, volume, moving averages) and proper risk management. Start by learning to identify hammers, engulfing patterns, and morning/evening stars on your Nifty 50 charts — these three pattern types cover the majority of useful signals.

This content is for educational purposes only and does not constitute investment advice.

Practice this strategy risk-free

Algomaya lets you paper-trade RSI, MACD, Bollinger Bands, SMA, EMA and AI strategies on live US markets — free forever.

Download Algomaya Free

Disclaimer: This article is for educational purposes only and is not financial advice. Algomaya is not a registered investment adviser. All trading involves risk of loss.