Doji Candlestick Pattern: Formation, Meaning, and Signals
A doji is a candlestick where the open and close prices are nearly identical, leaving little or no real body and wicks on one or both sides. It signals indecision — neither buyers nor sellers controlled the bar — and its meaning depends entirely on the trend and level it appears at, not the shape alone.
What Is a Doji?
Every candlestick plots four prices for a period: open, high, low, and close. A doji forms when the open and close land close enough together that the candle's body — the rectangle between them — collapses into a thin line. The wicks above and below can be short, long, or asymmetric; what defines a doji is the near-equal open and close, not the wick length.
Because a doji shows the two sides finishing roughly where they started, it's read as a snapshot of indecision: buyers pushed price up during the bar, sellers pushed it back down (or the reverse), and neither side held the advantage by the close. That's a description of the bar itself, not a prediction — a doji says nothing about what happens next until it's read against the trend it interrupts.
How a Doji Forms
A bar qualifies as a doji when |close − open| is small relative to the bar's total range (high − low) — commonly under 5–10% of the range, though no exchange or charting standard fixes an exact threshold. The tighter the open-close gap relative to the range, the more textbook the doji.
Where the near-equal open/close sits within the bar's range doesn't change the doji classification, but it does change what traders call it: a doji with long wicks on both sides is a long-legged doji; one with the open/close near the top of the range (long lower wick, little upper wick) is a dragonfly doji; one with the open/close near the bottom (long upper wick, little lower wick) is a gravestone doji. All three share the same core definition — a body near zero — and differ only in wick placement.
Doji Example
The chart below shows a deterministic, illustrative example: a downtrend leading in, a doji forming, then two possible continuations — a confirmation (price follows through in the reversal direction) and a failure/look-alike (price breaks the doji's low instead). Toggle between them to see why the doji alone doesn't decide the outcome.
How to Trade a Doji
Context first
A doji after an extended downtrend, at a known support level, is read very differently from a doji in the middle of a quiet, sideways range. The first is a plausible early sign that selling pressure has stalled; the second is often just noise in a market that wasn't trending anywhere to begin with. Location — relative to trend, support/resistance, and recent volatility — does most of the interpretive work.
Wait for confirmation
Because a doji only describes one bar, most approaches wait for the next bar to close beyond the doji's high (for a bullish read) or low (for a bearish read) before treating it as an actionable signal. A doji that's never followed through in either direction usually just means the indecision continued.
Define invalidation before acting
A common invalidation level is the opposite side of the doji's own range: if a doji appears at support and a trader treats it as a bullish signal, a close back below the doji's low negates that read. Defining this before the next bar closes — not after — keeps the invalidation rule honest.
Common Doji Mistakes
- Treating every doji as a reversal — most doji bars appear inside ranges or ongoing trends and resolve as noise, not turning points.
- Trading the doji itself, not the confirmation — entering immediately on the doji bar skips the follow-through check that separates a real signal from a random pause.
- Ignoring the surrounding trend — a doji's implied direction only makes sense relative to what came before it.
- Confusing a small real body with a doji — a candle with a visible (if small) body is a spinning top, not a doji; see the comparison below.
Doji vs. Similar Patterns
| Pattern | Body size | Key difference from a doji |
|---|---|---|
| Doji | Near zero | Baseline — open and close nearly equal |
| Spinning top | Small but visible | Has a real (if small) body; less extreme indecision than a doji |
| Hammer | Small, near top of range | Long lower wick specifically, appears after a downtrend |
| Four-Price Doji | Zero, flat line | Open, high, low, and close are all equal — an even more extreme, and rarer, case |
Limitations of the Doji Pattern
A doji is a description of one bar's open-close relationship, not a forecast. It carries no information about volume, order flow, or the reasons behind the indecision — a doji caused by a scheduled news release behaves differently from one that formed on ordinary trading. It also says nothing about magnitude: a doji can precede a large move or none at all. Like any single-bar pattern, it works best combined with trend context, support/resistance, and a defined confirmation and invalidation plan — not used alone.
Doji FAQs
Is a doji always a reversal signal?
No. A doji only means the open and close were nearly equal for that one bar — it describes indecision, not direction. Whether it turns into a reversal depends on the trend it appears in, the levels nearby, and what the following bars do.
What's the difference between a doji and a spinning top?
A doji has an open and close that are nearly identical, so its body is a thin line. A spinning top has a small but visible body with wicks on both sides — more indecision than a trending candle, but less extreme than a doji.
Does a doji need confirmation?
Yes. A doji by itself only shows that the bar closed near where it opened. Traders typically wait for the next bar to close beyond the doji's high or low in the expected direction before treating it as a signal.
What invalidates a doji signal?
If price closes back through the doji's range in the opposite direction of the expected move — for example, closing below a doji's low after it formed at the end of a downtrend — the tentative reversal reading is invalidated.
Does a doji work the same way on every timeframe?
The shape means the same thing on any timeframe, but its significance scales with the timeframe: a daily doji at a multi-month support level carries more weight than a 1-minute doji in the middle of a range.
Related Reading
- Hammer candlestick pattern — a small body near the top of the range with a long lower wick.
- Price action explained — trend, support/resistance, and breakouts without relying on indicators.
- Technical Analysis overview — the full indicator library and TA framework.