BLACK FRIDAY 30% OFF
BLACK FRIDAY SALE 30% OFF MASTERCLASSES USE CODE BLACKFRIDAY SALE STARTS IN 02d 13h 37m 25s
Skip to main content

Doji Candlestick Explained: Types, Meaning, Confirmation and Limitations

A doji is a candlestick whose opening and closing prices are equal or very close relative to its high–low range. It describes little net movement from open to close, even when the price travelled substantially within the period. A doji may prompt a trader to examine uncertainty or a potential change in momentum, but it does not independently establish a reversal or reveal who bought or sold.

How to identify a doji numerically

For a completed candle, calculate real body = absolute value of close minus open, range = high minus low, upper wick = high minus the greater of open and close, and lower wick = the lesser of open and close minus low. Exact equality is a strict doji. In practice a chart scanner may accept a small real body, for example no more than 5% of the full range. This is an illustrative test definition, not a universal threshold. Exclude zero-range bars or handle them separately, since their body-to-range ratio is undefined.

From left: long-legged, dragonfly, gravestone and small-range doji. Original diagram using the hypothetical OHLC values in the table.
TypeOpenHighLowCloseInterpretation
Long-legged10010595100Large movement on both sides
Dragonfly10010090100Lower excursion, close near high
Gravestone100110100100Upper excursion, close near low
Small-range100100.599.5100Little net move and narrow range

What the different types actually tell you

A long-legged doji has pronounced upper and lower shadows. It may coincide with volatile two-way trading, yet the order of the high and low is unknown. A dragonfly doji has a long lower shadow and little upper shadow; a gravestone doji is the reverse. A four-price doji has identical open, high, low and close, which can reflect a very quiet or illiquid observation rather than a meaningful contest. Do not interpret every small candle as evidence of psychological indecision: a market may simply be closed, illiquid or waiting for news.

Worked example: doji versus spinning top

Suppose a completed candle opens at £50.00, reaches £50.80 and £49.20, and closes at £50.04. Range is £1.60; body is £0.04; body/range is 2.5%. Under a 5% threshold the bar qualifies. Upper wick is £0.76 and lower wick is £0.80. A similar candle closing at £50.30 has a £0.30 body, or 18.75% of the range, and would not qualify under that rule. Some charting systems might classify it as a spinning top, with a small but more substantial real body and shadows on both sides.

Does a doji mean reversal or continuation?

Context changes the research question. After a strong rise at resistance, a doji may indicate a pause worth monitoring; in the middle of a sideways range it may be routine; immediately before a central-bank announcement it may reflect temporary inactivity. Following a decline at support, a dragonfly shape is sometimes interpreted as a potential rejection of lower prices. None of these readings proves that the next bar will rise or fall.

ContextWhat to observe nextWhat not to assume
Uptrend near resistanceWhether a defined support level breaksAutomatic bearish reversal
Downtrend near supportWhether price regains a prior swingGuaranteed bullish reversal
Sideways rangeWhether the range boundary changesA new trend from the candle alone
Event-driven volatilitySpread, liquidity and session timingThat a wick was executable at its extreme

Confirmation and the cost of waiting

A sample rule might require a close above the doji high after a decline or below the low after a rise. This is a testable confirmation condition, not a necessary feature of a doji. With a £50.80 high and £49.20 low, a later close above £50.80 can only be observed when that later bar ends. If the first eligible simulated fill is £51.00 and a planned stop is £49.10, gross price risk is £1.90 per share. A gap through the stop can increase the actual loss. Waiting for confirmation may reduce some premature classifications but also worsens the entry price in some paths and cannot eliminate failures.

How to test doji candles

Choose a timeframe, feed, body/range threshold, prior trend definition, wick proportions and minimum range. Do not use a completed daily candle to enter before its close. Evaluate all qualifying observations, not only dramatic chart examples; compare against ordinary candles with similar volatility and trend, apply realistic spreads and transaction costs, and validate on later unseen periods. A doji is fundamentally a geometric classification. Predictive value requires separate empirical evidence.

Frequently asked questions

Is a doji bullish or bearish?

Neither inherently. Its direction is not established by its small body. Surrounding price structure and subsequent movement can be evaluated independently.

Why do different brokers show different dojis?

Session boundaries, data sources, rounding and bid, ask or last-trade conventions can change OHLC values.

Can a doji be identified before the candle closes?

Only provisionally. Its open-to-close distance and range may change until completion.

See how to read candlestick charts and support and resistance zones for prerequisite skills.

Continue your learning with technical analysis foundations and learning pathways and hammer and shooting star patterns.

Further reading

StockCharts ChartSchool: Candlestick pattern dictionary explains the conventional visual definitions.

For general educational purposes only. Technical patterns do not guarantee future returns, and trading involves risk of loss.


Stay Ahead of the Markets

Get market analysis, financial news and practical trading insights delivered straight to your inbox.