All posts
PublishedByEvidence recordCandlestick patternsPrice actionEngulfingHammerBacktestUSDJPY

Candlestick Pattern Win Rates: 17 Patterns Tested

Seventeen candlestick patterns backtested on USD/JPY over three timeframes and two years, each measured against the bars that formed no pattern at all.

A candlestick pattern is a name given to the shape of one, two or three bars. The long lower wick is a hammer, a bar that swallows the one before it is an engulfing candle, three rising bars in a row are three white soldiers. Each arrives with a reading attached: price reverses here, or price continues from here.

Formiq's backtest carries 17 of them: hammer, shooting star, pin bar, marubozu, large candle, dragonfly doji, gravestone doji, doji, engulfing, harami, tweezers, inside bar break, morning star, evening star, three white soldiers, three black crows, and three same-coloured candles in a row. All 17 were counted on the same charts with the same exit, on USD/JPY through 2024 and 2025.

The comparison was fixed before anything was counted. Every pattern is measured against the bars that formed no pattern. "Price was higher ten bars after a hammer 54.58% of the time" says nothing on its own, because 50.35% of all hourly bars in 2025 were higher ten bars later. The difference is 4.22 points.

That difference did not survive the change of year. Across 78 cells — 26 pattern directions on three timeframes — the excess over the control was positive in both 2024 and 2025 in 19 of them.

40%45%50%55%60%65%Marubozu (long)Large candle (long)Hammer (long)Engulfing (short)Harami (long)Engulfing (long)Inside bar (long)Marubozu (short)Pin bar (short)Tweezers (long)Pin bar (long)Morning star (long)Evening star (short)Harami (short)Tweezers (short)Three in a row (short)Shooting star (short)Three crows (short)Doji (short)Large candle (short)Inside bar (short)Three in a row (long)Dragonfly doji (long)Three soldiers (long)Doji (long)Gravestone doji (short)share of signals the close ten bars later moved the pattern's way
above the controlbelow the controlthe control, 49.63–50.35% of all barsUSD/JPY hourly 2025, the close ten bars later
Each bar starts at the control for its side and ends at the pattern's own rate, so its length is the whole of the pattern's edge. Twenty-two of the 26 directions finish within five points of the control, and the two that clear it by more than ten came from 86 and 128 occurrences.

What the seventeen patterns actually test

Every one of them reduces to the sizes of the body (open to close), the wicks, and the range (high to low). No indicator is calculated. The table gives each condition and how often it occurred on the hourly chart in 2025.

PatternBarsConditionLongShort2025 rate
Hammer1lower wick ≥ body × 2, upper wick ≤ body4.92%
Shooting star1upper wick ≥ body × 2, lower wick ≤ body4.17%
Pin bar1one wick ≥ body × 2 and longer than the other28.26%
Marubozu1body ÷ range ≥ 0.92.92%
Large candle1range ≥ ATR(14) × 1.5 and body ÷ range ≥ 0.74.46%
Dragonfly doji1body ÷ range ≤ 0.1, lower wick ≥ range × 0.6, upper ≤ range × 0.050.31%
Gravestone doji1body ÷ range ≤ 0.1, upper wick ≥ range × 0.6, lower ≤ range × 0.050.21%
Doji2body ÷ range ≤ 0.05; long after a down bar, short after an up bar5.08%
Engulfing2the body covers the previous body and the colour flips13.50%
Harami2the body sits inside the previous body and the colour flips12.31%
Tweezers2two lows (or highs) within 0.3 × the average range, colour flips35.68%
Inside bar break3bar two sits inside bar three, and the current bar breaks out8.57%
Morning star3down bar, small bar, up bar; the outer bodies twice the middle3.38%
Evening star3the morning star inverted3.35%
Three white soldiers3three up bars, each opening at or above and closing above the last11.63%
Three black crows3three down bars, the mirror condition10.73%
Three in a row3three bodies of the same colour23.42%

The rate is the share of the 6,216 hourly bars of 2025. Tweezers appeared on 35.68% of them and the pin bar on 28.26%, while the gravestone doji appeared 13 times, on 0.21%. One word covers both a shape that occurs on one bar in three and a shape that occurs 13 times a year.

The settings behind each pattern

None of them draws anything. These conditions read the candles already on the chart, so no line and no lower pane appears. In the backtest builder each one is a named condition, and the eight with a threshold expose it as a number.

