Guide · Candlestick patterns
What is a doji candlestick?
The short answer
A doji is a candlestick whose open and close finish nearly equal, so the real body shrinks to a hairline. It records a full period in which buyers and sellers both pushed, both were turned back, and the session closed almost exactly where it opened: maximum disagreement, zero net progress. A doji is neither bullish nor bearish on its own. What it means depends entirely on where in a trend it prints and on the candle that comes next. It is a picture of indecision, not a signal, and reading it as a signal is the classic beginner mistake.
Most articles teach the doji as a shape to memorise: a cross, a plus sign, a tombstone standing over the chart. That framing is exactly why the pattern is so widely misused. A doji is not a shape, it is an auction statement. An entire period of trading, with real money attacking in both directions, produced no net movement at all. Whether that statement matters, and which way it leans, is decided by position and confirmed by the following candle, never by the doji by itself. If candlesticks themselves are new, our guide to technical analysis for beginners covers how a bar is built from open, high, low and close; this page assumes that and goes deep on the one candle that confuses more new traders than any other. We cover the mechanics precisely, the four variants and what each records, the positional reading professionals actually use, the confirmation and stop arithmetic, the role of volume, and, because you deserve it stated plainly, what careful academic testing found when candlestick patterns are traded on their own.
The auction inside the candle
Every candlestick is a compression. Thousands of trades across a period are boiled down to four numbers: the open, the high, the low and the close. The real body, the distance from open to close, is the summary verdict; it measures how far one side managed to drag price away from where the period began. The wicks, sometimes called shadows, are the record of failed attempts: prices that traded during the period but could not hold into the close. A long green body says buyers won the period and kept their ground; a long lower wick says sellers pushed price down and lost every rupee of it back.
A doji is the special case where the verdict is a tie. Price left the open, in one direction or both, sometimes violently, and by the close it had been dragged all the way back. Sellers spent real money driving it down and kept nothing. Buyers spent real money driving it up and kept nothing. The wicks can be long, the traded volume can be heavy, the intraperiod swings can be wide, and the net result of all of it is zero. That combination, high effort and no displacement, is the entire information content of the candle. A trending bar says one side won the argument; a doji says the argument ended precisely where it started.
Notice carefully what this does and does not tell you. It tells you, honestly, that for one period neither side could impose itself: the demand that had been carrying an uptrend just met supply it could not overpower, or the selling that had been driving a decline just met a bid that would not break. That is real information, and on the right day it is early information. It does not tell you what happens next. A tie is a description of one finished period, not a forecast of the following one, and almost every mistake made with dojis begins by quietly confusing the two.
This is why four numbers are enough to argue about. The open and close together fix the verdict; the high and low together fix how hard that verdict was fought for; and a doji is simply the case where those two facts point in opposite directions, a wide, hard-fought range wrapped around no verdict at all. Every other candle resolves the tension between effort and result in favour of one side. The doji leaves it unresolved on purpose, which is why it feels like the chart pausing to ask a question, and why the honest response to a question is to wait for the answer rather than to guess it.
How equal is "nearly equal"?
The precision question comes first, because it is where loose articles go wrong. The strictest definition of a doji wants the open and close identical to the paisa. On a liquid instrument that exact tie is uncommon, so the working definition used in practice is relative: the real body has to be a tiny fraction of the period's high-to-low range.
How tiny? Here is the honest answer: there is no universal cutoff, and any source that quotes one number as the definition is really describing its own scanner settings. Pattern-scanning software commonly treats a body under roughly 3 percent of the range as a doji; other published conventions stretch the allowance to 5 or even 10 percent; a stricter school insists on near-identity. Every one of those is a modelling choice, not a law of markets. What actually matters is what the ratio means: body divided by range measures how much of the session's fight survived to the close. A 40 paise body on a 24 rupee range is under 2 percent, an unambiguous doji. A body that is a third of the range is not a doji at all; it is a spinning top, a close cousin where indecision was real but one side still kept measurable ground.
| Convention | Body as share of range | What it flags | Honest caveat |
|---|---|---|---|
| Strict | near 0 percent | only a true open-equals-close tie | rare on liquid names; too strict for daily use |
| Common scanner default | under about 3 percent | a clear, well-formed doji | a setting someone chose, not a market fact |
| Loose | up to 5 to 10 percent | a generous doji | starts to blur into a spinning top |
| Beyond that | a third of the range | a spinning top, not a doji | indecision, but one side still kept ground |
The reason the working definition is a ratio, rather than a fixed rupee amount, is that it has to travel across price levels. A 50 paise body means something very different on a 20 rupee stock than on a 3,000 rupee one; dividing the body by the day's range strips the price level out and leaves a pure measure of how decisively the session failed to resolve. It is the same instinct that makes a percentage move more informative than an absolute one, and it is what lets a doji on a broad index and a doji on a small-cap be compared at all, despite the two trading hundreds of points apart.
The name itself carries the idea. The candlestick vocabulary that came west through Steve Nison's 1991 reference text is Japanese, and the term doji is usually glossed as "the same thing", or "the same matter", for a session whose open and close print at the same level. A competing folk story ties it to a colloquial word for a blunder, on the logic that a full session ending exactly where it began is a rare oddity. The gloss is debated; the mechanics in the table above are not.
The four anatomies, and what each one records
All dojis share the hairline body. Where they differ is where that body sits inside the range, and that position is a precise record of which probe failed. Read the wicks as attempted journeys and the body as the address where the session finally settled, and the four standard variants stop being shapes to memorise. They become four different sentences about the same kind of standoff.
The standard doji is the plain case: modest wicks on both sides, the body near the middle, both sides probed and neither kept anything. The long-legged doji is the same balance made violent: very long wicks both ways, a wide two-sided battle in which both extremes were rejected. Volatility expanded while direction died, and that combination is why the long-legged version carries the most drama, and, as the sizing section will show, the widest stop. The dragonfly and the gravestone are the directional pair. A dragonfly closes at the top of a long lower wick: sellers drove price deep and buyers took back every rupee. A gravestone closes at the bottom of a long upper wick: buyers drove price high and sellers took back every rupee.
| Type | Anatomy | What the auction did | Where it carries weight |
|---|---|---|---|
| Standard doji | Modest wicks both sides, hairline body near mid-range | Both sides probed; neither displaced the close | Anywhere; the baseline statement of balance |
| Long-legged doji | Very long wicks both sides, body near the middle | A violent two-way fight; both extremes rejected | After steep runs: volatility expanding while direction dies |
| Dragonfly doji | Long lower wick, hairline body at the high end | Sellers drove price deep; buyers reclaimed the entire probe | At support after a decline: the failed probe lower |
| Gravestone doji | Long upper wick, hairline body at the low end | Buyers drove price high; sellers reclaimed the entire probe | At resistance after a rally: the failed probe higher |
Position is the meaning
This is the core of the subject and the line that separates a chart reader from a shape spotter. A doji has no fixed meaning. Its meaning is its position in the structure that came before it. The identical candle, same body, same wicks, same volume, writes three different sentences in three different places, and the figure below draws exactly that: one doji, three locations, three readings.
After a long directional run, a doji is the first candle in which the trend failed to displace price. Every bar before it moved the market in the trend's favour; then a full period of the same pressure produced nothing. That is the earliest measurable sign of exhaustion: the side that owned the move spent a session's worth of effort and could not buy another rupee of progress. It is a warning, not a verdict. Trends routinely pause, print a doji and carry on. The doji only says the engine missed a beat; the next candle says whether it has actually stalled.
Inside a sideways range, the same candle is close to worthless. A range is already a standing tie between buyers and sellers, so a doji there is balance inside balance, one more coin flip in a sequence of coin flips. It confirms what the previous twenty candles already established and predicts nothing. Most of the dojis on any chart live here, which is the plain statistical reason that "trade every doji" fails as a rule: you would mostly be trading noise.
Ahead of a scheduled event, a results announcement, a policy decision, a budget, dojis appear for a duller reason still: participants step aside. Positions are squared, quotes thin out, and the candle goes flat not because a great battle balanced but because almost nobody showed up to fight. Reading exhaustion into that candle is reading conviction into an empty room. It is uncertainty, and uncertainty resolves with the event, not with the next candle.
Two refinements separate a careful reading from a lazy one. First, the longer and more one-sided the run into the doji, the more the candle is worth: a doji after three or four strong candles driving into a level says the dominant side just failed for the first time, while a doji after a weak, choppy drift is barely a whisper, because there was little conviction to exhaust in the first place. Second, dojis cluster. A single doji is one failed period; two or three in a row at the same level describe a market that has tried repeatedly to continue and repeatedly could not, a heavier statement than any one of them alone, though it still waits on the same confirming close before it means anything you can act on.
Confirmation: what the next candle must prove
A doji records a tie, and nobody rational acts on a tie; they act on its resolution. Confirmation is the next candle closing beyond the doji's range: after an uptrend doji, a candle that closes below the doji's low; after a downtrend doji, one that closes above its high. That close is the market announcing that the argument the doji recorded has been settled, and in which direction. The figure below shows the two outcomes that matter, drawn from the same doji.
The mechanics are strict on two points, and the figure turns on both. First, it must be a close, not a touch. An intraperiod poke beyond the doji's range that closes back inside it is just another failed probe, the very rejection the doji itself already recorded, and it proves nothing. Second, the close must clear the whole range, not merely the body. The wicks are prices real participants paid during the fight, so a resolution that cannot even escape the fight's territory is not a resolution. The most convincing confirmations tend to be decisive, wide-bodied candles that close well beyond the range on rising participation; a bullish engulfing candle after a downtrend doji is a textbook example of the market answering the question with force.
Why not act on the doji alone and take the better price? Because the doji is symmetric. It says the trend failed to displace price for one period; it does not say the trend has ended, and stalls resolve in both directions about as often as not. Entering on the doji is paying for an answer the market has not given yet. The confirming close does cost you distance, since price has already moved by the time you act, and that cost is real. It is also the fee for evidence, and the framework below prices it into the position size rather than pretending it away.
Volume: the tell that separates a fight from an empty room
Two dojis can be drawn identically and mean opposite things, and volume is what tells them apart. Remember what the candle claims: a full period of two-sided combat that ended even. That claim is only credible if there was combat. A doji printed on heavy volume is a genuine, expensive stalemate: a large crowd traded hard in both directions and neither side could move the close. A doji printed on thin volume is usually not a stalemate at all; it is an absence, a session where so few participants showed up that price simply drifted back to the open for lack of anyone to push it.
The distinction is practical, not decorative. The whole value of a doji at the end of a trend is the idea that the dominant side finally met resistance it could not overcome. Heavy volume is the evidence that it actually met something: real supply absorbed real demand, or the reverse. Light volume at the same spot more likely means the trend's participants simply took a day off, in which case there is nothing to exhaust and the trend often resumes the moment they return. This is why a doji into a holiday, a half-day session, or the dead hour before a major announcement deserves far less weight than its shape suggests. To go deeper on reading participation, see our full guide to volume in trading; here it is enough to treat volume as the credibility check on every doji you find.
The same effect scales across timeframes and instruments. A daily doji on a broad index such as the Nifty 50 compresses a whole 09:15 to 15:30 session of nationwide participation, so even a quiet one carries some weight. A one-minute doji on the same index compresses sixty seconds, much of which may be a single algorithm resting a quote. The shape is identical; the amount of real trading behind it is not, and it is the trading, not the shape, that you are actually trying to read.
The stop, and the arithmetic of a wide-range doji
If a confirmed doji is traded at all, the stop is not a matter of taste: it goes beyond the doji's far extreme. The entire reading rests on one claim, that a probe was made and fully rejected. If price later reclaims the whole of the doji's range, that claim is dead by definition, and the trade must not outlive the idea that justified it. Below the doji's low for a long, above its high for a short.
That rule has a consequence most articles never carry to its conclusion: the doji's range sets your position size. Work the rupee arithmetic on a stock near ₹500 after a multi-week decline into support (every figure here is illustrative). A daily long-legged doji prints: high ₹512, low ₹488, open ₹499.60, close ₹500.00, a 40 paise body on a 24 rupee range. The next day closes at ₹514, above the doji's high, which is confirmation. The long is taken near ₹514 with the stop just beyond ₹488, so the stop distance is roughly ₹26 a share. A trader risking ₹2,600 on the idea can size at 100 shares, no more. Now rerun it with a compact doji: range ₹496 to ₹504, confirmation close ₹506, stop just beyond ₹496, distance roughly ₹10. The same ₹2,600 risk budget now allows 260 shares. Identical setup logic, identical rupees at risk, wildly different size, and the only thing that changed was the width of the candle's fight.
Drama is width, width is stop distance, and stop distance is the inverse of position size. Size off the stop, never off the account.
This is the professional treatment of the long-legged doji in particular. Its drama is real, a huge two-way battle with no winner, but the trader who sizes off capital instead of off the stop ends up risking the most on the widest, most violent setups, which is exactly backwards. The checklist below is the whole discipline in four lines, and every line exists to keep a memorable shape from turning into an oversized position.
| Check | What to require | Why it exists |
|---|---|---|
| 1. Position | The doji prints after a sustained directional run, at a level that previously mattered | Mid-range dojis are noise; only a trend can show exhaustion |
| 2. Confirmation close | The next candle closes beyond the doji's full range, not merely touches it | The doji states a question; the confirming close is the market's answer |
| 3. Stop placement | Beyond the doji's far extreme, the other end of the fight | If price reclaims the whole range, the failed-probe reading is wrong by definition |
| 4. Size | Position size equals the rupee risk budget divided by the stop distance | A wide-range doji forces a wide stop, which forces a smaller size for the same risk |
Four ways a doji gets misread
Because the shape is so recognisable, the doji attracts more confident misuse than almost any other candle. Four mistakes account for most of it, and each maps directly onto something covered above. Notice that none of them is a charting error; each is a discipline error, a decision taken a step too early or a step too loosely.
1. Trading every doji
Most dojis sit inside a range, where they are balance inside balance and predict nothing. A doji carries information only after a sustained move, at a level that previously mattered. Fix: ignore mid-range dojis entirely.
2. Entering before the close
The doji is a tie, not its resolution, and acting on it buys an answer the market has not given. A poke beyond the range that closes back inside proves nothing. Fix: wait for a close beyond the whole range.
3. Ignoring volume
The same cross means opposite things on heavy and thin volume. A doji into a holiday or the quiet before an event is usually an absence of participants, not a genuine stalemate. Fix: treat volume as the credibility check.
4. Sizing off the account, not the stop
A long-legged doji's drama is width, and width is stop distance. Size from capital and the widest, most violent setups quietly become your largest positions. Fix: size from the stop, every time.
Every one of these has the same cure, which is also the single sentence this whole guide is built to earn: let position, confirmation and the stop, not the shape, decide what you do. A trader who internalises that treats the doji as a prompt to check three things rather than a button to press, and the difference between those two habits is most of the difference between reading a chart and merely recognising a picture on it.
The honest evidence, and why the framework exists
Here is the part a page selling you certainty would leave out. Candlestick patterns have been tested by academics, carefully, and the results for patterns traded in isolation are poor. The landmark study is Marshall, Young and Rose (2006) in the Journal of Banking and Finance: candlestick signals, doji-based reversals included, tested on Dow Jones Industrial Average component stocks from 1992 to 2002 against a bootstrap null, that is, random price series built to share the same statistical properties. The strategies added no significant value. The same team then ran the harder test, Marshall, Young and Cahan (2008) in the Review of Quantitative Finance and Accounting: the 100 largest Tokyo Stock Exchange stocks from 1975 to 2004, candlestick charting examined in its own home market over three decades. No value in the full period, none in the sub-periods, none in bull markets or bear markets. Later work across other markets reads mixed at best, and the mixed results tend to involve added filters, holding-period choices and cost assumptions doing much of the lifting.
Read that finding precisely, because it is about a specific object: the isolated pattern, traded mechanically, every occurrence, no context, no confirmation, no sizing discipline. That object has little standalone edge, and any article promising that a doji "predicts reversals" is contradicted by the best evidence available. But notice what the finding is not. It is not a test of a trader who ignores mid-range dojis, demands a confirming close, stops out where the reading is falsified, and sizes off the stop. That framework exists because the naked pattern carries no authority. The doji's honest job is informational: it tells you where a genuine argument happened, which side's probe failed, and, through its extremes, the exact price at which your interpretation would be proven wrong. That last item, a built-in invalidation level, is worth more than any claimed predictive power, because it is the input that risk management actually runs on. That reading order, context before candle, confirmation before entry, size from the stop, is exactly what the method we teach is built around.
The practical discipline, then, fits in three sentences. When a doji prints, say the sentence it wrote: who probed, who was refused, and where in the structure this happened. If the position is meaningless, a mid-range candle or a pre-event blank, move on without regret. If the position is meaningful, do nothing until the market finishes the paragraph with a close beyond the range, and let the width of the candle, not the strength of your conviction, decide how large the trade is allowed to be. Do that consistently and the doji stops being a signal you obey and becomes a question you answer, which is the only honest way to use it.
Common Questions
Frequently Asked Questions
What is a doji candlestick?
+A doji is a candlestick whose open and close finish nearly equal, leaving a hairline real body. It records a period in which price probed away from the open, in one or both directions, and was pushed all the way back: a full session of trading with zero net displacement. The wicks show the failed probes; the missing body shows that neither buyers nor sellers won the period. On its own it signals disagreement, not direction, and reading it as a signal is the classic beginner error.
What makes a candle a doji, and how equal must open and close be?
+There is no universal cutoff, and honest sources say so. The strictest definition wants open and close identical, which is rare on liquid instruments. In practice analysts treat the candle as a doji when the real body is a very small fraction of the high-to-low range: charting software commonly defaults to a body under roughly 3 percent of the range, and looser conventions stretch to 10 percent. Beyond that the candle is better read as a spinning top, where indecision was real but one side still kept measurable ground.
How is a doji different from a spinning top?
+The difference is the size of the body relative to the range. A doji has a hairline body, meaning the open and close finished almost exactly together, so neither side kept any measurable ground. A spinning top has a small but clearly visible body, meaning indecision was real but one side still closed with a little territory. There is no universal cutoff between them; scanners commonly treat a body under about 3 percent of the range as a doji and larger small bodies as spinning tops. Read both the same way: they are pictures of indecision, and their meaning comes from position and confirmation, never from the shape alone.
What are the types of doji candlestick?
+Four anatomies matter. The standard doji has modest wicks on both sides: plain balance. The long-legged doji has very long wicks both ways: a violent two-way fight in which both extremes were rejected. The dragonfly doji closes at the high end of a long lower wick: sellers drove price deep and were fully rejected. The gravestone doji closes at the low end of a long upper wick: buyers drove price high and were fully rejected. The body's position records which probe failed.
Is a doji bullish or bearish?
+Neither. A doji is a statement of balance, and its implication comes entirely from position. After a long uptrend it is the first candle in which the trend failed to displace price, which leans bearish only if the next candle confirms. After a long decline the same logic leans bullish. In the middle of a sideways range a doji adds nothing: it is balance inside balance. Any source that assigns the doji a fixed direction is overreading a shape.
Does volume matter when reading a doji?
+Yes, and it is often the deciding factor. A doji claims that a full period of two-sided trading ended even, and that claim is only credible if real trading took place. A doji on heavy volume, well above the recent average, is a genuine and expensive stalemate: a large crowd fought hard and neither side could move the close. A doji on thin volume is usually just an absence of participants, price drifting back to the open because nobody was there to push it. A doji into a holiday, a half day, or the quiet before a big announcement deserves far less weight than its shape suggests.
What confirms a doji reversal?
+A close beyond the doji's range: after an uptrend, a following candle that closes below the doji's low; after a downtrend, one that closes above its high. The doji records a tie, so the confirmation candle is the market resolving the tie, and an intraperiod poke that closes back inside the range resolves nothing. Waiting for the confirming close costs a worse entry price. That cost is the price of evidence, and the pattern is not worth trading without it.
Can I trade a doji without waiting for confirmation?
+You can, but you would be trading before the information arrives. A doji records a tie, and a tie resolves in both directions about as often as not, so entering on the doji itself is paying for an answer the market has not yet given. Waiting for the next candle to close beyond the doji's range costs you a worse entry price, and that cost is real, but it is the fee for evidence. Because careful testing shows isolated candlestick patterns carry little standalone edge, skipping confirmation removes the one discipline that gives the doji any practical value.
What is the difference between a dragonfly doji and a hammer?
+Both print after a probe lower that failed, and both carry the same auction logic. The difference is the body. A hammer has a small but visible real body near the top of the range, so the close finished measurably away from the open. A dragonfly doji has almost no body at all: open and close finished together at the high end. In both cases the lower wick is the failed probe; the doji version records a purer tie. Read them the same way: position first, then confirmation.
What is the difference between a gravestone doji and a shooting star?
+They are the same rejection with different bodies. Both show price driven high during the period and pushed back down to close near the low end. A shooting star keeps a small real body, so open and close finished slightly apart. A gravestone doji has a hairline body: the session closed back at its open. After an extended rally, both record a failed probe higher, both lean bearish only with a confirming close below, and both put the stop beyond the candle's high.
Do doji patterns work in Indian markets?
+Candlestick logic transfers to NSE and BSE instruments unchanged, because it describes auctions, not geographies. A daily doji on the Nifty 50 or a liquid large-cap compresses a full 09:15 to 15:30 session of participation, so it carries far more weight than a one-minute doji. The honest caveat applies everywhere: academic tests of isolated candlestick patterns find little standalone edge, so a doji on any market earns attention only through position, confirmation and sizing, never as an automatic signal.
Where does the stop-loss go when trading a confirmed doji?
+Beyond the doji's far extreme: below the low for a long taken after a bullish confirmation, above the high for a short after a bearish one. If price reclaims the doji's entire range, the failed-probe reading is wrong by definition, so the trade has no reason to exist past that point. The arithmetic follows: a wide-range doji forces a wide stop, and for a fixed rupee risk budget a wider stop means a proportionally smaller position size.
Where the facts come from
Sources
- Marshall, Young and Rose (2006), Journal of Banking and Finance 30(8), 2303 to 2323. The benchmark academic test of candlestick trading strategies, doji reversals included, on Dow Jones Industrial Average component stocks, 1992 to 2002, using a bootstrap methodology; it found the strategies added no significant value. ideas.repec.org
- Marshall, Young and Cahan (2008), Review of Quantitative Finance and Accounting 31(2), 191 to 207. The follow-up test on the 100 largest Tokyo Stock Exchange stocks, 1975 to 2004, candlestick charting examined in its home market: no value in the full period, the sub-periods, or bull and bear regimes. link.springer.com
- Steve Nison, Japanese Candlestick Charting Techniques (1991). The reference text that carried candlestick vocabulary to Western markets; the source of the standard definitions of the doji family and of the usual "same matter" gloss on the term.
- Exchange session timings and scanner conventions. The NSE continuous equity session runs 09:15 to 15:30, the participation window a single daily candle compresses; pattern-scanner documentation is the source for the common 3 to 10 percent body-to-range conventions and for the fact that no universal cutoff exists.