Candlestick Pattern

Doji Candlestick Pattern

A doji forms when a session's opening and closing price are at nearly the same level, leaving a candle with almost no body and visible wicks on one or both sides. It signals market indecision — and, in the right context, a potential shift in momentum.

Candlestick Patterns · Updated May 2026

Key Takeaways

  • A doji forms when the open and close are at nearly the same level, producing a candle with a very small or absent body and visible wicks.
  • It signals market indecision — neither buyers nor sellers controlled the session — and carries the most weight after a sustained directional move at a key structural level.
  • The four main types are standard, long-legged, dragonfly, and gravestone; each reflects a different intra-session battle between buyers and sellers.
  • A doji requires confirmation from the following candle before acting — the doji alone does not indicate which direction the market will move next.

What Is a Doji Candlestick?

A doji forms when a session's opening and closing prices are at nearly the same level. The result is a candle with almost no body — a horizontal line or very narrow rectangle — with wicks extending above and below. The candle shape varies depending on where price travelled during the session before returning to the opening level, which is why the doji family includes several distinct sub-types.

The defining feature of a doji is not its wick length; it is the failure of either side to maintain control by the close. The session may have seen significant price movement in both directions, but by the time it closed, price returned to where it began. That equilibrium is the signal: the market paused. A doji does not tell you which direction price will move next — it tells you that the prior directional conviction has weakened, and that the session that follows will determine who takes control.

Body size threshold

Exact open-equals-close is uncommon in forex, particularly on timeframes below the daily. Most traders accept a body that is less than approximately 10–15% of the candle's total high-to-low range as a valid doji. A candle with a near-equal open and close communicates the same indecision as one with a perfectly identical open and close. The proportion matters more than the absolute body size: on a very narrow-range candle, even a tiny body may exceed 15% of the range, while on a wide-range candle, a 2-pip body is clearly insignificant.

DOJI CANDLESTICK — ANATOMY Upper shadow Open ≈ Close Lower shadow Total range Body < 15% of total wick range Wicks define the session's full price movement

Types of Doji Candlestick

Not all doji candles are the same. The body's location within the wick range — whether it sits at the center, top, or bottom — changes both the pattern's appearance and the bias it suggests. Traders distinguish four main types, each with a different intra-session narrative.

Standard Doji

The standard doji has a very small body at or near the midpoint of the session's range. Both the upper and lower wicks are roughly equal in length. The session opened, moved in both directions, and closed near where it began — neither side gained meaningful ground. Standard doji candles are directionally neutral: they show pure indecision without favouring buyers or sellers. Their trading significance depends entirely on where they appear and whether the following candle provides direction.

Long-Legged Doji

A long-legged doji is an amplified standard doji. The body remains very small at the midpoint, but both wicks are significantly longer than those of a standard doji. The session saw substantial volatility — buyers and sellers both extended their range considerably — before price returned to the opening level. Long-legged doji candles are common after major news events or high-volatility sessions. Like the standard doji, they are directionally neutral, but the extended wicks indicate the intensity of the session's contest.

Full Long-Legged Doji guide — identification, setup examples, and FAQ.

Dragonfly Doji

The dragonfly doji has its small body at the very top of the session's range. There is little or no upper wick; a long lower wick dominates the candle. Price fell significantly during the session — sellers pushed it lower — but buyers recovered all of that ground and closed near the session high. The long lower wick represents buyers defending lower prices and reclaiming the opening level. A dragonfly doji carries a mild bullish bias, which becomes meaningful when it forms at a tested support level after a downward move.

Full Dragonfly Doji guide — anatomy, identification checklist, and trade setup framework.

Gravestone Doji

The gravestone doji is the bearish counterpart to the dragonfly. The small body sits at the bottom of the session's range. A long upper wick dominates; little or no lower wick is present. During the session, price rallied significantly — buyers pushed toward higher levels — but sellers absorbed every gain and drove price back to the opening level by the close. The long upper wick reflects sellers rejecting higher prices. A gravestone doji carries a mild bearish bias, which becomes significant at a tested resistance level after a rally.

