Candlestick patterns › Doji

Doji candlestick pattern

Indecision · 1 candle

A doji is a candle whose open and close are almost the same price, so its body is a thin line between two wicks.

Doji: an invented example Doji
An invented example: the shaded candle is the doji, and the faded candles before it are what the detector measures it against. GU Analyser's detector finds this pattern on exactly these candles.

What a doji looks like

The body is the part that matters: it is so small that the candle looks like a cross or a plus sign. The wicks can be any length. A doji with two long wicks is often called long-legged; one with only a lower wick, a dragonfly; one with only an upper wick, a gravestone.

A doji can form on any chart: a five-minute candle, a day or a week.

How a doji is traditionally read

A doji is traditionally read as indecision: during the period buyers and sellers moved the price, and it ended where it started. After a long run in one direction it is often read as a possible pause. On its own it is given no direction, which is why the app marks it as neutral.

That is the tradition. Whether a pattern says anything about what came next is a question for a test: our candlestick pattern studies show how we test one.

How GU Analyser detects a doji

The app uses the definition of TA-Lib, an open-source technical analysis library, at its default settings. "Average" below means the average over the ten candles before the pattern.

Patterns that look alike

The marubozu is the opposite shape: all body and almost no wick. Marubozu explained

How often a doji appears

Doji: 163,440 times in 1,170,078 stock-days (one stock on one trading day), about once every 7 trading days for a single stock. It appeared at least once on 499 of the 500 stocks.

Counted by the app's own detector on the daily bars of the 500 stocks in the S&P 500 on 30 September 2026, from October 2016 to September 2026; a company listed later counts from its first day, and companies that left the index before then are not in the sample. This counts the pattern only: what followed it is not measured here.

Using a doji in GU Analyser

On Charts, the Candle patterns layer marks each doji the detector finds. In the strategy, alert and event builders the same pattern is a condition, which can be combined with others, such as a trend filter: the strategy builder shows how. Candle patterns are available on Premium and lifetime accounts. On our stock data the chart shows a closing-price line with the markers; with your own Tiingo key connected, the chart shows full candlesticks.

Other candlestick patterns

Hammer
Inverted hammer
Hanging man
Shooting star
All 14 patterns · Engulfing patterns, tested

See the patterns on a chart

On Premium and lifetime accounts, GU Analyser marks each of these patterns on a chart and uses it as a condition in a backtest or an event study. Charts, indicators and backtests are free on the S&P 500 ETF, no card.

Create a free account → Try the demo — no registration or start with the courses →
This is educational material, not advice. It describes methods and conventions used to study markets on historical data. Nothing here is a recommendation to buy or sell anything, and a historical test does not show what will happen next. GU Analyser is an analytical and educational tool — no money is ever traded here.