ATMResearch
Join Overfit - free
Overfit cover card on a dark navy gradient, kicker '13 candlestick patterns': the headline '4 rules passed. Random patterns: 3.5.' over the line '260 rules on the USDJPY candle. Half of 100 random pattern sets passed 4 or more.', with a corner badge reading 'USDJPY, 2002 to 2026'.
  1. Overfit/
  2. Research/
  3. USDJPY Candlestick Chart Patterns: 13 Tested, None Beat Chance

November 15, 2024

USDJPY Candlestick Chart Patterns: 13 Tested, None Beat Chance

Share

8 min read

Written by Ali Casey, founder of StatOasis and AlgoChef, creator of the Algo Trading Masterclass (ATM), with over 10 years of experience building systematic trading tools - building algorithmic strategies, testing ideas with data, and teaching traders how to build structured, portfolio-based trading workflows.

Published November 15, 2024 · Updated October 29, 2026 · Method

← Back to Research
Table of contents▾
  • TL;DR: the answer box
  • What is a candlestick pattern, and how did I test it?
  • Do candlestick patterns work on the USDJPY candlestick chart?
  • Is the red spinning top an edge on USDJPY?
  • Does combining a long and a short pattern reduce drawdowns?
  • Do direction and volatility filters improve the patterns?
  • Where does a candlestick pattern actually show up?
  • The verdict, and the honest limits
  • What this means for you
  • Reference tables
  • Methodology
  • FAQs

The short version

I tested 13 single-candle patterns on the USDJPY candlestick chart from 2002 to 2026, in 260 rules, after costs. 4 rules passed a fair test. Then I ran the same 260 rules on random "patterns" that fire just as often, 100 times over. Random patterns passed 3.5 on the median, and half of the random sets passed 4 or more. On USDJPY, the candlesticks did no better than luck.

TL;DR: the answer box

  • As a group, the patterns did not beat chance on USDJPY. 4 of 260 rules passed. Random patterns passed 3.5 on the median, and 50% of 100 random sets passed 4 or more.
  • "It made money" is the wrong test. 78 of 260 USDJPY rules made money after costs. Random patterns made money in 71 on the median.
  • Most winners were simply long. 59 of the 78 money-making rules bought USDJPY. The USDJPY candle rose 87% over the window, and buying it on every day the test could trade, holding 4 bars, made 0.041% a trade after costs.
  • Adding the Bearish IBS short doubled the long leg's worst drop. Red spinning top long plus Bearish IBS short made $69,588 together, but the worst drawdown was $20,400, against $9,712 for the red spinning top alone. Profit per dollar of worst drop fell from 4.78 to 3.41.
  • One pattern did beat its random twin, but on ES, not the yen. Buying a weak close passed 5 rules on ES, and its random twin never reached 5 in 100 sets. On USDJPY it passed none.

What is a candlestick pattern, and how did I test it?

A candlestick shows one day of trading. The thick part, the body, runs from the open to the close. The thin lines, the wicks, reach to the day's high and low. Green means the day closed above its open. Red means it closed below.

A candlestick pattern is a shape with a name. A doji has almost no body. A hammer has a long lower wick. Traders read these shapes as clues about what comes next.

The 13 shapes tested. Some show up every week, some a few times a decade.

Two of the 13 are less known. IBS, internal bar strength, is where the close sits in the day's range, from 0 at the low to 1 at the high. Bullish IBS is a close in the top fifth of the range. Bearish IBS is a close in the bottom fifth: a weak close. Every pattern has an exact rule, listed in the reference table at the end. A pattern you cannot write as a rule cannot be tested.

The market. I don't hold a spot USDJPY file. I hold CME Japanese yen futures, which are quoted the other way up, in dollars per yen. So every daily bar is flipped into the USDJPY candle a forex trader sees. The trade goes into the futures with the direction mirrored: long USDJPY is short yen futures. One contract is 12,500,000 yen.

The rules. Each pattern was traded long and short. There were two ways in: buy at the next open, or buy only if price breaks past the pattern day's high or low the next day. There were five ways out: sell after 1, 2, 3 or 4 bars, or hold up to 12 bars with a stop and a target. That makes 260 rules on USDJPY. The same 260 ran on ES (S&P 500 futures) and SPY as a second view.