Full Gravestone Doji guide — anatomy, identification checklist, and trade setup framework.

DOJI TYPES Standard Neutral Long-Legged High volatility Dragonfly Bullish bias Gravestone Bearish bias
Feature Standard Long-Legged Dragonfly Gravestone
Body position Midpoint Midpoint Top of range Bottom of range
Upper wick Moderate Long None or very short Long
Lower wick Moderate Long Long None or very short
Signal bias Neutral Neutral Mildly bullish Mildly bearish
Best context Any structural level Post-volatility sessions At support At resistance
Confirmation needed? Yes Yes Yes Yes

How to Identify a Doji Pattern

The primary identification criterion is the body-to-wick ratio: the body should appear insignificant relative to the total candle range. A doji in a narrow-range session — where the entire high-to-low distance is very small — does not carry the same weight as one in a session that saw meaningful movement. A valid doji shows that price moved during the session but returned to the opening level. Both elements — the movement and the return — matter.

Identifying the specific sub-type requires checking where the body sits within the wick range. Body at midpoint with roughly equal wicks: standard doji. Body at midpoint with both wicks very long: long-legged doji. Body at the top with a long lower wick: dragonfly. Body at the bottom with a long upper wick: gravestone. This classification determines which direction the candle mildly favours — or whether it is neutral — and how to frame the confirmation requirement.

Doji Identification Criteria

  • Open and close are at or near the same level — body is less than ~15% of the candle's total wick-to-wick range
  • At least one visible wick extends from the body (both wicks for standard and long-legged; lower only for dragonfly; upper only for gravestone)
  • Total candle range is meaningful — price moved significantly within the session before returning to the opening level
  • Candle appears after a directional move or at a structural level with prior market history (not in an unstructured sideways range)

What is not a doji: A spinning top has a noticeably larger body than a doji with wicks on both sides. Both signal indecision, but a spinning top shows more directional bias within the session. A small inside bar in a low-volatility period reflects a narrow-range session, not genuine indecision — the distinction is that a doji shows price moving within the session and returning, while a flat inside bar shows almost no movement at all. If the body-to-range ratio is ambiguous, treat the candle as a spinning top rather than a doji to apply the correct confirmation standard.

Where the Doji Becomes Significant

A doji appearing in the middle of a structureless, ranging market carries no trading significance. The pattern describes the session's outcome — indecision — but without a trend to interrupt and a structural level to test, that indecision is not meaningful in the context of a trade decision. Doji candles form frequently in all markets; the vast majority are not trade signals.

The doji becomes significant when three conditions align: a sustained directional move preceded it, the candle forms at a key support or resistance level (prior swing high, prior swing low, or a clearly established zone), and the sub-type is appropriate for the location (a dragonfly at support, a gravestone at resistance). In that setting, the indecision the doji signals is relevant — momentum from the prior move has reached a level where the market has previously reversed, and the current session ended without either side breaking through.

Timeframe also matters. The H4 and daily charts assign more significance to individual candles than shorter intervals. A doji on the daily chart represents a full trading day's contested session; on the M5 chart, the same pattern can form from routine intra-session noise during a quiet hour. Most traders applying doji signals do so on H1 and above, with H4 and daily being the most common timeframes.

Confirmation and Invalidation

A doji's direction is only determined by what happens next. Unlike the engulfing pattern, which shows one side decisively overpowering the other in a single formation, the doji identifies the pause without indicating who will take control. The candle following the doji is the actual signal — not the doji itself.

Confirming the signal: a directional candle in the expected direction, closing beyond the doji's key reference point. For a dragonfly doji at support, the confirmation candle should close clearly above the doji's high. For a gravestone doji at resistance, the confirmation candle should close below the doji's low. For a standard or long-legged doji, the confirmation candle should close with a clear body in the expected direction — beyond the doji's midpoint at minimum. The larger and more decisive the confirmation candle, the stronger the signal.

