Candlestick patterns

Doji

A candle that opens and closes at nearly the same price — the market's shrug of indecision.

Works in most conditionsEngine-computed on a fixed sample series
Doji — a stylized illustration of the pattern (green = close above open, red = close below, hollow = bearish body).

What it is

A Doji is a single candlestick in which the open and the close finish at almost exactly the same price, leaving little or no real body — just a thin horizontal line with wicks, or shadows, extending above and below. It is the market's visual shrug: after a full session of buyers and sellers pushing back and forth, price ends up essentially where it began. Because neither side could claim the close, the Doji represents a moment of balance and indecision rather than a directional statement. For a beginner, the Doji answers the question, did today's fight produce a winner, or did it end in a draw? A draw, especially one that appears after a strong run, can be the first hint that the prevailing momentum is stalling. It is one of the most common and most misunderstood candlestick patterns.

How it forms

A Doji forms whenever the closing price returns to the opening price by the end of the period, regardless of how far price travelled in between. The body is therefore negligibly small, and the character of the Doji comes from its shadows: a standard Doji has modest wicks on both sides, a long-legged Doji has long wicks in both directions, a gravestone Doji has a long upper wick with the body at the low, and a dragonfly Doji has a long lower wick with the body at the high. There is no calculation and no parameter — it is a pure price-action pattern read directly from the open, high, low, and close of one candle. In practice a body that is a tiny fraction of the total range is usually accepted as a Doji even if the open and close differ by a hair. What defines it is the near-equality of open and close, not perfect equality.

Reading it, step by step

On its own a Doji is neutral — it signals equilibrium, not direction, so the first rule is that its meaning comes entirely from context. A Doji appearing after an extended uptrend warns that buyers, who had been in control, could not push the close higher, hinting that momentum is stalling and a reversal or pause may be near. The same shape after a sharp downtrend warns that sellers have lost their grip. The shadows add nuance: long wicks on both sides show a violent but ultimately indecisive session, while tiny wicks show a genuinely quiet, coiled market. A Doji sitting in the middle of a sideways range, by contrast, is just noise and carries no signal. The key discipline is to never trade the Doji itself but to wait for the next candle to break the Doji's high or low, which reveals which side finally took control.

Best timeframes

  • Scalping1m – 5mmostly noise
  • Day trading5m – 15m
  • Swing1h – dailymore reliable
  • PositionDaily – weekly

A doji matters only after a clear trend and reads best on higher timeframes — lower ones print them on almost every bar.

Doji vs similar candles

DojiSpinning TopLong-Legged Doji
Real bodyNoneSmallNone
MessageIndecisionIndecisionSharp indecision
Needs trend contextYesYesYes

Common price-action setups

How the signal typically plays out on the chart.

Bottom reversal doji

A doji after a downtrend signals sellers have stalled — go long only once the next candle breaks the doji's high, with a stop below its low.

Buy the high
Reversal higher
Top reversal doji

A doji after an uptrend warns buyers are exhausted — sell only once the next candle breaks the doji's low, with a stop above its high.

Sell the low
Reversal lower

Best timeframes and settings

The Doji has no numerical settings; its reliability instead scales with the timeframe and the liquidity of the instrument. On higher timeframes such as daily and weekly charts, a Doji represents a full session or week of failed resolution and carries real weight, especially at the end of a strong move. On very short intraday charts Dojis appear constantly and most are meaningless flicker, so they need much stronger context to matter. In thin, illiquid names a Doji can form on nearly every bar simply because so little trades, which drains it of information. The practical guidance is to favour Dojis on liquid instruments and meaningful timeframes, and to always insist on a clear preceding trend. There is nothing to tune, so the discipline is entirely in selecting which Dojis are worth your attention and ignoring the rest.

When and where to use it