ConditionFieldDefaultWhat changes
Hammerlower wick ratio2raising it keeps only longer lower wicks and cuts the count
Shooting starupper wick ratio2the same filter on the upper wick
Pin barwick ratio2applies to the long and the short side together
Marubozubody ratio0.9closer to 1 leaves only bars with almost no wick
Large candleATR multiple1.5how many times the current ATR(14) the range must reach
Large candlebody ratio0.7the minimum share of the range the body must fill
Dojibody ratio0.05raising it lets bars with visible bodies count as doji
Tweezerstolerance0.3how far apart two lows (or highs) can sit and still match, as a share of the average range
Three in a rowcount3how many same-coloured bodies are required

The other nine conditions have no numeric field at all. Dragonfly doji, gravestone doji, engulfing, harami, inside bar break, morning star, evening star, three white soldiers and three black crows are defined entirely by the shape.

The published trading rule

The presentation is the same in every case. Reversal shapes (hammer, shooting star, pin bar, dragonfly doji, gravestone doji, doji, engulfing, harami, tweezers, morning star, evening star) are read as a turn and traded against the move that preceded them; continuation shapes (marubozu, large candle, three white soldiers, three black crows, three in a row, inside bar break) are read as a push and traded with it.

Every test here enters in the direction the pattern points, at the close of the bar that completed it.

How this was measured

ItemValue
PairUSD/JPY
Timeframes15-minute, hourly, 4-hour
Period1 January 2024 to 31 December 2025
Detectionthe same code the backtest runs, bar by bar
Controlevery bar of the same window and timeframe
Horizonthe close 1, 5, 10 and 20 bars after the signal bar
Exitthe close 10 bars after entry, with no stop, target or opposite signal
Spread0.3 pips, fixed
Lot0.1
Fillat the close

Fixing the exit at a bar count is what makes the 17 comparable. Eight of them (hammer, dragonfly doji, morning star, three white soldiers, shooting star, gravestone doji, evening star, three black crows) only ever produce one side. A hammer is a buy and there is no hammer that sells, so there is no opposite signal to close against. Giving half the set a signal exit and the other half a clock would turn the comparison into a comparison of exits.

Seventeen names, but not seventeen different bars

Before counting anything forward, the conditions were checked against each other: how often two of them fired on the same bar in the same direction, hourly, 2025.

Inner conditionOuter conditionSharedShare of the innerShare of the outer
Hammer (long)Pin bar (long)306100%32.66%
Dragonfly dojiPin bar (long)19100%2.03%
Three white soldiersThree bullish in a row723100%95.38%
Shooting starPin bar (short)259100%31.59%
Gravestone dojiPin bar (short)13100%1.59%
Three black crowsThree bearish in a row667100%95.56%
Gravestone dojiShooting star1292.31%4.63%

All 723 three-soldier signals were also three bullish candles in a row. There were 758 such runs, so the extra clauses that make a run of three into three white soldiers (each open at or above the previous open, each close above the previous close) removed 35 bars, 4.62% of them. Three black crows behave the same way: 667 of the 698 bearish runs qualified.

The hammer is the same story. All 306 hammers were pin bars, 32.66% of the 937 long pin bars. A hammer is the long side of a pin bar with one clause added: the upper wick must not exceed the body.

The overlap matters when the results arrive. Comparing three white soldiers with a plain run of three is comparing a set of bars with 95% of itself.

Against the bars that made no pattern, the edge disappears

Over the 6,216 hourly bars of 2025, 50.35% closed higher ten bars later and 49.63% closed lower. That is the control. The 26 pattern directions, counted the same way:

PatternSide2025 count2025 ratevs control2024 count2024 ratevs control
Hammerlong30654.58%+4.2234756.48%+1.57
Shooting starshort25949.03%-0.6024744.53%-0.47
Pin barlong93750.69%+0.34104556.46%+1.55
Pin barshort82051.10%+1.4781744.92%-0.09
Marubozulong8663.95%+13.6011461.40%+6.49
Marubozushort9652.08%+2.459340.86%-4.15
Large candlelong12861.72%+11.3613656.62%+1.71
Large candleshort14948.32%-1.3113043.08%-1.93
Dragonfly dojilong1947.37%-2.992433.33%-21.58
Gravestone dojishort1338.46%-11.171145.45%+0.45
Dojilong15844.94%-5.4214959.06%+4.15
Dojishort15848.73%-0.9019240.63%-4.38
Engulfinglong44352.60%+2.2441556.14%+1.23
Engulfingshort39654.29%+4.6640349.38%+4.37
Haramilong38353.52%+3.1740553.33%-1.58
Haramishort38249.74%+0.1139745.84%+0.84
Tweezerslong107550.88%+0.53103554.11%-0.81
Tweezersshort114349.52%-0.11115644.72%-0.28
Inside bar breaklong27652.54%+2.1830153.49%-1.42
Inside bar breakshort25747.86%-1.7729841.61%-3.40
Morning starlong21050.00%-0.3521553.95%-0.96
Evening starshort20850.00%+0.3721737.33%-7.68
Three white soldierslong72347.30%-3.0582456.55%+1.64
Three black crowsshort66749.03%-0.6065447.09%+2.09
Three in a rowlong75847.49%-2.8685456.21%+1.29
Three in a rowshort69849.28%-0.3567046.72%+1.71

The morning star finished below its control in both years. It occurred 210 and 215 times on the hourly chart, and 50.00% and 53.95% of those signals were followed by a higher close ten bars later, against controls of 50.35% and 54.91%. The evening star came in at 37.33% in 2024 against a 45.01% control, 7.68 points short.

The two widest gaps, the long marubozu at +13.60 and the long large candle at +11.36, came from 86 and 128 occurrences. Both are continuation shapes: a large bullish body followed by a higher close, not a reversal.

Counting the 15-minute and 4-hour charts the same way gives 78 cells. The excess was positive in both years in 19 of them. The sign agreed across the two years in 43, against the 39 a coin would give.

Restricted to the 57 cells with at least 100 signals in each year, the correlation between the 2024 excess and the 2025 excess is -0.15, and the sign agreed in 31 of the 57. Beating the control one year did not predict beating it the next.

No pattern direction cleared its control in all six cells (three timeframes × two years). The long hammer, the long large candle and the short harami each managed five. The long hammer's miss was the 15-minute chart in 2025, by 1.13 points.

A 58% win rate mostly records whether the year went up

The control itself moves a long way between years and timeframes. With no pattern involved, entering on every bar and holding a fixed number of bars:

TimeframeYear1 bar5 bars10 bars20 barsBars
15-minute202550.22%50.71%50.34%50.60%24,893
15-minute202451.39%52.11%52.95%54.71%24,999
Hourly202550.39%50.73%50.35%50.63%6,216
Hourly202451.70%54.66%54.91%57.38%6,250
4-hour202550.78%50.97%49.56%48.68%1,600
4-hour202453.53%57.12%59.16%62.31%1,616

USD/JPY opened 2024 at 140.87, reached 161.95 on 3 July and 139.58 on 16 September, and closed the year at 157.20. It opened 2025 at 157.23, bottomed at 139.89 on 22 April, and closed at 156.67. One year ended higher than it began and the other ended where it began, and the table records exactly that.

On the 4-hour chart in 2024, buying any bar at all and holding ten bars was followed by a higher close 59.16% of the time. The same thing in 2025 gives 49.56%. That 9.6-point gap is close to the widest gap any pattern produced (the long marubozu, 13.60 points). When a bullish pattern is quoted at a 58% win rate, the control has to be quoted beside it before the number means anything.

Requiring a downtrend before the hammer did not help

Most write-ups say the shape alone is not enough: a hammer counts only after a decline, and the identical shape inside an uptrend does not.

Each set of signals was split by the close-to-close move over the five bars leading into the pattern — the way the pattern is supposed to reverse, or the other way. The 128 cells where both halves held at least 30 signals:

PatternSideAllTextbook contextAgainst it
Hammerlong54.58%54.61% (152)54.90% (153)
Engulfinglong52.60%49.11% (224)56.16% (219)
Engulfingshort54.29%53.40% (206)55.03% (189)
Morning starlong50.00%48.57% (105)51.43% (105)
Evening starshort50.00%47.52% (101)52.34% (107)
Three white soldierslong47.30%49.86% (355)44.84% (368)
Three black crowsshort49.03%44.41% (331)53.43% (335)