Invalidating the setup: the premise fails if the confirmation candle is itself indecisive (another doji or small-body candle), or if price moves against the expected direction on the session immediately following. If a dragonfly forms at support and the next candle breaks and closes below the doji's wick low, the support level has been tested and failed — the rationale for the trade is gone. Entering on the doji's close rather than the confirmation candle's close is the most common and most costly error: it means acting before the market has provided its response to the indecision.

Example Trade Setups

The following examples illustrate how dragonfly and gravestone doji candles can frame trade setups. These are illustrative scenarios using common candlestick pattern principles — not trade recommendations. Entry, stop, and target parameters depend on market conditions, timeframe, and individual risk management rules.

Dragonfly Doji at H4 Support — Bullish Setup

EUR/USD has been declining for several sessions. Price approaches a prior swing low that held on two previous tests over the past month. On the approach, a dragonfly doji forms on the H4 chart: the candle opened and closed near the session high while price fell significantly intra-session before buyers recovered all the ground. The long lower wick touches the prior swing low but does not close below it. The following H4 candle opens and closes well above the doji, confirming the support holds. Entry triggers at the open of that confirmation candle.

Bullish Setup — Dragonfly Doji at Support
Signal Dragonfly doji at tested H4 support level after a multi-session decline
Entry Open of the candle after a bullish confirmation candle closes above the doji high
Stop Below the doji's lower wick low — below the support level the wick tested
Target Prior resistance level above; aim for at least 1:2 risk-to-reward
Invalidation Confirmation candle fails to close above the doji high; or price breaks below the wick low

For complete identification criteria and an in-depth trade setup framework, see our dedicated Dragonfly Doji guide.

Gravestone Doji at H4 Resistance — Bearish Setup

GBP/USD has been rallying toward a prior swing high — a level that rejected price twice over the preceding weeks. At that zone, a gravestone doji forms: price opened at the low of the session, pushed aggressively higher during the session, but sellers absorbed the entire advance and drove price back down to the opening level by the close. The long upper wick marks the rejection. The following H4 candle opens and closes clearly lower, confirming the resistance rejection.

Bearish Setup — Gravestone Doji at Resistance
Signal Gravestone doji at tested H4 resistance level after a multi-session rally
Entry Open of the candle after a bearish confirmation candle closes below the doji low
Stop Above the doji's upper wick high — above the resistance level the wick tested
Target Prior support level below; aim for at least 1:2 risk-to-reward
Invalidation Confirmation candle fails to close below the doji low; or price breaks above the wick high

For complete identification criteria and an in-depth trade setup framework, see our dedicated Gravestone Doji guide.

Common Mistakes

The most frequent error with doji patterns is treating the doji itself as a trade signal rather than as a signal that a trade might be forming. The doji indicates that momentum has paused; the confirmation candle indicates whether that pause becomes a reversal. Acting before confirmation means entering before the market has provided its answer to the indecision the doji represents. The mistakes below follow from this core misunderstanding.

⚠ Common Mistakes with Doji Candles
  • Entering at the doji close, before confirmation. The doji signals a pause, not a direction. Wait for the following candle to close in a clear direction before committing capital.
  • Trading a doji without structural context. A doji in the middle of a ranging market, away from any meaningful level, has no edge. The pattern only becomes actionable at support, resistance, or a key structural zone after a directional move.
  • Treating every small-body candle as a doji. A flat, narrow-range candle in a quiet session is not the same as a doji. A valid doji shows meaningful wick activity — price moved and returned.
  • Placing stops inside the wick range. The wick defines the session's full volatility. A stop placed inside the wick will be hit by normal intra-session moves; stops belong beyond the wick extreme.
  • Using doji signals on very short timeframes. On M1 and M5 charts, doji candles form constantly during quiet periods with no structural meaning. Apply this pattern on H1 and above.