The fills: Execution rule v2. The pattern is read at the close, after the day is done. A market entry fills at the next open, long or short. A breakout entry fills on the next bar at its stop. A time exit closes the trade at a later open, and a stop or target fills at its price. One trade at a time. You can't trade a candle before it has finished, and this test doesn't either.

The pass test. Here is the key idea. For every rule I took the same trade on every eligible day, with no pattern at all. That is the base rate. A rule passes when it has at least 50 trades and beats its own base rate, after costs, by about two standard errors. In plain words: by a margin too big to shrug off as noise in one rule.

The luck test. Then I swapped each real pattern for a random one that fires on just as many days. I ran all 260 rules through the same pass test, and did that 100 times.

The luck test in one picture: same candles, same number of signals, random days.

Try enough rules and some will pass by luck alone. The luck test counts how many.

Do candlestick patterns work on the USDJPY candlestick chart?

Not as a group. Four rules passed. Random patterns passed about as many.

Half of the random pattern sets did at least as well as the real candlesticks.

Real candlestick patterns passed 4 rules. Random patterns passed 3.5 on the median. One random set in two did at least as well as the real thing.

The real count sits in the middle of what luck produces.

Think of it like a metal detector on a beach. Sweep 260 squares and it will beep a few times, whatever is buried. Four beeps are not a find. A find is one spot that beeps again and again, more often than an empty beach would.

Making money is not the same as passing. 78 of 260 rules made money after costs. That sounds like a lot of edges. But random patterns made money in 71 rules on the median.

78 rules made money. Only 4 beat their own base rate by two standard errors.

One of the 4 passing rules even lost money: -0.031% a trade after costs. It passed because its base rate lost more. A pass means the rule beat the same trade on every eligible day. It does not mean the rule pays.

Did the same test work better on other markets?

Best on ES. Weaker on SPY, and weakest on USDJPY.

On ES the real patterns got furthest from luck.

The same 260 rules passed 10 times on ES, against a random median of 5. Only 10% of random sets reached 10. On USDJPY, 50% of random sets did as well as the real patterns. So the same test told real from random better on ES than on the yen.

Did any single pattern beat its random twin?

No. Here is every pattern, drawn, next to its result.

Bright cells sit in the long column. Passes are rare and scattered.

Look down the long column. The spinning top, red spinning top, hammer and bullish marubozu each made money in 9 of 10 long rules. Now look at the short column. Mostly dark.

Bearish IBS came closest to a real result. Its random twin matched its 2 passes in 6% of sets. That is still above 5%. And it is the best of 13 patterns, picked after the results were in. So 6% is the most flattering number on the page, not a fresh test.

Is the red spinning top an edge on USDJPY?

On this test, no. It made money only on the side of the trend, and 1 of 20 rules beat its base rate by two standard errors.

A red spinning top is a small red body with wicks on both sides. The day went up, went down, and closed a little below where it opened. Here is one trade, close to the typical trade for the rule "buy at the next open, sell 4 bars later".

The signal candle's body was 18% of its range. The trade made $188 on one contract.

The red spinning top closed on 2026-07-07. Its body was 18% of the day's range, with an upper wick of 33% and a lower wick of 50%. The trade bought USDJPY at the next open, 161.23, and sold at the open four bars after entry, 161.62. $188 on one contract. The median trade over all 277 was $156.

Nine of its ten long rules made money. That looks strong, until you check the base rate.

Buying USDJPY on every day the test could trade made money at every fixed hold. Selling lost.

Over this window the USDJPY candle rose 87%. Buying at the next open on every day the test could trade, and holding 4 bars, made 0.041% a trade after costs. Selling the same way lost 0.066%. So a long rule could make money with no help from the pattern at all.

59 of 78 winners were long, in a window when USDJPY rose 87%.

Across all patterns, 59 of 130 long rules made money. Only 19 of 130 short rules did. The red spinning top's one passing rule, the breakout entry held one bar, beat its base rate on 144 trades. Its random twin passed one or more rules in 28% of sets.

Does combining a long and a short pattern reduce drawdowns?

Not against the better leg. It added profit and doubled the red spinning top's worst drawdown.

A drawdown is the biggest drop from a high point. Traders often pair a long pattern with a short one, so each covers the other's bad spells. I tested the red spinning top long with Bearish IBS short. Both used one setting, fixed before I saw the results: enter at the next open (buy for the spinning top, sell for Bearish IBS), hold 4 bars. Not each leg's best cell.

