Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure
Education12 min read

Doji candlestick pattern: types, meaning and how to trade a doji candle

Learn the doji candle: dragonfly, gravestone and long-legged doji meaning, when a doji matters, and step-by-step forex, gold and crypto trade examples.

EUR/USD daily chart showing a dragonfly doji at support between 1.1520 and 1.1540 followed by a bullish confirmation candle (example prices)
On this page
  1. What is a doji candlestick?
  2. How small does the body need to be?
  3. What a doji means
  4. Types of doji candles
  5. Standard doji
  6. Long-legged doji
  7. Dragonfly doji
  8. Gravestone doji
  9. Four-price doji
  10. Dragonfly vs gravestone doji
  11. When does a doji matter?
  12. How to trade the doji candle: step by step
  13. Doji strategy 1: dragonfly doji at support
  14. Example: EUR/USD daily dragonfly doji
  15. Doji strategy 2: gravestone doji at resistance
  16. Example: gold H4 gravestone doji
  17. Doji strategy 3: doji pullback in a trend
  18. Example: Bitcoin H4 doji pullback
  19. Doji candles in multi-candle patterns
  20. Doji vs similar candles
  21. Combining doji candles with indicators
  22. Common doji trading mistakes
  23. Best timeframes for doji candles
  24. Practise doji candles with Xellion

The doji candle is one of the first candlestick patterns most traders learn, and one of the most misunderstood. A doji forms when a candle opens and closes at almost the same price. The result is a candle with a tiny body (or no body at all) and wicks on one or both sides.

A doji tells you one thing clearly: buyers and sellers ended the period in balance. It does not, on its own, tell you which way price will go next. That is why so many traders lose money trading every doji they see. This guide explains the main types of doji (standard, long-legged, dragonfly, gravestone and four-price), what each one suggests, when a doji is worth paying attention to, and how traders build simple doji trading setups on forex pairs, gold and crypto. All prices in this article are example prices.

What is a doji candlestick?

A doji candlestick is a candle where the open and close are equal or very close. The name comes from a Japanese word meaning something like "blunder" or "mistake", referring to how rarely the open and close match exactly.

Part of the candleIn a doji
Real bodyVery small or a thin horizontal line
Upper wickCan be short, long or absent
Lower wickCan be short, long or absent
ColourNot important; a doji can close slightly up or slightly down

How small does the body need to be?

There is no official rule. A common practical guide is that the body should be no more than about 5–10% of the candle's full range (high to low). For example, if an H4 candle on EUR/USD has a range of 40 pips, a body of 2–4 pips or less would usually count as a doji. Use your judgement and compare with the candles around it: a doji should look clearly different from normal candles.

What a doji means

During a doji candle, price moved away from the open, but by the close it had come back. Buyers pushed, sellers pushed, and neither won. This indecision matters most in two situations:

  • After a strong move, a doji shows that the side in control has paused. Momentum is fading.
  • At a key level, a doji shows the market is testing whether that level will hold.

In the middle of a quiet range, a doji usually means very little.

Types of doji candles

TypeShapeWhat it suggests
Standard (neutral) dojiSmall body, short wicks on both sidesSimple indecision
Long-legged dojiSmall body, long wicks on both sidesStrong indecision after a big tug of war
Dragonfly dojiOpen and close at or near the high, long lower wickSellers pushed down but buyers rejected the lows; potentially bullish at support
Gravestone dojiOpen and close at or near the low, long upper wickBuyers pushed up but sellers rejected the highs; potentially bearish at resistance
Four-price dojiOpen, high, low and close almost identicalNo movement at all; usually very low liquidity

Standard doji

A small cross shape with short wicks. It shows a pause. On its own it is the weakest type of doji; its value depends almost completely on where it appears.

Long-legged doji

The wicks are long on both sides, so price travelled a long way in both directions and still closed near the open. This shows a big battle and real uncertainty. Long-legged dojis often appear around major news, such as US CPI or non-farm payrolls (often around 7:00 pm IST in winter), and at turning points after long trends.

Dragonfly doji

The dragonfly doji looks like a "T". The open, close and high are at the top, with a long lower wick. Sellers drove price down during the period, but buyers pushed it all the way back. At support, after a decline, a dragonfly doji is a potential bullish reversal signal. It is closely related to the hammer candle; read our hammer candlestick pattern guide for the difference.

Gravestone doji

The gravestone doji is an upside-down "T". The open, close and low are at the bottom, with a long upper wick. Buyers drove price up, but sellers pushed it all the way back down. At resistance, after a rally, a gravestone doji is a potential bearish reversal signal. It is closely related to the shooting star.

Four-price doji

A flat line where open, high, low and close are the same. On forex and gold charts this is rare and usually appears on very low timeframes in very quiet conditions, or when a market is closed or illiquid. It is not a useful trading signal.

Dragonfly vs gravestone doji