Limitations of the Doji

The doji is one of the more commonly misapplied patterns in candlestick analysis. Its primary limitation is frequency: in any active market, sessions regularly end near their opening level. Most doji candles have no trading significance. Applying the pattern without a structural filter generates a high volume of setups with limited edge, which can erode confidence in a method that is genuinely useful when applied selectively.

The second limitation is its directional neutrality. Even the dragonfly and gravestone — which carry a mild directional bias from their wick structure — require confirmation. A dragonfly can form at support followed by a candle that breaks below the wick low. The candle pattern alone cannot prevent that outcome. Managing risk at the position level — sizing for the stop distance, not for an assumed reversal — is the only reliable control. The doji identifies where to look for a trade; confirmation identifies whether to take it; risk management determines how much to risk.

Frequently Asked Questions

What is the difference between a doji and a spinning top?

A doji has an extremely small body — the open and close are at nearly the same level, making the body negligible relative to the total wick range. A spinning top has a noticeably larger body with wicks on both sides. Both patterns signal indecision, but the spinning top shows more directional movement within the session, while the doji shows almost none — a near-complete stalemate between buyers and sellers by the close. In terms of trading application, both require confirmation from the following candle before acting, and the same context rules apply: structural level, trend context, and timeframe.

Is a doji always a reversal signal?

No. A doji signals indecision, not reversal. It can appear at the end of a trend as a potential turning point, in the middle of a trend as a brief consolidation before continuation, or in a sideways market where it carries no significance at all. Treating every doji as a reversal signal generates far more setups than any trader should be acting on. The reversal interpretation applies only when the doji appears after a sustained directional move and at a level with prior market history — and even then, only after a confirming candle closes in the expected direction.

Which doji type is considered most significant?

The dragonfly and gravestone doji are generally considered the most actionable types because they show a directional narrative within the session — one side extended, and the other fully recovered. The dragonfly shows buyers defending lower prices and closing the session near the high; the gravestone shows sellers absorbing a rally and closing near the low. These directional intra-session stories give more information than the neutral stalemate of a standard or long-legged doji. That said, all four types require the same confirmation standard before being used as trade triggers.

Do I need confirmation before trading a doji?

Yes — confirmation is not optional for doji patterns. The doji tells you that directional pressure has paused; it does not tell you which side will take over next. Entering on the close of the doji means committing capital before the market has provided its answer. Waiting for a confirming candle to close clearly in the expected direction — above the doji high for bullish setups, below the doji low for bearish ones — reduces the number of setups but removes most of the lowest-quality trades, particularly those where the doji forms during a continuation move rather than a reversal.

Does the doji pattern work on all timeframes?

Technically, doji candles can form on any timeframe. Practically, they carry much more weight on H1 and above. On M1 and M5 charts, doji candles form constantly during low-volume periods — they can reflect a handful of ticks settling near an opening price rather than a genuine session-level indecision. On H4 and daily charts, a single candle represents a full trading period and captures the activity of a broader range of participants. Most traders applying doji signals as trade setups do so on H4 and daily timeframes, where the pattern's significance is more consistently supported by context.

Where should I place my stop when trading a dragonfly or gravestone doji?

For a dragonfly doji setup (bullish): place the stop below the lower wick's low. The wick low marks where buyers defended the level — if price trades and closes through that point, the support that gave the doji its context has failed, and the rationale for the trade is gone. For a gravestone doji setup (bearish): place the stop above the upper wick's high, above the resistance the sellers rejected. In both cases, the stop belongs outside the wick range, not inside it. The wick defines the session's volatility range; a stop inside it will regularly be hit on routine retracements before the trade has had a chance to develop.

Build Confidence on a Free Demo Account

Build confidence with a free FXGlory demo account. Test strategies, learn platform tools, and practice risk management without using real funds.

Open a Free Demo Account