The short leg added profit. The pair's worst drop was $20,400, against $9,712 for the long leg alone.

The two legs barely moved together: the correlation of their monthly profit was -0.15. That is the reason to pair them. Here it did not cut the long leg's worst drop.

More profit, a much deeper drop, and less profit per dollar of pain.

The short leg was weak on its own. It won 49.4% of its trades, with a profit factor of 1.08 and a worst drop of $22,225. (Profit factor is dollars won for each dollar lost.) Bolted onto the long leg, it lifted profit to $69,588 and cut profit per dollar of worst drop from 4.78 to 3.41.

Neither leg beat its base rate by two standard errors at this setting either. So neither half of the pair has a tested edge behind it. I did not run the pass test on the pair as one book.

Do direction and volatility filters improve the patterns?

Not here. No filter beat the plain rule's profit per dollar of worst drop on either leg.

A filter is one extra condition before a trade. I used the engine's two standard ones, read at the signal close. Direction: is the 100-day average higher than it was 10 bars ago? Volatility: is the average daily range, ATR(20), higher than it was 5 bars ago? ATR, or average true range, is a standard gauge of recent daily movement. That gives nine settings per leg, the plain rule included.

The plain rule ranked first on both legs.

For the red spinning top, 0 of 8 filtered versions beat the plain rule's 4.23. For Bearish IBS, 0 of 8 beat its 1.02. Some filters lifted the profit factor, on fewer trades. But the "volatility rising" filter turned Bearish IBS short into a loser: -$15,419 on 340 trades. The filters sorted the trades into smaller piles. They did not find an edge.

Where does a candlestick pattern actually show up?

In this test, on ES and not on the yen. Buying a weak close passed 5 rules on ES and none on USDJPY.

Buying the weak close beat its random twin in all 100 sets on ES. On the yen it never got started.

Buy ES after it closes in the bottom fifth of its range. Five rules passed, all long, and the random twin never reached five in 100 sets. On SPY the same pattern passed 3 rules, and its twin matched that in 1% of sets. On USDJPY, the same trade passed 0 rules.

Same shape, three markets, three different answers. In stocks, buying a weak close passed rules on both ES and SPY. In the yen it passed none.

The verdict, and the honest limits

On daily USDJPY candles from 2002 to 2026, after costs, the 13 candlestick patterns did not beat chance. Four rules passed. Random patterns pass 3.5.

Where the belief is right: candlestick rules can make money on USDJPY. 78 of 260 did after costs. And one shape did beat its random twin: a weak close, bought on ES.

Where it is wrong: making money is not an edge. Random patterns made money in 71 rules on the median. Most winners were long, in a window where buying USDJPY on every day the test could trade, holding 4 bars, made money too. Pairing two patterns doubled the long leg's worst drop. No filter lifted profit per dollar of worst drop.

I know this trap from the inside. I lost roughly $270,000 early in my trading to overfitting and leverage. A few hundred untested combinations, with the winners picked out, is exactly how that starts.

The limits, in plain words:

  • Yen futures, not spot. The USDJPY candle here is built from CME futures. A spot broker's daily candles differ a little, so your chart will not match every bar.
  • Adjusted old prices. The futures history is stitched across contract rolls. Percent moves are exact, but early price levels and dollar amounts are scaled.
  • No limit-order entry. Buying below the pattern day with a limit order was not tested. The engine has no limit-entry order yet.
  • Daily, single candles only. Nothing here covers intraday charts or multi-candle patterns such as engulfing or morning star.
  • Dollars without costs. The pass test is after costs. The dollar figures are not.
  • One definition per shape. Each shape was coded with one set of thresholds. Other thresholds would fire on different days and would need the same luck test.
  • A backtest is the past. It is the best evidence we have, not a promise.

What this means for you

  1. Count your passes against random ones first. If random patterns firing as often give you as many winners, your rules have not beaten the noise floor on that test.
  2. Test against the base rate, not against zero. On USDJPY, buying on every day the test could trade and holding 4 bars made money. A long pattern that "works" may only be long.
  3. Measure a long and short pair before you trust it to cut risk. This one doubled the long leg's worst drop.
  4. Run the luck test on the market you trade. The weak-close buy beat its random twin in all 100 sets on ES and passed nothing on USDJPY.
  5. Stress the trade list before real money goes in. That is what AlgoChef is for: import the trades from your platform and run a Monte Carlo reshuffle and an in-sample versus out-of-sample split.

