Blogs
Doji Candlestick: What It Means and How to Trade It
Nick Garidzhuk
Doji Candlestick: What It Means and How to Trade It
A doji is a candle that opens and closes at almost the same price. Whatever happened during that session, buyers and sellers finished level. It is the clearest picture of indecision a single candle can give you.
It is also the most over-read candle in trading. A doji on its own tells you almost nothing actionable. What matters is where it appears, what came before it, and what the next candle does. Traders who skip that context end up taking reversal signals that were never signals.
This covers what a doji actually is, the five types and how they differ, why location decides everything, how traders use them, and how to find out whether they mean anything on the market you trade.
Table of Contents
Key Takeaways
Point | Details |
|---|---|
A doji means indecision, not reversal | Open and close are nearly equal. That is a balance of power, not a direction. |
Location does the work | A doji after a long advance is meaningful. The same candle inside a sideways range is noise. |
The wicks tell you which type | Dragonfly, gravestone and long-legged carry different implications despite the same flat body. |
It needs confirmation | The candle after the doji is what turns indecision into a signal. Acting on the doji alone is guessing. |
Frequency is the trap | Dojis appear constantly, especially on low timeframes. Most of them mean nothing at all. |
What is a doji candlestick?
A doji is a candlestick where the open and close are at or very near the same price, producing a very small or nonexistent body with wicks extending above, below, or both. It signals that neither buyers nor sellers finished the session in control.
The word comes from Japanese candlestick charting, where it means roughly "the same thing," referring to the matching open and close.
In practice a perfectly equal open and close is rare, so most traders allow a tolerance: a body under about 5% of the candle's total range usually qualifies. That threshold is a convention, not a law, and where you set it changes how many dojis you find. That matters more than it sounds, and it comes up again later.
The five types of doji
Type | Shape | What it suggests |
|---|---|---|
Standard doji | Small body, wicks both sides, roughly even | Plain indecision |
Long-legged doji | Long wicks both directions | Violent disagreement, high volatility, no resolution |
Dragonfly doji | Long lower wick, little or no upper wick | Sellers pushed down and were rejected. Potentially bullish at a low. |
Gravestone doji | Long upper wick, little or no lower wick | Buyers pushed up and were rejected. Potentially bearish at a high. |
Four-price doji | Open, high, low and close all equal. A flat line. | Almost no trading. Usually illiquidity, not a signal. |
The dragonfly and gravestone are the two that carry directional information, because the long wick shows an attempt that failed. A dragonfly at the bottom of a decline says sellers tried to push lower and could not hold it. A gravestone at the top of an advance says the opposite.
The four-price doji is worth ignoring. It generally means the instrument barely traded, which is a liquidity fact rather than a market opinion.
Why location decides the meaning
This is the part most explanations underweight, and it is the whole game.
A doji is indecision. Indecision only carries information when there was previously decision. After a strong sustained advance, a doji says the buying that drove the move has met equal selling for the first time. That is a genuine change in the balance, and it is worth attention.
The same candle in the middle of a choppy sideways range says nothing. There was no conviction to lose. You are looking at noise that happens to be shaped like a signal.
After an extended uptrend, especially a gravestone, buying pressure may be exhausting.
After an extended downtrend, especially a dragonfly, selling pressure may be exhausting.
At a known support or resistance level, it shows the level is being contested rather than passed through.
Inside a range, it is almost always meaningless.
How traders use a doji
Most treat a doji as an alert rather than an entry. It marks a spot worth watching, and the decision comes from what follows.
As a warning on an open position. A gravestone doji after a long run in a position you hold is a reason to tighten a stop, not necessarily to exit. The move has stopped being one-sided.
As a setup requiring confirmation. Wait for the next candle. A dragonfly at a low followed by a strong bullish close is a far better proposition than the dragonfly alone.
As a level marker. The doji's high and low become reference points. A break beyond either can define entry and stop.
Whatever the approach, the doji does not tell you size. That comes from your stop distance and account, covered in position sizing.
Confirmation, and why it matters
A doji is a question, and the following candle is the answer. Trading before the answer arrives is the single most common way doji trades go wrong.
Consider a gravestone doji after a strong advance. Two things can happen next. A decisive bearish candle closing below the doji's low suggests sellers took control, and the reversal reading was right. Or a strong bullish candle closing above the doji's high suggests the pause was just profit-taking and the trend is intact.
Both are common. The doji genuinely did not know which was coming, which is precisely what "indecision" means. Traders who enter on the doji itself are betting on a coin flip and calling it analysis.
The cost of waiting is a slightly worse entry price. The benefit is skipping a large share of the failures. That trade is usually worth making, though whether it is worth it for your strategy is something you can measure rather than assume.
Common mistakes
Treating every doji as a reversal. It signals balance. Balance often resolves in the direction the trend was already going.
Ignoring what came before. Without a prior trend there is no indecision worth noting.
Trading them on one-minute charts. On low timeframes, near-equal opens and closes happen constantly through pure randomness.
Skipping confirmation. The next candle is the information. The doji is only the question.
Confusing a dragonfly with a hammer. A hammer has a small real body; a dragonfly's body is essentially nonexistent. Related, not identical.
Acting on a four-price doji. That is an illiquid instrument, not a market view.
Does the doji actually work?
It depends entirely on definitions, which is unsatisfying but true.
"Doji" is not one thing until you specify it. How small must the body be relative to range? How long must the prior trend have run? Does confirmation require a close beyond the doji's extreme, or just a directional candle? Change any of those and you get a different pattern with different results.
Published statistics describe whatever thresholds that author chose, on whatever market and period they tested. They are a starting hypothesis, not a number you can rely on.
There is also a base-rate problem specific to this candle. Dojis are extremely common. Any signal that fires constantly will look like it "predicted" plenty of reversals simply because reversals happen and the signal was always present. Judging it properly means comparing performance against what random entries would have produced over the same period, which most casual testing never does.
The honest approach is to define your version precisely, test it over history with realistic costs, and hold back data the rules never touched. Then you know whether your doji means anything, rather than whether someone else's did.
Where Nvestiq fits
Turning "a doji at the end of a trend" into something testable normally means writing code, which is a different skill from reading a chart, and it is where most traders stop.
Nvestiq lets you write the definition in plain English. "Enter long when a candle's body is under 5% of its range with a lower wick at least twice the body, after price has fallen at least 8% over ten bars, confirmed by the next candle closing above the doji's high, stop below the doji's low." That compiles straight into executable logic.
The compilation is deterministic rather than generated by a language model, so the same description always produces the same rules, and what you back test is what deploys. You get a real answer about your thresholds on your instruments with costs applied.
Resist tuning those thresholds until the equity curve looks good, which is how a pattern gets fitted to history instead of tested. Fix the rules first, hold back data, judge on risk-adjusted terms.
Nvestiq covers equities, forex and crypto, plus portfolio automation and event-driven entries. Options and futures are not supported.
Frequently Asked Questions
What is a doji candlestick? A candle whose open and close are at or very near the same price, leaving a very small or absent body with wicks above, below or both. It shows that buyers and sellers ended the session evenly matched, which is indecision rather than direction.
Is a doji bullish or bearish? Neither by itself. It is neutral, and its implication comes from context. A dragonfly doji after a decline leans bullish; a gravestone doji after an advance leans bearish. The same candle inside a sideways range means essentially nothing.
What is the difference between a dragonfly and a gravestone doji? A dragonfly has a long lower wick and almost no upper wick, meaning sellers pushed price down and were rejected. A gravestone is the mirror: a long upper wick and almost no lower wick, meaning buyers pushed up and were rejected.
How reliable is a doji candlestick pattern? On its own, not very. It is common, it is neutral, and without a prior trend it carries no information. Reliability improves substantially when you require a preceding trend, a specific doji type, and confirmation from the following candle.
What is the difference between a doji and a hammer? Body size. A hammer has a small but visible real body near the top of its range with a long lower wick. A dragonfly doji has essentially no body, with open and close at the same level. They suggest similar things, but the doji represents a more complete standoff.
Should I trade on a doji alone? Generally no. Most traders treat it as an alert and wait for the next candle to confirm direction. Entering on the doji itself means acting on a candle that by definition did not resolve, and accepting a materially higher failure rate for a slightly better price.
How small does the body need to be to count as a doji? There is no official threshold. A common convention is a real body under about 5% of the candle's high-to-low range. Because the cutoff is a choice rather than a rule, two traders scanning the same chart can legitimately disagree about whether a candle qualifies.