The textbook half had the higher rate in 58 of the 128 cells. On the hourly chart in 2025 the hammer read 54.61% with the decline and 54.90% without it, and the long engulfing was 7.05 points better when the five bars before it had risen.

The requirement also halves the number of signals. Halving the count without moving the rate leaves nothing behind.

Backtested: seven patterns at most cleared both years

Counting closes is not trading. Each pattern was entered at the close of the signal bar at 0.3 pips of spread, 0.1 lots, and closed ten bars later.

Hourly

Pattern2025 trades2025 win rate2025 net pips2024 trades2024 win rate2024 net pips
Hammer20253.96%+791.522657.08%+1721.2
Shooting star18251.10%+55.917346.82%-68.1
Pin bar45851.97%+1229.846253.03%+977.2
Marubozu14858.78%+624.314753.74%+55.1
Large candle19852.02%+53.317152.63%+327.1
Dragonfly doji1844.44%-90.12334.78%-232.8
Gravestone doji1338.46%-127.11145.45%-13.0
Doji21149.76%+143.821949.77%-502.4
Engulfing35651.40%+1000.936854.08%+2449.2
Harami34447.67%-662.336246.13%-2657.8
Tweezers48151.14%+1059.048447.31%-1114.6
Inside bar break30451.32%+727.031245.83%-360.4
Morning star16448.17%-68.517554.29%-281.3
Evening star16151.55%+817.616938.46%-1619.7
Three white soldiers26548.68%+663.829253.77%+393.0
Three black crows25949.81%+220.226444.32%-662.8
Three in a row40746.68%-1249.940850.74%+1418.5

Six patterns finished both years in profit on the hourly chart: hammer, pin bar, marubozu, large candle, engulfing and three white soldiers. On the 15-minute chart two did (marubozu and morning star) and on the 4-hour chart seven did (hammer, shooting star, gravestone doji, doji, engulfing, inside bar break and three white soldiers). The 4-hour gravestone doji traded twice in 2025 and once in 2024.

No pattern cleared both years on all three timeframes. The hammer and the engulfing candle, which both cleared the hourly chart, do not survive the 15-minute one: the hammer went from +1376.9 pips in 2024 to -25.2 in 2025, and the engulfing candle lost money in both years there (-485.2 and -496.7).

The 15-minute losses are a trade-count problem. Tweezers traded 1,952 times in a year and paid 585.5 pips of spread doing it.

Split 2025 in half

Every combination that cleared both years, measured again over January to June and July to December of 2025:

TimeframePattern2025Jan-JunJul-Dec
15-minuteMarubozu+365.0+677.1-312.0
15-minuteMorning star+416.0-342.2+758.3
HourlyHammer+791.5-66.2+857.7
HourlyPin bar+1229.8+782.6+439.4
HourlyMarubozu+624.3-81.2+705.5
HourlyLarge candle+53.3+34.1+19.2
HourlyEngulfing+1000.9+395.5+604.6
HourlyThree white soldiers+663.8-457.3+1121.1
4-hourHammer+122.6-516.6+655.9
4-hourShooting star+73.8+620.3-546.5
4-hourGravestone doji+335.3+240.8+94.5
4-hourDoji+1955.3+2302.2-346.8
4-hourEngulfing+395.4-66.2+619.6
4-hourInside bar break+969.2+456.2+490.3
4-hourThree white soldiers+1136.1+454.8+674.0

Six of the 15 combinations were profitable in both halves. The hourly three white soldiers finished 2025 at +663.8 pips and the first half of it at -457.3. Two profitable years is not the same as a consistently profitable rule.

Buying last year's winner

Take whichever pattern earned the most in 2024 and hold it through 2025.

Timeframe2024 winner2024 net pips2025 net pips2025 rank2025 median of 17
15-minuteHammer+1376.9-25.27th-372.7
HourlyEngulfing+2449.2+1000.93rd+220.2
4-hourHammer+1641.7+122.67th+73.8

All three beat the following year's median, which is the opposite of what most indicators in this series have done. The amounts shrank in every case: +1376.9 pips became -25.2 on the 15-minute chart. Seventh place still beats the median there because 11 of the 17 patterns lost money on the 15-minute chart in 2025.

Does three in a row need to be three?

Three white soldiers, three black crows, the morning star and the evening star are all defined on three bars. Running the count from two to six changes how many same-coloured bodies are required before entry.