A candle shows you what the day did. Whether it tells you about tomorrow is a question for a random control, not for the shape.

Reference tables

For readers who want the detail behind the charts.

Table 1. The 13 patterns, as coded

PatternRuleSignals on USDJPYShare of days
Dojibody no more than 10% of the range63110.1%
Long-legged dojia doji with both wicks at least 30% of the range3205.1%
Dragonfly dojia doji with the upper wick no more than 10% of the range200.3%
Gravestone dojia doji with the lower wick no more than 10% of the range120.2%
Spinning topbody over 10% and up to 30% of the range, both wicks at least 25%65510.5%
Red spinning topa spinning top that closes below its open3455.5%
Green spinning topa spinning top that closes above its open3105.0%
Hammerbody over 10% of the range, lower wick at least 2x the body, upper wick no more than 10%1151.8%
Shooting starbody over 10% of the range, upper wick at least 2x the body, lower wick no more than 10%711.1%
Bullish marubozucloses above its open, body at least 90% of the range681.1%
Bearish marubozucloses below its open, body at least 90% of the range350.6%
Bullish IBSIBS at least 0.80: the close in the top fifth of the range1,39222.3%
Bearish IBSIBS at most 0.20: the close in the bottom fifth of the range99816.0%

These follow the textbook shapes in StockCharts' candlestick reference, with exact thresholds. Three fire fewer than 50 times in 24.63 years, so no rule built on them can pass.

Table 2. The four USDJPY rules that passed

RuleTradesMean per trade after costsBase ratet over baseNet profit (no costs)Ret/DDProfit factor
Bearish IBS, short, market entry, hold 18530.017%-0.036%2.87$34,8812.121.17
Bearish IBS, short, breakout entry, 12 bars, 1 ATR stop and target613-0.031%-0.098%2.15-$8,058-0.260.97
Red spinning top, long, breakout entry, hold 11440.078%0.017%2.10$18,7448.822.07
Doji, short, breakout entry, hold 42460.073%-0.047%2.00$28,5001.391.26

t over base is how many standard errors the rule's mean beats its base rate by. Ret/DD is net profit divided by the largest dollar drawdown.

Table 3. The two-pattern portfolio, legs alone (market entry, hold 4)

LegTradesWin rateAverage tradeNet profitMax drawdownRet/DDProfit factort over base
Red spinning top, long27756.0%$168$46,431$10,9754.231.400.97
Bearish IBS, short59149.4%$39$23,156$22,7061.021.081.89

Max drawdown here is the engine's standard measure. The worst drops in the charts use profit booked at each exit, so the two differ.

Want the next study when it is finished, including the ones that overturn something traders believe? That is what the newsletter is for: StatOasis.com/Overfit

