Doji
A doji is a candlestick chart pattern that forms when a security's opening and closing prices are virtually equal, creating a candle with a very small or nonexistent body and visible upper and lower shadows (wicks), signaling indecision or a balance of buying and selling pressure at that price level. Doji candles are interpreted as potential trend reversal signals, particularly when they appear after extended directional moves.
Key takeaways
- A doji occurs when open and close prices are nearly identical, regardless of the intraday high and low range.
- Several doji variants exist: standard doji, long-legged doji (long upper and lower wicks), gravestone doji (long upper wick, no lower wick), and dragonfly doji (long lower wick, no upper wick).
- Doji carry more analytical weight when they appear at significant support/resistance levels or following extended trends, as the indecision they represent is more meaningful at these junctures.
- Volume is a critical confirming factor; a doji on high volume suggests more significant market indecision than one on thin trading.
- Doji are not standalone reversal signals—they require confirmation from the subsequent candle(s) before acting as actionable entry or exit signals.
Explanation
The doji candlestick pattern originated in Japanese rice trading analysis centuries before Western technical analysis emerged, and it remains one of the most recognized and widely discussed patterns in modern charting. The pattern visually represents a day (or period) on which the market opened and closed at essentially the same price, implying that neither buyers nor sellers were able to establish control despite potential intraday price swings—a state of market equilibrium or indecision.
The standard doji resembles a plus sign or cross, with the body (rectangle between open and close) reduced to a thin horizontal line. Shadows (wicks) extending above and below reflect the intraday range: price tested higher levels (upper shadow) and lower levels (lower shadow) but ultimately returned to the opening price. The relative length of shadows and the position of the body within the range create distinct doji subtypes with varying interpretive implications.
The gravestone doji—with a long upper shadow and no lower shadow—forms when prices rally significantly during the session but then completely reverse to close at the day's low. This pattern is considered bearish when appearing at resistance levels, as it shows buyers failed to hold their gains. The dragonfly doji—with a long lower shadow and no upper shadow—is its bullish mirror image: prices fell sharply intraday but recovered completely to close at the day's high, suggesting buyers absorbed all selling pressure. The long-legged doji features extended shadows in both directions, reflecting maximum uncertainty.
In technical analysis practice, doji interpretation is heavily contextual. A doji appearing in a stable, sideways market has little informational value. However, a doji appearing after a sustained uptrend, at a known resistance level, on above-average volume signals meaningful indecision: buyers who drove the uptrend are meeting resistance, and the balance of power may be shifting. Technical analysts require the next candle to 'confirm' the doji signal—a bearish engulfing candle following a doji top would constitute strong reversal confirmation.
For quantitative traders, doji patterns are incorporated into systematic trading rules—for instance, flagging potential position reduction when a doji appears in an existing long position after a 10%+ trend move, or increasing monitoring of stochastic oscillator readings for overbought/oversold conditions in conjunction with the doji signal. Backtesting studies of doji patterns generally find modest but statistically significant predictive value for short-term price reversals in liquid equity and futures markets.
Example
A hedge fund's technical analyst observes Apple stock in a strong uptrend over six weeks, rising from $160 to $195 (+21.9%). On the seventh week, after the stock has reached a major resistance level coinciding with a previous all-time high, the stock opens at $195.20, trades as high as $198.50 and as low as $193.10 during the session, but closes at $195.40—forming a near-perfect doji with a small body, a significant upper shadow, and a moderate lower shadow. The analyst notes the doji on elevated volume (1.5x average daily volume) at the resistance level and flags the position for risk review. The following session, Apple opens lower at $193.50 and closes at $190—a bearish confirmation that validates the doji reversal signal. The fund reduces its long position, subsequently avoiding further decline to $182 over the next two weeks.
Related terms
Backtesting Candlestick Chart Chart Pattern Charting Engulfing Pattern Equity Exponential Moving Average Hedge Fund Overbought Oversold Rally Relative Strength