TimeframeCount2025 trades2025 net pips2024 trades2024 net pips
Hourly2517-778.8524-699.5
Hourly3407-1249.9408+1418.5
Hourly4261-484.0291+527.5
Hourly5152+155.1166+2253.7
Hourly684+32.290+710.2

Five and six cleared both years on the hourly chart. Three was the worst of the five on that chart: +1418.5 pips in 2024 and -1249.9 in 2025, the widest swing in the ladder. Neither the 15-minute nor the 4-hour chart produced a count that cleared both years, so 2 of the 15 combinations survived and both of them sat at five or six bars.

Longer runs are rarer. The hourly six-bar run traded 84 times in 2025, and +32.2 pips over 84 trades is 0.38 pips each. At a 0.7-pip spread instead of 0.3, that year finishes negative.

Stops, targets and cost

The win rate is set by the exit

The same entry, with the exit changed. Hourly hammer:

Stop / target2025 trades2025 win rate2025 net pips2024 net pips
none (10-bar exit)20253.96%+791.5+1721.2
30 / 6023143.29%+213.1+464.5
60 / 3023062.61%+318.5+369.2
50 / 5022452.23%+49.6+492.4

Identical entries, and the win rate runs from 43.29% to 62.61%. A stop at twice the target raises the win rate and lowers the net pips in both years. A pattern advertised at "60% winners" is describing an exit as much as an entry.

The trade count rises from 202 to about 230 because a stop or target ends a position early, which frees the engine to take signals it would otherwise have sat through.

Cost

Spread paid matched trade count × 0.3 pips in every one of the 51 timeframe-pattern runs.

TimeframePatternTradesSpread paidTrades × 0.3
15-minuteTweezers1952585.5585.6
15-minutePin bar1838551.3551.4
15-minuteEngulfing1455436.5436.5
HourlyTweezers481144.3144.3
4-hourTweezers12437.237.2

Removing the spread entirely flipped the sign of 2 runs out of 51: the 15-minute hammer and the 15-minute large candle. The rest of the losses come from the entry, not from paying for it too often.

Notes

The data is USD/JPY from 1 January 2024 to 31 December 2025. Fills are at the close, the spread is fixed at 0.3 pips, and the lot is 0.1. Detection uses the same code path as the backtest and reads bars from before the test window. Because the horizons run 1, 5, 10 and 20 bars forward, that many bars at the end of each year are excluded from the counts. The dragonfly doji and the gravestone doji occur around 20 times a year on the hourly chart and between 1 and 6 times on the 4-hour chart, so their figures move a long way on a single trade.

Questions people ask

What is the win rate of candlestick patterns?
On hourly USD/JPY in 2025, counting the close ten bars after each signal, the highest of the 17 patterns was the bullish marubozu at 63.95% from 86 occurrences and the lowest was the gravestone doji at 38.46% from 13. Over the same 6,216 bars, 50.35% of all bars closed higher ten bars later and 49.63% closed lower. Twenty-two of the 26 pattern directions finished within five points of that control.
Which candlestick pattern has the best win rate?
No pattern held the position across timeframes or years. Of the 78 cells (17 patterns, 26 directions, three timeframes), the excess over the control was positive in both 2024 and 2025 in 19. The bullish hammer was the widest, clearing its control in five of its six cells, and it fell 1.13 points short on the 15-minute chart in 2025. None cleared all six.
Do three white soldiers and three black crows work?
Neither could be told apart from three same-coloured candles in a row. All 723 hourly three-soldier signals in 2025 were also three consecutive bullish candles, and 95.38% of those 758 runs qualified as three soldiers. Ten bars later, 47.30% of three-soldier signals had risen against 47.49% for the plain run, both below the 50.35% base rate.
Does a hammer need a downtrend before it?
Adding that requirement did not improve the result. Splitting each pattern by whether the five bars leading into it moved the way the pattern is supposed to reverse, the textbook half had the higher hit rate in 58 of the 128 cells where both halves carried at least 30 signals.
Can I backtest candlestick patterns in Formiq?
Yes. All 17 appear as entry conditions in the backtest builder, and eight of them expose a threshold such as the wick-to-body ratio. Every figure in this article was counted with that same code.

Formiq is a free browser-based FX terminal with replay practice and no-code backtesting. Open the chart or see what the free plan includes.