Doji Candlestick Pattern Explained & Backtested (2024)

The Doji Japanese candlestick pattern is a class of one-bar indecision patterns whose open and close are nearly identical.

But what if I told you that you could trade these patterns profitably according to backtests spanning multiple decades?

Would you be interested?

If so, read on to learn how to make a trade decision when faced with these indecision candlestick patterns.

What Is a Doji Candlestick Pattern

Common Doji Candlestick Pattern Illustration © Analyzing Alpha
Common Doji Candlestick Pattern Illustration

A doji candlestick pattern is a single-bar pattern that supposedly represents indecision.

The name comes from the word “doji” (どうじ 同事), which means the same thing in Japanese.

There are multiple types of doji candlestick patterns, including the common, long-legged, dragonfly, and gravestone doji.

Technical analysts use the doji term to refer to all of the above patterns but specifically call out a doji by its proper name when they want to be more specific, e.g., a dragonfly doji.

I’ll cover the common doji pattern in this post. And for the sake of brevity, I’ll refer to the common doji sometimes as just the doji candlestick, and I’ll provide links and backtest results to the other similar doji patterns below.

How to Identify the Doji Candlestick Pattern

Types of Doji Candlestick Patterns Illustration © Analyzing Alpha
Types of Doji Candlestick Patterns Illustration

The following are the requirements for a valid common doji pattern:

  • The open and close must be equal or very similar.
  • The open and close price must not be near the high or low.
  • The candle’s range must be similar to prior trading ranges.
  • The doji does not require a trend.

In other words, a common doji must not close near the high or low, and the range must be the same or smaller than prior candles. Changes to these requirements would make it a different type of doji.

Let’s look at an example of a common doji on our candlestick charts.

Common Doji Candlestick Pattern on the Apple (AAPL) October 25th, 2021 daily chart
Common Doji Candlestick Pattern on the Apple (AAPL) October 25th, 2021 daily chart

Doji Candlestick Pattern on the Apple (AAPL) July 21st, 2021 daily chart

We can see the doji candlestick chart pattern on the Apple (AAPL) daily chart on July 21st, 2021.

The opening and closing prices are almost identical, occurring near the midpoint of the day’s price action.

With the doji pattern identified, what type of trading strategy do data-driven traders employ for this single bar pattern?

How to Trade the Doji Candlestick Pattern

History tells us that a doji pattern is best traded bullishly in the stock and crypto markets and bearishly in the forex markets using the low-close or high-close as entries, respectively.

In other words, data-driven trading strategies expect reversals around these key doji formations.

Let’s take a look at the best doji trading strategies for the stock and crypto markets according to history.

Doji Bullish Candlestick Trade Setup

Doji Bullish Trade Setup on the Alphabet (GOOG) November 16th, 2021 daily chart
Doji Bullish Trade Setup on the Alphabet (GOOG) November 16th, 2021 daily chart

We can see the doji candlestick pattern on the Alphabet (GOOG) daily chart on November 16th, 2021.

The opening price is roughly equal to the closing price, appearing near the midpoint of the day’s price range.

One could say that there are two doji candlesticks in a row, but you could also argue that the second is a spinning top or short line – there’s some discretion when identifying candlesticks.

Regardless, with the doji pattern identified, smart traders enter long on a break of the doji’s close with a stop loss set just below the low.

In the above example, savvy traders would have entered on open as the price was above the close, setting the stop loss below the low of the doji candlestick, which turned into a nice profit the next day.

But what about forex traders?

They should do the same but in the opposite direction.

Doji Bearish Candlestick Trade Setup

Doji Bearish Trade Setup on the Markel (MKL) November 5th, 2021 daily chart
Doji Bearish Trade Setup on the Markel (MKL) November 5th, 2021 daily chart

We see a perfect example of a Doji on the Markel (MKL) on the September 5th, 2021, daily chart.

Historically-guided traders will go bearish when the price falls below the doji’s close, setting a stop loss just above the doji candle’s high.