Methodology and honesty footer: 13 single-candle patterns in 260 rules per market on daily bars, 2002 to 2026: USDJPY through CME yen futures with the direction mirrored, plus ES and SPY. Execution rule v2 (pattern at the close, fill at the next open or on the next bar's stop). One position at a time, one contract on futures, SPY $35,000 in whole shares, no compounding. The pass test is after costs, at $16 a round turn on yen futures, and dollar figures are frictionless. Each market's pass count is set against 100 seeded sets of random patterns firing as often, and the honesty baselines (buy-and-hold and a seeded random control) are computed on the same bars. Every figure here comes from the study's own results tables. This is research, not investment advice.

Methodology

Data source
Daily bars from TradingView exports. USDJPY is tested through CME Japanese yen futures (6J, continuous 6J1!, ratio back-adjusted), quoted in US dollars per yen: each bar is inverted into the USDJPY candle (open 1/O, high 1/L, low 1/H, close 1/C), patterns are read on that candle, and trades are placed in the future with the direction mirrored. ES (E-mini S&P 500 continuous futures) and SPY as a second view. IBS from engine.oscillators.ibs and ATR(20) from engine.oscillators.average_true_range, both admitted engine indicators. The 13 patterns are study rules on the bar's own prices.
Date range
2002-01-02 to 2026-08-21, 24.63 years: 6,239 yen futures bars, 6,237 ES bars, 6,198 SPY bars (SPY to 2026-08-20). Indicators warm up on earlier bars.
Entry / exit rules
13 single-bar patterns (doji, long-legged doji, dragonfly doji, gravestone doji, spinning top, red and green spinning top, hammer, shooting star, bullish and bearish marubozu, Bullish IBS at 0.80 or above, Bearish IBS at 0.20 or below), each long and short in the candle's own direction. Entries: market (the next open) or breakout (a stop one tick beyond the signal bar's high or low, good for the next bar only). Exits: the open of the entry bar plus 1, 2, 3 or 4, or a 12-bar cap with a 1 x ATR(20) stop and target from the entry.
Sizing
One 6J contract (12,500,000 yen) and one ES contract, SPY $35,000 in whole shares, no compounding. The pass test and the profitable count use per-trade percent returns after the engine's atr-handbook-2026-09-24 cost schedule ($4.00 a round turn plus one tick of slippage a side, $16 a round turn on 6J). Dollar figures are frictionless. The ratio back-adjustment keeps percent moves exact and scales early dollar amounts.
Overlap mode
Flat-only: one position at a time per rule. A setup while a position is open is ignored, including on the bar the exit order is placed (Execution rule v2).
Look-ahead
Every pattern and filter is read at a bar's close, after it has printed. Market entries fill at the next open, breakout entries on the next bar at their stop, time exits at a later open. A stop or target fills intrabar at its price.
Minimum sample
50 trades (the engine default). A rule under 50 trades cannot pass, and three patterns fire fewer than 50 times on USDJPY (dragonfly doji 20, gravestone doji 12, bearish marubozu 35).
Buy-and-hold benchmark
Long one yen futures contract over the same window: $-69,093.75 net, CAGR 0.00%, worst drawdown 144.43% (2026-07-28). ES one contract: $291,600.00 net, CAGR 9.49%, worst drawdown 89.13% (2009-03-09). SPY $35,000: $196,836.96 net, CAGR 7.98%, worst drawdown 56.47% (2009-03-09). Computed by tools/controls_report.py.
Random control
Seeded long-only random entries matched to the study's median variant (265 entries on the yen futures, 266 on ES, 269 on SPY, 2-bar hold), exits at the next open under Execution rule v2, 10 seeds from base seed 20260803. Net profit: yen futures $-7,503.75 (sd $23,267.93), ES $12,611.25 (sd $22,680.91), SPY $8,425.08 (sd $9,137.51). Computed by tools/controls_report.py. The study's own chance test is the 100 random pattern sets above.
Parameter scopeParameters swept

The study searched the parameter space and reports the spread, not one tuned setting.

260 rules per market (13 patterns x 2 directions x 2 entries x 5 exits), 780 across USDJPY, ES and SPY, every one reported. Each market's real count is set against 100 seeded sets of 13 random patterns firing as often, run through the same rules. The two-pattern portfolio was fixed before its results were read (market entry, hold 4), not chosen as its best cell. Its filters were then swept over all 9 direction and volatility settings.

Run to v1 of the StatOasis research standard - the rules every study here has to meet before it is published. The version is the study's own: a standard that gained a rule later never reaches back and claims this one met it.

Historical backtest results are not a guarantee of future returns. This content is for educational purposes only and is not investment advice. Hypothetical performance disclosure (CFTC Rule 4.41).

Frequently asked questions

Do candlestick patterns work in forex?⌄

On USDJPY, not as a group. I tested 13 single-candle patterns in 260 rules from 2002 to 2026, after costs. 4 rules beat their base rate by two standard errors. Random patterns that fire as often passed 3.5 on the median, and 50% of 100 random sets passed 4 or more. In this test the patterns did no better than luck.

Which candlestick patterns are most reliable for USDJPY?⌄

None cleared chance in this test. The closest was Bearish IBS, a close in the bottom fifth of the day's range, traded short USDJPY: 2 of its 10 short rules passed, and a random pattern firing as often did that in 6% of 100 sets. Its best rule, sell USDJPY at the next open and buy back a bar later, made 0.017% a trade after costs over 853 trades, with a Ret/DD of 2.12.

What does a spinning top candlestick mean?⌄

