Is the Pin Bar Profitable? 252 Backtests on USD/JPY
Pin bar win rates on USD/JPY over two years across every wick-to-body ratio from 1 to 5, and what happens when the wick is measured against the bar's range instead.
A pin bar has one long wick. A long lower wick is read as buying that came in below, a long upper wick as selling that came in above, and the usual rule is to enter against the wick.
"Long" is a number here. Formiq's backtester compares the wick with the body, at a default of two times, and this article moves that from 1 to 5.
One thing came out of the counting first. At the default of 2, between 27.57% and 30.38% of all bars qualify — nearly one bar in three.
Raising the number barely moves the result. On the hourly chart in 2024 a ratio of 1 reads 51.46% and a ratio of 5 reads 51.69%, while the candidates fall from 2,973 bars to 859.
What moved the result was changing what the wick is measured against. Comparing it with the bar's whole range instead of its body clears the base rate in five cells of six.
What the pin bar condition actually tests
- lower wick ≥ body × ratio, and lower wick > upper wick → long
- upper wick ≥ body × ratio, and upper wick > lower wick → short
The wick is the part outside the body: from the lower of open and close down to the low, and from the higher of the two up to the high.
The comparison is wick against body. The range, high to low, never enters it. A bar with a small body clears any ratio easily; a bar with a large body fails it however long the wick is in absolute terms.
The default calls nearly one bar in three a pin bar
Counting bars where one wick is longer than the other and the ratio of 2 is met:
| Timeframe | Year | Bars considered | Qualifying at 2 | Share |
|---|---|---|---|---|
| 15-minute | 2025 | 24760 | 6957 | 28.10% |
| 15-minute | 2024 | 24860 | 6853 | 27.57% |
| Hourly | 2025 | 6205 | 1757 | 28.32% |
| Hourly | 2024 | 6242 | 1862 | 29.83% |
| 4-hour | 2025 | 1592 | 469 | 29.46% |
| 4-hour | 2024 | 1613 | 490 | 30.38% |
27.57% to 30.38%: about 1,800 a year on the hourly chart and 6,900 on the 15-minute. A description that fits one bar in three is not filtering much.
Settings and the one number it takes
Nothing is drawn; the pattern is a single candle already on the chart.
| Condition | Numeric field | Default | What changes |
|---|---|---|---|
| Pin bar | wick ratio | 2 | raising it keeps only wicks that are longer relative to the body, and cuts the count |
The same value applies to both sides. There is no way to make one side stricter.
The published trading rule
Enter at the close of the pin bar, against the wick: long on a long lower wick, short on a long upper wick. The usual exit is an opposite pin bar, and the usual stop sits at the tip of the wick.
How this was measured
| Item | Value |
|---|---|
| Pair | USD/JPY |
| Timeframes | 15-minute, hourly, 4-hour |
| Period | 1 January 2024 to 31 December 2025 |
| Detection | the same test the backtest runs, rewritten and checked against it |
| Control | every bar of the same window, weighted to each group's mix of sides |
| Horizon | the close 1, 5, 10 and 20 bars after the signal bar |
| Exits | an opposite pin bar, and a fixed ten-bar hold |
| Wick ratios | 1, 1.5, 2, 2.5, 3, 4 and 5 |
| Runs | 7 ratios x 2 exits and one spread-free pass x 3 timeframes x 4 windows = 252 |
| Spread | 0.3 pips, fixed |
| Lot | 0.1 |
| Fill | at the close |
One note on the control. The pin bar produces long and short signals, so comparing a short-heavy group with the share of bars that closed higher would penalise it in a year that rose. Each group is therefore compared with a base rate blended to its own count of long and short signals.
Walking the wick-to-body ratio from 1 to 5
Share of signals that closed against the wick ten bars later, with the gap to the base rate in brackets:
| Ratio | Hourly 2025 | Hourly 2024 | 4-hour 2025 | 4-hour 2024 |
|---|---|---|---|---|
| 1 | 2898 at 50.83% (+0.81) | 2973 at 51.46% (+0.81) | 766 at 52.09% (+2.15) | 789 at 55.64% (+3.70) |
| 1.5 | 2188 at 50.78% (+0.76) | 2281 at 51.64% (+1.01) | 584 at 53.42% (+3.49) | 618 at 55.66% (+3.94) |
| 2 | 1757 at 50.88% (+0.87) | 1862 at 51.40% (+0.83) | 469 at 52.88% (+2.95) | 490 at 56.12% (+4.18) |
| 2.5 | 1476 at 50.68% (+0.66) | 1562 at 51.47% (+0.82) | 385 at 54.29% (+4.36) | 416 at 56.01% (+3.76) |
| 3 | 1246 at 50.40% (+0.38) | 1365 at 51.72% (+1.08) | 336 at 55.65% (+5.73) | 350 at 55.43% (+2.86) |
| 4 | 977 at 50.05% (+0.03) | 1052 at 51.52% (+0.79) | 270 at 54.81% (+4.88) | 273 at 53.11% (+0.80) |
| 5 | 806 at 50.00% (-0.02) | 859 at 51.69% (+1.02) | 227 at 53.74% (+3.83) | 228 at 52.63% (+0.30) |
On the hourly chart in 2024 the gap at a ratio of 5 is +1.02 points, against +0.81 at a ratio of 1. In 2025 the gap shrinks as the ratio rises, reaching -0.02 at 5.
The 4-hour chart peaks at a ratio of 3 in 2025 (+5.73) and at 2 in 2024 (+4.18). The ratio that worked best does not agree between the two years.
The 15-minute chart is below its base rate at all seven steps: -0.90 to -0.40 in 2025 and -1.06 to -0.06 in 2024.
Raising the ratio does one thing reliably, and that is cutting the count: 2,898 down to 806 on the hourly chart in 2025.
Measuring the wick against the range instead
The same bars, cut by how much of the bar's high-to-low range the longer wick occupies:
| Wick share | Hourly 2025 | Hourly 2024 | 4-hour 2025 | 4-hour 2024 |
|---|---|---|---|---|
| 30% or more | 4092 at 50.22% (+0.20) | 4208 at 51.43% (+0.73) | 1059 at 51.46% (+1.52) | 1087 at 55.20% (+3.29) |
| 40% or more | 3038 at 50.79% (+0.77) | 3159 at 51.47% (+0.75) | 802 at 52.00% (+2.07) | 818 at 55.13% (+3.07) |
| 50% or more | 1971 at 50.03% (0.00) | 2125 at 51.44% (+0.63) | 520 at 52.50% (+2.58) | 556 at 56.12% (+3.78) |
| 60% or more | 1121 at 50.04% (+0.03) | 1142 at 53.06% (+2.10) | 296 at 55.41% (+5.51) | 300 at 56.00% (+3.25) |
| 70% or more | 511 at 53.03% (+3.01) | 510 at 53.53% (+2.23) | 126 at 56.35% (+6.44) | 140 at 55.71% (+1.92) |
The 70% row clears the base rate on the hourly and 4-hour charts in both years. On the 15-minute chart it clears in 2024 by +0.34 and misses in 2025 by -1.36, so five cells of six.
The default wick-to-body ratio of 2 clears in four cells, by 0.83 to 4.18 points. The range measure wins on both counts: more cells, and larger gaps.
The two rules do not pick the same bars. On the hourly chart in 2025, 1,757 bars meet the ratio of 2, 1,971 have a wick at half the range or more, and 1,506 do both. 251 bars are chosen only by the ratio and 465 only by the range, so roughly a quarter of each set is unique to it.
Formiq's backtester has no "wick at N% of the range" condition, so the range measure here is a count rather than something to trade directly.
A bar with no body can never qualify
The test requires body > 0. A bar whose open and close are exactly equal is never a pin bar, however far the wick runs.
| Timeframe | Year | Bars considered | Body exactly zero | Share | Median wick share of range |
|---|---|---|---|---|---|
| 15-minute | 2025 | 24760 | 83 | 0.34% | 66.67% |
| 15-minute | 2024 | 24860 | 105 | 0.42% | 66.67% |
| Hourly | 2025 | 6205 | 10 | 0.16% | 58.65% |
| Hourly | 2024 | 6242 | 13 | 0.21% | 73.18% |
| 4-hour | 2025 | 1592 | 2 | 0.13% | 80.26% |
| 4-hour | 2024 | 1613 | 4 | 0.25% | 72.83% |
They are 0.13% to 0.42% of bars, so not many. What they are, though, is bars whose wick takes 60 to 80% of the range, excluded because the divisor is zero. Under a ratio test, a body of zero is not an infinite ratio; it is out of scope.
How the hammer differs
A hammer is the long side of a pin bar with one more requirement: the upper wick must not exceed the body. The long pin bar only asks that the lower wick be the longer of the two.
On the hourly chart in 2025 there were 937 long pin bars, of which 306 (32.66%) also met the hammer requirement. Ten bars later, 50.69% of the pin bars had risen against 54.58% of the hammers.
All 306 hammers are inside the 937 pin bars. They cannot be compared as separate methods.
Trading all 252 runs
Entering at the close and holding until an opposite pin bar, hourly:
| Ratio | 2025 trades | 2025 win rate | 2025 net pips | 2024 trades | 2024 win rate | 2024 net pips |
|---|---|---|---|---|---|---|
| 1 | 1417 | 49.40% | -636.7 | 1468 | 49.86% | +455.4 |
| 1.5 | 1083 | 49.86% | -276.3 | 1122 | 50.98% | +1430.8 |
| 2 | 884 | 50.68% | +858.9 | 890 | 49.33% | +1560.4 |
| 2.5 | 741 | 51.55% | +581.5 | 730 | 48.77% | +753.4 |
| 3 | 627 | 51.20% | -105.2 | 630 | 48.73% | +1229.3 |
| 4 | 467 | 50.11% | -576.8 | 484 | 48.14% | +612.0 |
| 5 | 391 | 50.13% | +339.4 | 394 | 46.70% | +1008.0 |
Three of the seven cleared both years (2, 2.5 and 5), with 3 and 4 failing in between. The survivors are not a contiguous range.
The 4-hour chart cleared six of seven (everything but 2.5). The 15-minute chart cleared none of the seven, at either exit. With a fixed ten-bar exit the hourly chart cleared two and the 4-hour four.
The 4-hour figures differ sharply between years. At a ratio of 2 the average trade returned +0.60 pips in 2025 and +14.40 in 2024, on 224 and 243 trades.
Splitting 2025 in half
| Ratio | 2025 | Jan-Jun | Jul-Dec |
|---|---|---|---|
| 1 | -636.7 | -198.3 | -446.1 |
| 1.5 | -276.3 | +916.5 | -1269.3 |
| 2 | +858.9 | +931.7 | -149.3 |
| 2.5 | +581.5 | +486.1 | +18.9 |
| 3 | -105.2 | +549.8 | -731.5 |
| 4 | -576.8 | +845.1 | -1345.5 |
| 5 | +339.4 | +701.3 | -290.2 |
Only the 2.5 ratio was profitable in both halves. The ratio of 2, which finished 2025 at +858.9 pips, lost 149.3 of them in the second half.
Last year's best ratio, held through this year
| Timeframe | 2024 winner | 2024 net pips | 2025 net pips | 2025 rank | 2025 median of 7 |
|---|---|---|---|---|---|
| 15-minute | 5 | +551.2 | -3212.9 | 5th | -2830.5 |
| Hourly | 2 | +1560.4 | +858.9 | 1st | -105.2 |
| 4-hour | 2 | +3498.7 | +133.8 | 6th | +415.7 |
Only the hourly pick held its position. The 4-hour ratio of 2 went from +3,498.7 pips to +133.8, sixth of seven.
Stops, targets and cost
| Stop / target | 2025 trades | 2025 win rate | 2025 net pips | 2024 net pips |
|---|---|---|---|---|
| none (exit on an opposite pin bar) | 884 | 50.68% | +858.9 | +1560.4 |
| 30 / 60 | 1116 | 43.46% | +184.6 | +332.3 |
| 60 / 30 | 1056 | 54.92% | +79.9 | -362.1 |
| 50 / 50 | 1040 | 50.00% | +348.3 | +177.3 |
Hourly, ratio 2. The 60 / 30 exit gives the highest win rate and the only losing year of the four. The entries are identical; the win rate runs from 43.46% to 54.92%.
| Timeframe | Ratio | Trades | Spread paid | Trades x 0.3 |
|---|---|---|---|---|
| 15-minute | 1 | 5612 | 1683.5 | 1683.6 |
| 15-minute | 2 | 3522 | 1056.5 | 1056.6 |
| Hourly | 2 | 884 | 265.2 | 265.2 |
| 4-hour | 2 | 224 | 67.2 | 67.2 |
| 4-hour | 5 | 88 | 26.4 | 26.4 |
Spread paid matched trade count times 0.3 pips. The 15-minute chart at a ratio of 2 still returns -1,505.6 pips at zero spread, so the loss is in the entry rather than the trade count.
Related articles
- Candlestick pattern win rates: the pin bar and the hammer among 17, over the same two years
- Is the engulfing candle profitable?: another body-and-wick threshold, measured against a control
- Is the inside bar breakout profitable?: an ordinary break of the same level as the control
- Morning star and evening star: a three-bar reversal taken apart clause by clause
- Do Indicator Settings Transfer Between Pairs? 3,024 Tests: this setting won the 4-hour chart on USD/JPY in 2024 and came 1st of 42 on EUR/USD as well
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. The detection code is a rewrite of the backtester's own test; at the default ratio of 2 it matches the engine's counts and rates in all twelve cells of three timeframes by two years by two sides. Bars whose upper and lower wicks are exactly equal point in no direction and are excluded. Because the horizons run out to 20 bars, that many bars at the end of each year are excluded from the counts.
Questions people ask
- What is the win rate of the pin bar?
- On the hourly chart in 2025 the default setting (wick at twice the body) fired 1,757 times, and 50.88% of those closed against the wick ten bars later. Every bar of the same window, weighted to the same mix of long and short signals, gives 50.01%. The 15-minute chart is below its base rate in both years; the 4-hour chart is above it in both.
- How many times the body should the wick be?
- Changing it barely moved the result. On the hourly chart in 2024 the seven steps from 1 to 5 all land between 51.40% and 51.72%. In 2025 the rate falls as the ratio rises, from 50.83% at 1 to 50.00% at 5, while the count drops from 2,898 to 806.
- Should the wick be measured against the body or the range?
- Against the range separated more. Requiring the wick to be at least 70% of the bar's high-to-low range beat the base rate in five cells of six, by 3.01 and 2.23 points on the hourly chart and 6.44 and 1.92 on the 4-hour. The default wick-to-body ratio of 2 beat it in four, by 0.83 to 4.18 points.
- How is a hammer different from a pin bar?
- A hammer is the long side of a pin bar with one clause added: the upper wick must not exceed the body. Of the 937 long pin bars on the hourly chart in 2025, 306 (32.66%) also qualified as hammers. Ten bars later 50.69% of the pin bars had risen against 54.58% of the hammers.
- Can I change the pin bar ratio in Formiq?
- Yes. The pin bar condition in the backtest builder exposes a wick ratio, set to 2 by default, and the same value applies to the long and the short side.
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.