Home / Technical Analysis / Candlestick patterns / Doji

Candlestick formation · Neutral

Doji

What is it, in one line

Open and close within a hair of each other. Indecision by definition.

Neutral · 1 candle · verdict: rule and thresholds below

Neutral 1 candle Traditional claim
Doji - 11 price bars ending on the bar where the Doji completes. The final bar is the formation, shaded; the bars before it are the prior context the rule requires.
Verified example · fires the Doji rule · not a schematic

Measured result

What happens after a doji?

This is being measured and the result is not published yet. It appears here, with its sample and a plain verdict, once it has been replicated on a second data source. Last tested: not yet published.

  • How often price moved the claimed way over 1 to 200 bars, in pips and in units of volatility
  • The same for every bar, and for bars of the same size and direction
  • Each timeframe and each market, and the most recent two years held back as a separate test
  • Whether a target or a stop was reached first, and the measured spread cost

How a formation is tested → All formations →

Size the trade before you take it

The size of a position follows from the loss you accept and the distance to the stop, not from how the pattern looks. Risking 1% of a $10,000 account ($100) with a stop 20 pips away allows $5 a pip, which is 0.5 of a standard lot on a pair where a lot is $10 a pip.

Position size calculator →Risk and reward calculators →ATR against fixed stops →

What has to be true

Open and close within a hair of each other. Indecision by definition. The engine checks the formation as an executable condition over open, high, low and close, with a trend filter applied before the count is kept.

candles = 1 candle
direction = Neutral
trend filter = prior either direction
forward window = 10 bars

Doji is a 1-candle indecision formation and this site publishes 3 numeric thresholds and 1 invalidation condition for it.

What the engine tests

A candle whose open and close are close enough together that the real body is negligible relative to the range. The session covered ground in both directions and finished roughly where it started.

Family
Candlestick
Bars
Single bar
Direction
Neutral
Class
Indecision
Prior context
None required
TA-Lib
CDLDOJI

The traditional claim

Traditionally read as indecision rather than direction, and usually said to take its meaning from the candles around it rather than on its own.

How this detection is wrong

A body of exactly zero is not required and never should be - on real data an exact-equality doji is an artifact of tick size, not of indecision. maxBodyPct is the definition. The minRangeAtr floor exists to exclude halted, illiquid and synthetic-fill bars, which otherwise dominate any naive doji count.

The thresholds the detector uses

Published so the count can be reproduced. Every figure below is a parameter of the rule, not a preference: change one and the occurrence count changes with it.

Detection parameters for the Doji
ParameterMeaningDefault
maxBodyPctbody, at most, as a share of the range0.05
minRangeAtrbar range, at least, in ATR0.1
atrPeriodbars of ATR used to size everything below14
strict
Tighter thresholds. Fewer detections, each a cleaner example.
maxBodyPct 0.02
loose
Wider thresholds. More detections, more marginal ones.
maxBodyPct 0.1
no-liquidity-filter
minRangeAtr 0

Easily mistaken for

These share enough geometry that a detector can return more than one of them on the same bar. The engine reports every match rather than picking a winner.

Every pair on the site that can be mistaken for another, and what separates each: the look-alikes index.

Common questions

What is a Doji candlestick pattern?

A candle whose open and close are close enough together that the real body is negligible relative to the range. The session covered ground in both directions and finished roughly where it started.

Is the Doji bullish or bearish?

It is read as neutral. Traditionally read as indecision rather than direction, and usually said to take its meaning from the candles around it rather than on its own.

When is a Doji not a Doji?

A body of exactly zero is not required and never should be - on real data an exact-equality doji is an artifact of tick size, not of indecision. maxBodyPct is the definition. The minRangeAtr floor exists to exclude halted, illiquid and synthetic-fill bars, which otherwise dominate any naive doji count.

How is a Doji detected?

As an executable rule over open, high, low and close, with 3 named parameters - including body, at most, as a share of the range 0.05, bar range, at least, in ATR 0.1, bars of ATR used to size everything below 14 - all published on this page so the count can be reproduced. Strict and loose variants are defined as well, so the sensitivity of the count to those thresholds is visible rather than assumed.

No measured results yet

We have not published a hit rate for this pattern yet. Our first measurement counted a candle that had not finished forming, so we set it aside and are measuring again before showing any number. The definition above is unaffected: it is what the detector tests, and measuring again does not change it.

How this was measured →

Other single-candle formations

All 107 →
Dragonfly Doji A doji whose open and close sit at the top of the range.
Gravestone Doji A doji whose open and close sit at the bottom of the range.
Long-Legged Doji A doji with long wicks on both sides of the body.
Rickshaw Man A long-legged doji whose body sits near the middle of the range.

Create your account to see the custom crypto strategies and indicators.

Crypto strategies, crypto indicators, breakout signals and custom bots, in one account.

Create your account