Direct Answer

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.

Key Takeaways

  • A doji forms when the gap between open and close is small relative to the bar's total range, commonly under 5-10%, though no exchange or charting standard fixes an exact threshold.
  • Wick placement creates named variants: a long-legged doji has long wicks on both sides, a dragonfly doji has a long lower wick with the open/close near the top, and a gravestone doji has a long upper wick with the open/close near the bottom.
  • Context does most of the interpretive work: a doji after an extended downtrend at known support reads very differently from one forming in the middle of a quiet, sideways range.
  • Most approaches wait for the next bar to close beyond the doji's high or low before treating it as an actionable signal, since a single bar only shows that price closed near where it opened.
  • A doji is often confused with a spinning top, which has a small but visible real body rather than the near-zero body that defines a doji.

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.

Close-up of a financial monitor displaying real-time cryptocurrency data and charts in a modern office.
Photo by Jakub Zerdzicki via Pexels

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

PatternBody sizeKey difference from a doji
DojiNear zeroBaseline, open and close nearly equal
Spinning topSmall but visibleHas a real (if small) body; less extreme indecision than a doji
HammerSmall, near top of rangeLong lower wick specifically, appears after a downtrend
Four-Price DojiZero, flat lineOpen, 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.

There Is No Official Threshold for Near-Equal

The doji definition rests on the open and close being close together relative to the bar range, and nobody sets the tolerance. Commonly cited figures sit somewhere under five to ten percent, and no exchange or charting standard fixes one. That means the same bar is a doji under one tolerance and a small-bodied candle under another, and any pattern that requires a doji as a component inherits the ambiguity.

Close-up of a smartphone displaying a stock trading app against a backdrop of market charts.
Photo by StockRadars Co., via Pexels

Which makes it worth choosing your own threshold and applying it consistently, particularly if you are counting occurrences or testing anything. A loose tolerance turns most quiet bars into dojis and dilutes whatever the pattern was supposed to capture.

Wick placement then splits the family into variants that carry quite different implications, with the open and close sitting near the top, near the bottom or in the middle. The near-equal body is the only thing they share, so treating doji as a single signal averages together bars that describe different sessions.

The underlying reading is indecision, and indecision has causes the bar cannot show. A doji formed around a scheduled release describes a market waiting for information; one formed on an ordinary quiet session describes a lack of interest, and they behave differently afterwards.

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.

How small does the body have to be to count as a doji?

There is no standard. Requiring the open and close to be identical produces very few dojis in instruments quoted to several decimals, so most implementations allow the body to be a small fraction of the bar range, typically a few percent. Because that threshold determines every doji-based pattern in the catalogue, it is the single most consequential undocumented setting in candlestick analysis.

Are dojis more common in coarsely quoted instruments?

Substantially. Where the tick size is a large fraction of the price, there are few possible prices and the open and close coincide frequently for mechanical reasons. The bar records that trading was confined to a handful of price levels rather than that the session ended in balance. Doji counts across instruments with different quoting granularity are not comparable.

Do dojis appear on a Heikin-Ashi chart?

They appear and mean something different. A Heikin-Ashi close is the average of the four real prices and the open is the midpoint of the previous averaged bar, so the two coincide under conditions that have nothing to do with a real session ending where it began. Heikin-Ashi dojis are read as transitions in the smoothed series rather than as sessions of balance.

Does the closing auction make dojis more or less likely?

It makes the close a separately determined price rather than the last continuous trade, which means a doji records the auction settling near the open rather than continuous trading doing so. In markets with a substantial closing auction, that is a meaningfully different observation from the one the pattern description implies, and it is invisible on the chart.

References