Back to Patterns Guide

Candlestick Patterns

Doji Candlestick Types

A doji opens and closes at almost the same price. The five variants differ in where the wicks sit.

Doji

Open and close nearly equal, with wicks on both sides. Buyers and sellers pushed price around but ended roughly where they began.

Dragonfly Doji

A long lower wick and almost no upper wick. Price fell sharply, then recovered to the open. Read as a rejection of lower prices after a decline.

Gravestone Doji

A long upper wick and almost no lower wick. Price rallied, then fell back to the open. Read as a rejection of higher prices after a rise.

Long-Legged Doji

Long wicks on both sides with a tiny body. A wide fight with no winner, often a sign of uncertainty at a decision point.

Four-Price Doji

Open, high, low and close almost identical. This is extremely rare and typically shows up on thin or very short-timeframe data.

What it is

The word doji refers to a candle where the open and close are virtually the same. The signal is indecision: neither side was able to push the close away from the open.

A doji by itself is neutral. What gives it meaning is where it sits. After a long advance it may show buyers fading; after a long decline it may show sellers fading; in a tight range it often means nothing at all. The dragonfly and gravestone variants carry a more directional reading because the wick shows a specific rejection.

Detection Criteria

Doji body at most 10% of range

The real body must be at most 10% of the high-to-low range.

Dragonfly: lower shadow of at least 60% of range

Body at most 10%, lower shadow at least 60% of the range, and an upper shadow of no more than 10%.

Gravestone: upper shadow of at least 60% of range

Body at most 10%, upper shadow at least 60% of the range, and a lower shadow of no more than 10%.

Long-legged: both shadows at least 25% of range

Body at most 10% with both shadows each at least 25% of the range.

Four-price: total range at most 0.1% of price

The entire candle must be compressed within one tenth of one percent of price.

Trend context

Lumina also runs a context check: the 12 candles before the pattern should show a move of at least 2% down for a dragonfly doji (up for a gravestone doji), or the pattern candle itself must set a fresh high or low for that window. Candles that appear in the wrong context are dropped. The plain, long-legged and four-price dojis only need a net move in either direction, so flat chop is rejected.

Dragonfly Doji Scenarios

Confirm: The next candle closes above the doji's high, consistent with the rejection of lower prices holding.

Invalidation: Price closes below the doji's low, negating the rejection.

Gravestone Doji Scenarios

Confirm: The next candle closes below the doji's low, consistent with the rejection of higher prices continuing.

Invalidation: Price closes above the doji's high, negating the rejection.

Technical analysis scenarios. Not investment advice.

Usage Tips

1. Context beats shape

A doji in the middle of a quiet range says little. A doji at a swing extreme, after a strong move, says more.

2. Wait for the next candle

Indecision resolves in one direction or the other, and the candle after the doji shows which.

3. Use higher timeframes

A weekly doji summarises seven days of trading; an hourly doji may be noise.

4. Note the wick direction

A doji with one dominant wick tells you more than a symmetrical one.

Cautions

  • 1A doji says the period ended near its open. It does not say which way price goes next.
  • 2Plain and long-legged dojis can appear at the start of a move as well as the end.
  • 3Dragonfly and gravestone dojis are strongest at extremes; elsewhere they are ordinary candles.
  • 4Four-price dojis usually reflect a data or liquidity issue rather than a market signal.

Resolved outcomes for detected patterns are disclosed on the Track Record page.

Doji Candlestick Types questions

What is a doji candle?

A candle where the open and close are almost the same price, so the real body is tiny or absent.

How does a dragonfly doji differ from a hammer?

A dragonfly has almost no body; a hammer has a small but visible one. Both have long lower wicks.

What does a gravestone doji look like?

A T shape upside down: a long upper wick, with the open, low and close clustered together at the bottom.

How small is the body of a doji in LuminaAnalysis?

At most 10% of the candle range. A four-price doji is far stricter, with the whole candle inside 0.1% of price.