In the above Markel example, the doji candle occurs on the 5th triggering an entry on the 8th with a profitable exit on the 9th, depending upon your risk-reward levels.

Speaking of profitable exits, what does history tell us about these best doji trading strategies?

Does the Doji Candlestick Pattern Work? (Backtest Results)

Using the following rules, I backtested the doji candlestick pattern on the daily timeframe in the crypto, forex, and stock markets.

  • A close above the 50-day SMA constitutes an uptrend.
  • I tested risk-reward ranges from 1 to 5.
  • The optimal risk-reward ratio is selected using profit per bar.
  • Entry and exits are discussed in the how-to trade section above.
  • Confirmation must occur within three days of the pattern signal.

Similar Candlestick Patterns

There are multiple types of doji candlestick patterns. Let’s look at some of the differences between these one-bar patterns.

Long-Legged Doji vs. Common Doji Candlestick Pattern

Long-Legged Doji Candlestick Pattern Illustration © Analyzing Alpha
Long-Legged Doji Candlestick Pattern Illustration

The long-legged doji candlestick pattern is almost identical to the common doji candlestick pattern. The only difference is that the long-legged doji pattern requires a trading range more significant than the average trading range of prior candles.

Dragonfly Doji vs. Common Doji

Dragonfly Doji Candlestick Pattern © Analyzing Alpha
Dragonfly Doji Candlestick Pattern

The dragonfly doji candlestick pattern is also similar to the common doji pattern. The only difference is that the opening and closing price ends up near the high of the day.

Another difference between the dragonfly doji and the common doji is that the dragonfly doji is supposed to be a reversal pattern in a downtrend and an indecision pattern in an uptrend.

Gravestone Doji vs. Common Doji

Gravestone Doji Candlestick Pattern Illustration © Analyzing Alpha
Gravestone Doji Candlestick Pattern Illustration

The gravestone doji candlestick pattern, sometimes called the tombstone pattern, is the opposite of a dragonfly doji.

The open and close price of the gravestone doji pattern ends near the trading range’s low.

Evening Doji Star vs. Common Doji

Evening Doji Star Candlestick Pattern Illustration © Analyzing Alpha
Evening Doji Star Candlestick Pattern Illustration

The evening doji star is a three-candle bearish reversal pattern that contains a doji. This star doji has a long white candle, followed by a gap up doji, followed by a gap down bearish candle. The doji is said to be a star doji as there’s a gap on both sides, and it’s an evening because it portends darkness or bearish price action.

Morning Doji Star vs. Common Doji

Morning Doji Star Candlestick Pattern Illustration © Analyzing Alpha
Morning Doji Star Candlestick Pattern Illustration

The morning star doji, like the evening star, gets its name by containing a doji. The pattern supposedly acts as a bullish reversal where the first candle is a large black candle in the direction of the trend, followed by a gap down doji, and then the next day is a gap up.

Like the evening star doji, the morning star doji gets its name from the gap down doji.

Spinning Top vs. Common Doji

Bullish Spinning Top Candlestick Pattern Illustration © Analyzing Alpha
Bullish Spinning Top Candlestick Pattern Illustration

The spinning top is the same as a common doji, except that the spinning top has a small real body, whereas the doji should have little to no real body.

Short Line vs. Common Doji

Bearish Short Line Candlestick Pattern Illustration © Analyzing Alpha
Bearish Short Line Candlestick Pattern Illustration

The short line is almost a doji. It doesn’t require a trend and can open and close anywhere in the daily price range. The big difference is that it must have a small real body. It also sounds very similar to the previously mentioned spinning top. A short line can be a spinning top if the real body is in the middle of the range.

The Bottom Line

Understanding how to identify a doji candlestick is critical when using candlestick pattern analysis, as they occur frequently. Doji patterns are often a component of larger candlestick patterns such as the evening or morning star doji.

And you now also know that this indecision pattern is often a sign of volatility contraction, ready to break up or down for your profit.

According to history, these supposed indecision candlesticks can be some of the strongest candlestick patterns.

Leave a Comment