How we tested this pattern
- Sample
- 58,908 occurrences on 6 markets (crypto, forex, US stocks, ETFs, indices and commodities), 1970 to 2026.
- Detection
- Found by code, never picked by hand: every match of the rule on full price history, winners and losers alike.Doji with a very short upper shadow and a lower shadow of at least half the average range of the previous 10 candles.
- Benchmark
- Each occurrence is compared with the same assets on random bars: the move 10 bars later, and a 2:1 reward-to-risk trade.
- Checks
- Block bootstrap and a correction for the thousands of tests we run, plus a random-walk self-test that the bench passes: on random prices, no pattern should win.
- Updated
- Data updated November 5, 2026, code version c2a1683f. Read the methodology · Raw data (JSON)
At a glance: what textbooks say, what we measured
- Direction
- Neutral
- Occurrences tested
- 58,908 occurrences, all markets, daily
- Where it did best
- Indices, weekly: +0.27 R 2:1 trade vs random dates, not proven
- Verdict
- 2:1 trade: No clear edge
On this page
A dragonfly doji is a candlestick pattern in which the open and the close are nearly identical and sit at the high of the session, with a long lower shadow and no upper shadow, or a very short one. It looks like a "T": sellers pushed the price down during the session, then buyers brought it all the way back by the close. In technical analysis, the dragonfly doji is read as a potential bullish reversal pattern after a downtrend.
This guide explains what the pattern means, how to identify it and how to trade it, and adds what a definition alone cannot: what happened after it on 58,908 daily occurrences across stocks, crypto, forex, ETFs, indices and commodities, compared with random days on the same assets.
What is a dragonfly doji?
The dragonfly doji is one of several doji formations: the session ends where it started, so the body is a thin line. What makes it a dragonfly is where that line sits, at the top of the range. The lower wick is the trace of a sell-off that did not hold.
Steve Nison, who introduced Japanese candlestick charting to Western traders in Japanese Candlestick Charting Techniques (1991), describes it as a doji whose open and close are at the high of the session. Our test bench applies the same idea as a rule a computer can follow without judgment: a doji, a very short upper shadow and a lower shadow of at least half the average range of the previous 10 candles, with sizes measured against recent sessions as in the TA-Lib library, whose own function flags more cases (our rule finds 46% of them). No prior trend is required. That rule is looser than the textbook picture: it accepts a lower shadow of moderate length, where the textbook asks for a long one, and a small gap between the close and the high.
The chart below is not drawn by hand: it is the median shape of the occurrences our bench detected on daily charts across all markets, with the long side of the two-sided trade we test.
What does a dragonfly doji mean?
The session opens, sellers drive the price well below its starting level, then buying pressure absorbs the selling and lifts it back to where it started. Two opposite moves and no momentum left at the end of the session: indecision that turned in favor of buyers.
At the bottom of a bearish trend, the tail shows that buyers rejected lower prices: the classic bullish signal that a trend reversal may be near, ideally at a support zone. At the top of an uptrend, the same formation shows that sellers could push the market sharply down during the session, and it can be read as a warning, like the hanging man.
Our data does not show a clear difference between the two. After a decline, the breakout trade described below reached its 2:1 target 35.7% of the time (+0.07 R per trade); after a rise, 35.3% (+0.05 R). The pattern marks indecision, not a direction, which is why we trade the first side that breaks.
How to identify a dragonfly doji
- Very short upper shadow
- Doji bodyopen and close nearly equal
- Long lower shadowour rule: not very short
- The opening and closing prices are equal or almost equal.
- They sit at or very near the top of the range.
- A long lower shadow hangs well below them.
- No upper shadow, or a very short one.
On the median daily occurrence, the whole range spans 1.94% of the price, or 0.74 times the average true range (ATR): narrower than a typical recent session. The pattern is common: we found one every 144 eligible daily bars.
Dragonfly doji vs. other doji patterns and the hammer
The gravestone doji is the mirror image, with its tail above the body. On daily data, the gravestone doji trade reached its 2:1 target 32.0% of the time against 32.2% at random, for −0.05 R against −0.04 R per trade, a gap that does not pass our statistical test; the dragonfly did a little better, 35.5% against 35.0%, or +0.06 R against +0.04 R, a small gap that does not pass our test either.
- Gravestone DojiNeutral2:1 trade, daily No clear edge
- HammerBullish10-bar move, daily No clear edge
- TakuriBullish10-bar move, daily No clear edge
The hammer pattern has the same long wick but a visible body, and it requires a downtrend before it. Its setup reached the target 35.4% of the time against 36.1% at random, for an average result of +0.06 R against +0.09 R per trade. The hammer page rates that trade No clear edge: the gap in average result is too small to separate from chance. The takuri sits between the two.
Among the other doji types, the standard doji has its body anywhere in the range, and the long-legged doji has long wicks on both sides; its trade reached the target 33.2% of the time, almost exactly as often as at random.
The Real examples section shows dragonfly doji candles from our bench with their actual outcome. Trade results are in R, the initial risk of the trade.
Real examples
Real occurrences from our test bench, each on its market's main timeframe. Crypto and US stock examples come from liquid assets only (the largest coins, the most traded stocks). Best and Worst are the best and worst 2:1 trade results, Textbook the cleanest shapes (chosen on geometry alone, never on the outcome), Most recent the latest detections among the assets the gallery draws from, Typical a random draw. Shaded area: the pattern. Dashed lines: entry, stop loss (SL) and 2:1 target (TP) of the tested trade. Dotted line: 10 bars after the signal. A result above +2 R or below −1 R means a bar opened past the target or the stop, and the trade was closed at that open. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time. We left out 4 cards with a candle that is the thin first bar of the trading week. They still count in the statistics, and are not replaced: our bench picks a fixed number of cards per category.
How to trade the dragonfly doji
Because our test assigns this candle no expected direction, the trade we test is symmetrical: a buy stop just above the high and a sell stop just below the low, valid for 20 bars. Whichever side breaks first opens the trade; the stop goes at the other end of the range, and the target at twice the risk. On daily charts the first break was upward in 68.0% of cases, which proves little: the close sits at the top of the range, so the buy stop is the nearer one, and the gravestone doji, which closes at the bottom, broke upward in only 36.8%.
- Entry: a careful entry waits for a close above the high before buying. The buy stop is a form of that confirmation. In our daily data, 99.9% of setups were triggered on one side or the other.
- Stop: for a long trade, just under the bottom of the wick. Size the position on the distance from entry to stop.
- Timing: the median winning trade reached its target in 3 bars, and the median losing trade was stopped within 2 bars.
- Buy stop
- At the pattern high, stop loss at the low
- Sell stop
- At the pattern low, stop loss at the high
- Target (TP)
- Twice the risk (2:1), on the side hit first
A clean case from our bench: US stocksChosen on its shape alone, never on the outcome. A result above +2 R or below −1 R means a bar opened past the target or the stop, and the trade was closed at that open. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time.
The setup can also be filtered by a support zone, the RSI or a moving average. We measured two filters: above the 200-day moving average, the trade reached its target 35.0% of the time (+0.04 R), below it 36.3% (+0.08 R); on volume above 1.5 times the 20-day mean, 36.0% (+0.08 R) against 35.4% (+0.05 R). These breakdowns are descriptive and not corrected for the number of tests. We have not tested RSI or support filters.
Is the dragonfly doji reliable?
Not on its own: in our tests, its trade did not beat chance on any market or timeframe. Daily data with all markets together reads no clear edge: the trade did a little better than on random dates, but not by a margin that passes our test. US stocks daily, on data that misses most delisted companies, a survivorship bias we have not sized, reads no clear edge. Forex weekly, the largest raw gap (+0.47 R per trade against +0.10 R on random dates), also reads no clear edge, on only 53 trades. Crypto 4-hour reads no clear edge: the trade still loses money, about as much as on random dates. Commodities daily reads No clear edge (−0.05 R against +0.10 R), a gap within the margin of error. Commodity results come from continuous futures that are not adjusted at contract rolls; the bench cuts each series at the large price jumps those rolls leave. Indices weekly comes closest to a positive result, rated promising (+0.37 R against +0.10 R on 246 trades), a gap that passes a simple test but not our correction. On hourly charts, crypto reads Worse than chance, forex Weak, below chance and all markets together Worse than chance.
Hit the 2:1 target, compared with the same trade on random dates.
Measured on 58,832 closed trades on 58,908 daily dragonfly doji occurrences across 2,285 assets. The same trade on random dates on the same assets is the honest baseline.
No clear edgeDragonfly doji against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.
- All markets
- Crypto
- US stocks
- Forex
- ETFs
- Indices
- Commodities
All statistics
Full results for the dragonfly doji, market by market
Every occurrence our rule finds on full price history, compared with what the same assets did on random bars. A pattern only earns an edge if it beats random entries after correcting for the thousands of tests we run.
Our verdict
As a 2:1 trade: Not a reliable signal on its own here. Use it as context, not as a trigger.
Dragonfly doji: 58,908 occurrences tested
Neutral pattern · All markets · Daily · 2,285 assets · 1970-03 to 2026-10
What this means. This pattern has no expected direction, so only the 2:1 trade is compared with the same trade on random dates. For the 2:1 trade: no measurable difference from the same trade on random dates on the same assets.
Timeline
- Entry triggered, after the pattern
- 1 day · middle half 1 to 1 · on 58,887 triggered entries
- Stop order beyond the pattern's extreme. 55 of these entries are not among the 58,832 trades: still open at the end of our data, or left out by the trade rules.
- Time to the 2:1 target, when hit
- 3 days · middle half 2 to 6 · on 20,862 trades that hit it
- Time to the stop, when hit
- 2 days · middle half 1 to 4 · on 37,923 trades that hit it
- Time in the trade, all exits
- 2 days · middle half 1 to 5 · on 58,832 trades
Size and trade path
- Pattern range, high to low
- 1.9% · middle half 1.4% to 2.9% · on 58,908 occurrences
- Range vs average bar (ATR)
- 0.74× · middle half 0.65× to 0.86× · on 58,908 occurrences
- Best open profit during the trade
- 1.05 R · middle half 0.26 R to 2.16 R · on 58,832 trades
- Stopped trades that were first up 1 R
- 24.3% · on 37,923 stopped trades
- Trades a stop moved to breakeven at +1 R would have closed flat instead of at a loss
- Entry order triggered
- 99.9% · on 58,908 occurrences
Medians, each on the cases named on its line; "middle half" spans the 25th to 75th percentile; no value under 30 cases.
How we detect it. Doji with a very short upper shadow and a lower shadow of at least half the average range of the previous 10 candles. Candlestick counts are not checked against planted examples, so they may not be exhaustive.
All measurements (20 rows)
2:1 trade: target hit and average result
| Market | Trades | Target hit | Same trade, random dates | Per trade | 2:1 trade verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour | 101,373 | 29.7% | 32.8% | −0.11 R vs −0.01 R | Opposite of the textbook |
| Forex · 1-hour | 9,719 | 31.3% | 32.9% | −0.06 R vs −0.02 R | Weak, below chance |
| All markets · 1-hour | 111,092 | 29.8% | 32.8% | −0.10 R vs −0.01 R | Opposite of the textbook |
| Crypto · 4-hour | 20,276 | 32.1% | 32.7% | −0.04 R vs −0.02 R | No clear edge |
| Forex · 4-hour | 2,166 | 32.4% | 33.4% | −0.03 R vs 0.00 R | No clear edge |
| All markets · 4-hour | 22,442 | 32.1% | 32.7% | −0.04 R vs −0.02 R | No clear edge |
| Crypto · Daily | 2,677 | 33.4% | 34.0% | 0.00 R vs +0.02 R | No clear edge |
| US stocks · Daily | 52,288 | 35.4% | 34.8% | +0.06 R vs +0.04 R | No clear edge |
| ETFs · Daily | 1,960 | 36.3% | 36.1% | +0.07 R vs +0.07 R | No clear edge |
| Indices · Daily | 1,263 | 40.9% | 40.9% | +0.23 R vs +0.22 R | No clear edge |
| Forex · Daily | 281 | 31.3% | 35.8% | −0.06 R vs +0.08 R | No clear edge |
| Commodities · Daily | 363 | 33.3% | 37.0% | −0.05 R vs +0.10 R | No clear edge |
| All markets · Daily | 58,832 | 35.5% | 35.0% | +0.06 R vs +0.04 R | No clear edge |
| Crypto · Weekly | 171 | 26.9% | 36.2% | −0.19 R vs +0.09 R | Not enough data |
| US stocks · Weekly | 8,919 | 36.2% | 36.9% | +0.08 R vs +0.11 R | No clear edge |
| ETFs · Weekly | 435 | 36.1% | 36.9% | +0.07 R vs +0.10 R | No clear edge |
| Indices · Weekly | 246 | 45.5% | 36.5% | +0.37 R vs +0.10 R | Promising |
| Forex · Weekly | 53 | 49.1% | 36.5% | +0.47 R vs +0.10 R | No clear edge |
| Commodities · Weekly | 112 | 38.4% | 40.4% | +0.15 R vs +0.21 R | No clear edge |
| All markets · Weekly | 9,936 | 36.3% | 36.9% | +0.09 R vs +0.11 R | No clear edge |
Data updated November 5, 2026 · code version c2a1683f · Read the methodology. We measure every pattern on crypto and forex (1-hour, 4-hour, daily and weekly charts) and US stocks, ETFs, indices and commodities (daily and weekly charts). A market or timeframe from that list missing from the tables above had no occurrence.
What you often read
“A dragonfly doji breakout, on either side, is a reliable trade signal.”
What our data shows
On 58,832 daily closed trades, the 2:1 trade taken on the side of the first breakout hit its target 35.5% of the time, against 35.0% for the same trade on random dates: no clear edge, since the average result per trade is not statistically significant.
Table quoted in the text (verdicts and every market: see All measurements)
| Market and timeframe | Occurrences (2:1 trades) | 2:1 target hit | Same trade, random dates | Expectancy | Random dates | Verdict |
|---|---|---|---|---|---|---|
| All markets, daily | 58,908 (58,832) | 35.5% | 35.0% | +0.06 R | +0.04 R | No clear edge |
| US stocks, daily | 52,341 (52,288) | 35.4% | 34.8% | +0.06 R | +0.04 R | No clear edge |
| Crypto, daily | 2,694 (2,677) | 33.4% | 34.0% | 0.00 R | +0.02 R | No clear edge |
| Crypto, hourly | 101,381 (101,373) | 29.7% | 32.8% | −0.11 R | −0.01 R | Worse than chance |
| Forex, hourly | 9,724 (9,719) | 31.3% | 32.9% | −0.06 R | −0.02 R | Weak, below chance |
| All markets, weekly | 9,974 (9,936) | 36.3% | 36.9% | +0.09 R | +0.11 R | No clear edge |
Read the table in pairs of columns. On daily data, the trade reached its 2:1 target 35.5% of the time; the same entry, stop and target distances placed on random days of the same assets reached it 35.0% of the time. That gap does not pass our statistical test, once corrected for the thousands of tests we run: +0.06 R per trade against +0.04 R at random, before fees and slippage, is too close to call. On hourly crypto, the trade did worse than chance after correction (−0.11 R); on hourly forex it was also below chance (−0.06 R), but that gap passes a simple test, not our correction. The full table is in the statistics section of this page, and the method in our methodology.
Real cases
The gallery in the Real examples section shows occurrences picked by our bench (best and worst results, textbook shapes, most recent cases and typical draws). The two cases below come from daily crypto charts and are told in more detail. They are recorded sessions, not simulations.
On October 19, 2023, DOT/USDT opened at 3.653, fell to 3.562 and closed at 3.649, with a high at 3.66. The next day it traded above 3.66, triggering the buy stop, with a stop at 3.562 and a target at 3.856, hit on October 21. DOT was 18.3% higher 10 days after the pattern.
On May 3, 2023, XRP/USDT opened at 0.4644, fell to 0.4497 and closed at 0.4632, with a high at 0.4655. On May 5 it broke the high first, triggering the buy stop, with a stop at 0.4497 and a target at 0.4971; on May 7 it fell to 0.4457 and hit the stop, a full 1 R loss. Ten days after the pattern, XRP was 8.5% lower: the break of the high was a false start.
Mistakes, advantages and limitations
- Trading it alone: the daily gap is too small to count and turns negative on hourly data. Trend and support zones are the classical additions; our splits by trend barely changed the result, and we have not tested support zones. Risk management is not optional.
- Entering before the session ends: a tail in the middle of a session can still end near the bottom.
- Advantage: an easy "T" to spot, with a clear stop at the other end of the range.
- Limitation: no direction tested, no proven edge even before costs, and fast losses.
FAQ
Is a dragonfly doji bullish?
It is read as bullish after a decline. Our test assigns it no expected direction. With both sides pooled, the breakout trade did only slightly better than random dates on daily data, a gap too small to count.
What is the best timeframe?
None, in our data. Daily charts, all markets together, are the least bad: no clear edge, where hourly charts did worse than chance. Weekly occurrences had the best raw hit rate (36.3%), but random weeks did better (36.9%).
Summary
A dragonfly doji opens and closes at or near the high of the session, with a long lower shadow and little or no upper shadow. It is read as a bullish reversal after a downtrend. On 58,832 daily trades, the breakout trade reached its 2:1 target 35.5% of the time, against 35.0% at random: a small gap that does not pass our correction, even before costs. Treat it as a location for a trade, not a reason for one: let the market break one side, set the stop at the other end of the range and keep the risk per trade low. This page is educational and is not investment advice; trading involves a risk of loss, and past statistics are no promise of future results.
About the author and the data. Written by Amaury, founder of PatternsWizard, who is passionate about finance, quantitative trading and data analysis. He built the PatternsWizard test bench, which detects each setup with published rules on full market history: crypto, forex, US stocks, ETFs, indices and commodities. Trades and win rates are compared with random bars on the same assets, excess returns with the rest of the market, with error margins and a correction for multiple testing, and the whole pipeline is checked on random-walk prices, where nothing can be predicted. Statistics on this page were generated on November 5, 2026. The full methodology explains every step.