PointDragonfly dojiGravestone doji
Shape"T"Upside-down "T"
Long wickBelowAbove
Open and closeAt or near the highAt or near the low
Best locationAt support, after a declineAt resistance, after a rally
SuggestsBuyers rejected lower pricesSellers rejected higher prices
ConfirmationNext candle closes higherNext candle closes lower
Common stop-lossBelow the doji lowAbove the doji high

When does a doji matter?

A doji is a warning, not a trigger. These factors make a doji more meaningful:

FactorStronger doji signalWeaker doji signal
LocationAt a clear support/resistance level, supply or demand zoneIn the middle of a range
Preceding moveAfter a strong, extended trend or a sharp move into a levelAfter sideways chop
WickLong rejection wick pointing into the level (dragonfly at support, gravestone at resistance)Short wicks on both sides
TimeframeDaily and H4M15 and lower
ConfirmationNext candle closes in the expected directionNo follow-through
NewsForms in normal conditionsForms on a news spike that may reverse

Before trading any doji, mark your levels. Our guides to support and resistance trading and supply and demand zones show how.

How to trade the doji candle: step by step

  1. Mark key levels on the daily and H4 charts.
  2. Wait for price to reach a level after a clear move.
  3. Identify the doji type. Dragonfly at support and gravestone at resistance are the most useful.
  4. Wait for confirmation. The candle after the doji should close in the direction you expect: above the doji high for a bullish setup, below the doji low for a bearish setup.
  5. Enter on the close of the confirmation candle, or with a stop order beyond the doji's high or low.
  6. Place the stop-loss beyond the doji's wick.
  7. Set a target at the next level, with a reward-to-risk of at least about 1.5:1 to 2:1.

The confirmation step is the most important difference between trading dojis well and trading them badly. A doji says "pause". The next candle tells you who won.

Doji strategy 1: dragonfly doji at support

Example: EUR/USD daily dragonfly doji

All prices are example prices.

  • EUR/USD has fallen for six days into a daily support zone around 1.1520–1.1540, which held twice before.
  • The next daily candle opens at 1.1561, drops to 1.1522, and closes at 1.1559. Body: 2 pips. Range: 41 pips. Long lower wick into support. This is a dragonfly doji.
  • The following day closes at 1.1593, above the doji high of 1.1566. This is the confirmation.
ItemLevelNote
Entry1.1593Close of the confirmation candle
Stop-loss1.1512Below the doji low and the support zone
Distance81 pips1.1593 – 1.1512
Target 11.1680Previous daily swing high
Target 21.1745Next resistance

The stop is wide because this is a daily chart. With a $1,000 account risking 1% ($10), the position size would be about 0.01 lot ($10 ÷ 81 pips ≈ $0.12 per pip; 0.01 lot of EUR/USD is about $0.10 per pip). See our lot size and pip calculator guide.

Doji strategy 2: gravestone doji at resistance

Example: gold H4 gravestone doji

All prices are example prices.

  • Gold (XAU/USD) rallies strongly into an H4 resistance zone at $4,110–$4,120.
  • An H4 candle opens at $4,102, spikes to $4,124, and closes at $4,101. Long upper wick, tiny body near the low. This is a gravestone doji.
  • The next H4 candle closes at $4,088, below the doji low of $4,098.
ItemLevelNote
Entry$4,088Close of the confirmation candle
Stop-loss$4,128Above the doji high and the zone
Distance$40 per ounce
Target$4,040Previous H4 swing low

On most MT5 accounts 1 lot of gold is 100 ounces, so 0.01 lot moves about $1 per $1 move in gold. Check the contract specification in your platform.

Doji strategy 3: doji pullback in a trend

In an established trend, a doji during a pullback can mark the moment the pullback runs out of steam.

  1. Confirm the trend on H4 or daily: higher highs and higher lows for an uptrend. Our guide to market structure, BOS and CHoCH explains how.
  2. Wait for price to pull back into support, a previous breakout level, or a moving average such as the 20 or 50 EMA. See moving average trading.
  3. A doji forms at that level.
  4. Enter when the next candle closes back in the trend direction.

Example: Bitcoin H4 doji pullback

All prices are example prices.

  • BTC/USD is in an H4 uptrend, above its 50-period moving average.
  • Price pulls back to $94,300, near the moving average and a previous breakout level.
  • An H4 long-legged doji forms: open $94,520, low $93,800, high $95,200, close $94,560.
  • The next candle closes at $95,480, above the doji high.
  • Entry $95,480, stop-loss $93,600 (below the doji low), target $98,900 (previous high).

Crypto moves are large, so the stop in price terms is wide and position size needs to be small. Read our cryptocurrency trading guide for crypto position sizing.

Doji candles in multi-candle patterns

A doji is often part of a larger pattern:

