A doji is a candle whose open and close are almost the same price: the body is just a line. Handy rule: body ≤ 10% of the full height.
It shows indecision: buyers and sellers fought, but nobody won. After a long rally, it signals that momentum is fading.
There are three variants: the long-legged doji (long wicks on both sides), the dragonfly doji (long lower wick, a T shape) and the gravestone doji (long upper wick, an upside-down T).
A doji is not a buy or sell signal on its own. Wait for the next candle: if it breaks one way, that candle gives the confirmation.
Examples
KUMO-X (fictional market) : After five red candles, a doji appears just above the support at 31 (body of 0.1 for a height of 3). The next candle closes clearly higher, at 35.5: that candle confirms that the drop is pausing.
Steve Nison, “Japanese Candlestick Charting Techniques”, 1991 : Japanese candlesticks were little known in the West until US analyst Steve Nison published this book in 1991. He already stressed one point: a doji after a long rally is a warning, not a sell order. You wait for what comes next.
Key terms
Doji
Candle whose open and close are almost equal
Dragonfly doji
T-shaped doji: long lower wick, open and close near the high
Gravestone doji
Upside-down T doji: long upper wick, open and close near the low
Confirmation
Next candle that validates the reading by closing in the expected direction