Use the Doji as a caution flag at the potential exhaustion of a trend, which is where it carries the most information across equities, futures, and FX. It is most valuable at the end of a tight, well-defined move, where the sudden appearance of indecision genuinely marks a change in the balance of pressure. It is far less useful inside a choppy range, where indecision is the default state and a Doji tells you nothing new. Avoid acting on a lone Doji with no trend behind it, and be especially wary in illiquid markets where the pattern forms mechanically. The Doji is a context-dependent warning, not a trigger, so its proper use is to raise your alertness and prepare a conditional trade around the following candle rather than to act immediately on the Doji bar itself.

Strategies that use it

The first strategy is a confirmed trend-exhaustion reversal: after a strong uptrend prints a Doji, place a sell trigger below the Doji's low and enter short only if the next candle breaks that low, with a stop above the Doji's high — and the mirror after a downtrend. The second is a breakout-of-indecision play on a long-legged Doji, where the wide range shows a coiled market; you set orders above and below the Doji and take whichever side breaks first, letting the resolution pick your direction. The third uses the Doji as an exit or stop-tightening cue for an existing position: when a Doji appears after your trend trade has run, the stalling momentum is a reason to lock in gains or trail your stop closer. In every case the Doji's own high and low provide clean, tight levels for triggers and stops, which is a large part of its practical value.

Combining it with other indicators

Because a Doji is pure indecision, it gains enormous value when it lands at a meaningful level or coincides with a momentum warning. A Doji forming exactly at a support or resistance level, a pivot, or a Fibonacci retracement is far more significant than one in open space, since the location gives the indecision a reason to resolve into a reversal. Overbought or oversold readings from RSI or the stochastic at the moment a Doji appears strengthen the exhaustion read. Volume adds another dimension: a Doji on unusually high volume after a trend suggests a genuine battle and transfer of control, while one on light volume is easier to dismiss. Bollinger Bands can help too, as a Doji tagging the outer band after a stretched move often marks a snap-back point. The theme is confluence — the Doji flags the pause, and the level and momentum tools tell you whether that pause is likely to become a turn.

Where it fails

The Doji's great weakness is its sheer frequency: it appears constantly, and the overwhelming majority mean nothing, so traders who react to every one bleed out on noise. Without a clear preceding trend and a confirming next candle, trading a lone Doji is essentially guesswork, and in quiet, illiquid names the pattern forms on almost every bar. Beginners also over-read the dramatic long-legged and gravestone shapes, calling tops and bottoms prematurely before any confirmation arrives. The fixes are strict: require a well-defined trend into the Doji, demand that the following candle break the Doji's high or low before acting, favour liquid instruments and higher timeframes, and look for confluence with a level or a momentum extreme. A Doji only ever signals a pause; the direction that follows must always be confirmed, never assumed, and one Doji in isolation is not a trade.

A worked example

Picture a stock that has rallied hard for two weeks, climbing from 90 to 100 in a tight, confident trend. On the next session it opens at 100.02, spikes to 101, dips to 99, and closes at 100.00 — open and close within pennies, a textbook Doji right at the top of the run. On its own this is only a caution flag, so instead of shorting immediately you place a sell-stop just below the Doji's low of 99 and note the Doji's high of 101 as your stop level. The following day price opens weak and trades down through 99, triggering your short; you enter with a stop above 101, risking about two points. Because the Doji appeared after a strong, well-defined uptrend and at a level where RSI was already overbought, the exhaustion read had real backing, and price rolls over into a multi-day pullback toward 95, where you cover for a solid multiple of your risk. Had the same Doji appeared in the middle of a sideways range, you would have ignored it entirely.

Common mistakes

  • Trading a lone doji with no preceding trend and no confirming candle.
  • Forgetting that dojis appear constantly and most carry no information.
  • Reading a doji in a tight range or illiquid name as a reversal — it is just noise there.
  • Skipping the confirmation break of the doji's high or low before entering.
  • Assuming direction from the doji itself — it signals balance, not a bias.