PatternStructureMeaning
Morning doji starBig bearish candle, doji, big bullish candleBullish reversal; see our morning star candlestick pattern guide
Evening doji starBig bullish candle, doji, big bearish candleBearish reversal
Doji after a big candle (harami cross)Doji body inside the previous large candle's bodyMomentum stalling; possible reversal
Double dojiTwo dojis in a rowStrong indecision; often followed by a breakout

Two dojis in a row at a level often lead to a sharp move once one side wins. Some traders place a buy stop above and a sell stop below the two dojis and cancel the order that does not trigger. See our breakout trading strategy for how to manage breakouts.

Doji vs similar candles

CandleBodyWicksKey difference
DojiAlmost noneAnyOpen ≈ close
Spinning topSmall but visibleBoth sides, similar lengthAlso indecision, but the body is clearly larger than a doji's
HammerSmall, at the topLong lower wickHas a visible body; a dragonfly doji has almost none
Shooting starSmall, at the bottomLong upper wickHas a visible body; a gravestone doji has almost none
MarubozuLargeLittle or noneThe opposite of a doji: full conviction

In practice, a dragonfly doji and a hammer at support mean nearly the same thing, and so do a gravestone doji and a shooting star at resistance. Do not worry too much about the exact label. Focus on the location and the rejection wick. All of these candles are covered in our candlestick patterns guide.

Combining doji candles with indicators

Some traders add one indicator filter to cut weak signals:

  • RSI: a dragonfly doji at support while RSI is oversold, or with bullish RSI divergence, adds weight.
  • Bollinger Bands: a doji outside the lower or upper band can signal a stretched move. See our Bollinger Bands guide.
  • Moving averages: take only bullish doji setups above the 200-period moving average and bearish ones below it.

Most standard indicators are built into MT5. For WebTrader and the Xellion app, check the indicator list.

Common doji trading mistakes

MistakeWhat happensBetter approach
Trading every dojiMany doji candles mean nothing; repeated lossesTrade only dojis at key levels after a clear move
Entering on the doji itselfPrice continues in the original directionWait for a confirmation candle
Reading a doji as bullish or bearish on its ownWrong-way tradesA doji is neutral; context and the next candle decide
Stop too tightStopped out by the next wickPlace the stop beyond the doji's wick
Using M1–M5 chartsDojis everywhere; signals become noiseUse H1 and higher, best on H4 and daily
Trading news dojisNext candle reverses sharplyCheck the economic calendar first

Best timeframes for doji candles

TimeframeNotes
WeeklyRare but meaningful; a weekly doji after a long trend is a major warning
DailyBest balance of reliability and frequency for most traders
H4Good for swing trades and gold
H1Use only at clear levels
M15 and lowerToo frequent; use only as confirmation inside higher timeframe zones

Practise doji candles with Xellion

The fastest way to learn doji candles is to study them at real levels. Open the Xellion WebTrader in your browser, with no download, or use the Xellion app on iOS or Android, or MetaTrader 5. Start with a free demo account. Mark support and resistance on the daily charts of EUR/USD, gold and Bitcoin, scroll back, and note every dragonfly and gravestone doji at those levels and what the next candle did.

When you are ready to trade live, UPI deposits are instant from $50, bank transfers start from $100 (within 1 business day), and crypto deposits in USDT, BTC or ETH start from $10. There are no currency conversion fees. The Standard account starts at $50 with spreads from 0.9 and no commission; Raw ($250, spreads from 0.1) and Zero ($750, spreads from 0.0) accounts are also available.

What is a doji candle?

A doji candle is a candlestick where the open and close are equal or almost equal, leaving a very small body. It shows indecision: buyers and sellers ended the period in balance.

Is a doji bullish or bearish?

On its own, a doji is neutral. Its meaning comes from location and the next candle. A dragonfly doji at support can be bullish; a gravestone doji at resistance can be bearish.

What is a dragonfly doji?

A dragonfly doji has its open and close at or near the high, with a long lower wick. It shows sellers pushed price down but buyers pushed it back up. At support after a decline, it is a potential bullish reversal signal.

What is a gravestone doji?

A gravestone doji has its open and close at or near the low, with a long upper wick. It shows buyers pushed price up but sellers pushed it back down. At resistance after a rally, it is a potential bearish reversal signal.

What is a long-legged doji?

A long-legged doji has a tiny body and long wicks on both sides. It shows strong indecision after a big move in both directions, often around news or at turning points.

How do you trade a doji candle?

Wait for a doji at a key level after a clear move, then wait for the next candle to confirm the direction. Enter on the confirmation, place the stop beyond the doji's wick and target the next level.

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

Both show indecision. A doji has almost no body, while a spinning top has a small but clearly visible body with wicks on both sides.

This article is general information and education, not investment advice. CFDs are complex instruments and carry a high risk of losing money rapidly due to leverage.

Ready to put it into practice?
Open an account in minutes, or practise on a free demo first.

Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money. Blog articles are general information and education, not investment advice. Risk disclosure