What is a doji in trading?
A doji is a candlestick whose open and close are practically the same, so its body barely exists. It shows indecision: buyers and sellers ended the period in a tie. After a strong move it can warn that momentum is slowing, but on its own it doesn’t indicate direction.
How to recognize a doji
The key is the body: in a doji, the open and close are so close that the body looks like a horizontal line. The shadows can be short or long. There is no universal rule for how small the body must be; in practice, a candle counts as a doji when its body is very small compared with its total range.
The best-known variants are:
- Long-legged doji: long shadows on both sides. There was a lot of movement and, in the end, nobody won.
- Dragonfly doji: a long lower shadow and almost nothing above; the open and close are near the high. Sellers pushed down and buyers brought the price back.
- Gravestone doji: the opposite: a long upper shadow and a close near the low. Buyers tried to push higher and were rejected.
An example with numbers
An example stock opens at $42.15, rises to $43.00, drops to $41.30, and closes at $42.17. The body is just $0.02, while the day’s range (high minus low) is $1.70. It’s a long-legged doji: price moved across a $1.70 range and ended almost where it started.
If this doji appears after five days of gains with long-bodied green candles, the reading is that buyers could no longer set the pace. That’s a warning, not a sell signal.
How it’s used in practice
A doji gains value from its context:
- After a strong trend: it warns that momentum is fading. Many traders wait for the next candle: if it closes against the trend, the warning is confirmed.
- At an important level: a doji right at resistance or support shows the market is hesitating at that price.
- In a sideways range: it adds almost no information, because indecision is already the norm.
It’s also part of three-candle patterns such as the morning star and the evening star, where the middle candle is often a doji or a small-bodied candle.
How to plan around a doji
Since a doji has no direction, its extremes become useful reference points. Going back to the example, from $41.30 to $43.00:
- A later close above $43.00 indicates the indecision was resolved to the upside.
- A close below $41.30 indicates it was resolved to the downside.
- As long as price stays within that range, the doubt continues.
Some traders wait for that resolution before doing anything and use the opposite end of the doji as a reference for their stop loss. What matters is deciding beforehand which scenario you expect and what would change your mind.
The limitation to remember
A doji describes a tie, and a tie can be broken either way. Treating it as an automatic reversal signal is the most common mistake: in strong trends, dojis appear that only mark a pause before the move continues. That’s why it’s combined with confirmation from the next candle, with the level where it appears, and with a trading plan that defines in advance what you would do in each case.
Ben · the MentorA doji is the market saying “I don’t know.” Don’t turn its doubt into your certainty: wait for the next candle to speak.
Learn it in depth in lesson 2.1: Chart types and Japanese candlesticks
In the course you practice it with real charts, pop quizzes and an exam that tells you whether you really got it. Start free with lesson 1.1; no card required.
Frequently asked questions
Is a doji bullish or bearish?
Neither, on its own. It shows indecision. Its meaning depends on context: after a strong rally it can warn of exhaustion, and after a strong decline it can warn that selling is losing steam. The next candle usually makes clear which way it resolves.
What is the difference between a dragonfly doji and a hammer?
They look alike because both have a long lower shadow. The difference is the body: in a dragonfly doji the open and close are practically the same, while a hammer has a small but visible body at the top of the candle.
How small does the body have to be for a doji?
There is no official measure. In practice, a candle counts as a doji when its body is very small compared with its total range. Some platforms use a percentage of the range to detect it automatically, and that percentage varies from platform to platform.
Related terms
Educational content from The Trading Path. Not a recommendation to buy or sell any asset.