A small body, here over 10% and up to 30% of the day's range, with a wick of at least 25% of the range on each side. The day went both ways and closed near where it opened. On USDJPY it showed up 655 times from 2002 to 2026, and none of its 20 rules passed the test.

Can candlestick patterns be used alone?⌄

Not on this evidence. Alone, the 13 patterns matched what random days produce on USDJPY. Adding the two standard trend and volatility filters did not raise Ret/DD either: on both legs of the study's portfolio, 0 of 8 filtered versions beat the plain rule's Ret/DD.

What pair correlates with USDJPY?⌄

Japanese yen futures (CME 6J) are its mirror image. They are quoted in dollars per yen, the other way up from USDJPY. This study reads every pattern on the USDJPY candle built from those futures and trades the futures in the opposite direction, so long USDJPY is short yen futures.

What time frame is best for candlestick patterns?⌄

This study tested daily candles only, so it cannot rank time frames. On daily USDJPY bars from 2002 to 2026, 4 of 260 rules passed against a random median of 3.5. To test another time frame, run the same luck test on it. Don't assume a longer candle is cleaner.

Read the Strategies, Backtested hub
← Back to Research

Table of contents

  • TL;DR: the answer box
  • What is a candlestick pattern, and how did I test it?
  • Do candlestick patterns work on the USDJPY candlestick chart?
  • Is the red spinning top an edge on USDJPY?
  • Does combining a long and a short pattern reduce drawdowns?
  • Do direction and volatility filters improve the patterns?
  • Where does a candlestick pattern actually show up?
  • The verdict, and the honest limits
  • What this means for you
  • Reference tables
  • Methodology
  • FAQs

Overfit - the newsletter

Skip the hype. Trust the data.One practical takeaway per issue.

Running a quick security check before this can be sent.

Delivered +2 times a month - when the work is ready, not on a calendar.I'll never sell your address.Unsubscribe in one click, any time.

Related Articles

Back to all research
#155

Donchian Channel: What It Is, How to Trade It, and 900 Backtests on 15 Markets

Oct 29, 2026 · 9 min read

A Donchian channel is the highest high and the lowest low of the last N bars, with a middle line halfway between. I traded it both ways, as a breakout and as a fade, in 900 variants on 15 markets from 2004 to 2026. The breakout made money on the side each market drifted (283 of 300 variants) and rarely against it (43 of 300). Set beside random entries with the same exit, 111 of 900 variants beat the random 95th percentile per bar held.

Read more→
#153

Rainbow Moving Average Settings: Spacing Is a Coin Flip in 165 Tests

Oct 29, 2026 · 10 min read

The classic five-line rainbow is spaced evenly (10, 20, 30, 40, 50), the way Widner's original stepped its lag. Spacing it by a constant ratio instead (10, 15, 22, 33, 50) looks like the fix, and across 11 futures since 2005 it is not: it added false alignment flips in 138 of 165 matched comparisons and won on return to drawdown in 87 of 165, a coin flip. The fastest line is what places a stack in the stable region.

Read more→

Overfit - the newsletter

Skip the hype. Trust the data.

One practical, evidence-driven takeaway per issue - strategy testing, portfolio construction, market structure, trading psychology, tactical asset allocation.

Running a quick security check before this can be sent.

Delivered +2 times a month - when the work is ready, not on a calendar.I'll never sell your address.Unsubscribe in one click, any time.

StatOasis is calm, evidence-based algorithmic-trading education, founded by Ali Casey. Ali builds systematic trading strategies and teaches the workflow behind them: research, build, test, combine, deploy. He writes the Overfit newsletter, published since 2024, and runs the Algo Trading Masterclass.

Socials

  • X ↗
  • YouTube ↗
  • Instagram ↗
  • LinkedIn ↗
  • GitHub ↗
  • Muck Rack ↗
  • LinkedIn SO ↗
  • GitHub SO ↗

Products

  • Overfit - the newsletter
  • Algo Trading Masterclass
  • StatOasis Community
  • 36 Ways to Buy the Dip
  • AlgoChef ↗

Reading & tools

  • Research
  • Methodology
  • Survive the Decade
  • Wall of Love

StatOasis

  • About Ali Casey
  • Contact
© 2026 StatOasis. Calm, evidence-based.
PrivacyTermsHypothetical resultsCalifornia