Pin Bar Candlestick: The Exact Rule, a Real Example and a Test Against Random Candles
The exact pin bar rule, how it differs from a hammer and a shooting star, a real pin bar on the S&P 500 ETF, and what followed 373,209 pin bars on stocks, ETFs, indices, forex and crypto against random candles, after costs.

On this page
- What is a pin bar?
- The pin bar rule we use
- Pin bar vs hammer vs shooting star
- A real pin bar: the S&P 500 ETF on October 1, 2026
- How we tested pin bars against random candles
- Does price move in the direction of the pin bar?
- Trading the pin bar break
- Pin bars at a 20-bar high or low
- How to trade a pin bar
- Frequently asked questions
A pin bar is a candle with a long tail on one side and a small body on the other: the market pushed one way during the bar and was driven back before the close. Traders read it as a rejection and a possible turning point. This page gives the exact rule, shows a real pin bar on the S&P 500 ETF, and measures what followed 373,209 pin bars on stocks, ETFs, indices, forex and crypto against random candles, after costs.
Pin bars on a daily S&P 500 ETF chart, May to October 2026

- Price, daily candles (hollow up, filled down)
- Bullish pin bar (long lower tail)
- Bearish pin bar (long upper tail)
What is a pin bar?
A pin bar is a single candle with one long tail, a small body and almost nothing on the other side. The tail is the part the market tried and refused: a long lower tail shows a drop that was bought back before the close, a long upper tail a rally that was sold. The body sits at the other end of the candle. A pin bar with a long lower tail is read as bullish, one with a long upper tail as bearish.
According to LuxAlgo, the name is short for "Pinocchio bar", a term coined by the market technician Martin Pring: the long tail is the nose, pointing toward the move the market lied about. LuxAlgo puts the tail at "commonly around two-thirds of the total range or more" and calls the pin bar "the western, direction-agnostic term covering both tops and bottoms". Price action traders use the word more than candlestick books do, and the details vary from one author to the next. The definition below is the most common one, written as a rule a computer can check.
The pin bar rule we use
A candle is a pin bar on this page when all of the following hold at its close:
- Long tail. The tail is at least two thirds of the bar's range, from high to low. The body and the other wick therefore fit in the remaining third, at the other end.
- The tail sticks out. The tail goes beyond the previous bar: below its low for a bullish pin bar, above its high for a bearish one. A long tail that stays inside the previous bar rejected nothing new.
- A bar of normal size or larger. The range is at least the average range of the 10 previous bars. This threshold is our choice, the same as for the long shadows of our bench: it leaves out tiny bars on quiet sessions, where a "long" tail is a few cents.
- Any color, any trend. The body can close up or down, and no prior trend is required.
The pin bar is only known at the close of the bar. Every measure on this page starts after that close.
Pin bar vs hammer vs shooting star
The hammer candlestick pattern and the shooting star candlestick have the same shape as a pin bar, but candlestick tradition ties each name to a trend. In the StockCharts candlestick dictionary, a hammer forms when a market "moves significantly lower after the open" and "rallies to close well above the intraday low", and it is called a hammer only if it forms during a decline. A shooting star "can appear in an uptrend": it "opens higher, trades much higher, and then closes near its open". LuxAlgo calls the shooting star "effectively the bearish pin bar at the top of an advance".
| Pin bar | Hammer | Shooting star | |
|---|---|---|---|
| Long tail | Either side | Lower | Upper |
| Prior trend | Not required | Decline | Advance |
| Tail beyond the previous bar | Required by our rule | Not required | Not required |
| Read as | Rejection of the tail's price area | Possible bottom | Possible top |
So a hammer is also a pin bar when its tail fills two thirds of a bar of normal size and pokes below the previous low, but a bullish pin bar in the middle of a range, with no decline before it, is not a hammer. All of them belong to the wider family of long wick candles, the rejection candles that traders read as a level tried and refused. Our bench measures the named versions separately:
A real pin bar: the S&P 500 ETF on October 1, 2026
The chart at the top marks the pin bars our rule finds on a daily S&P 500 ETF chart, with dividend-adjusted prices. On October 1, 2026, the ETF opened at 764.36, fell to 758.79, below the previous day's low of 762.18, and closed at 763.99, with a high of 765.65. The lower tail covered 75.8% of the range: a bullish pin bar.
The close was slightly below the open, so the candle was red. That does not matter under the rule: the pin bar is about where the bar closed within its range, not about its color. The next session, October 2, 2026, traded above the high of the pin bar, which is where the usual buy stop sits. Five sessions later, on October 8, 2026, the ETF closed 1.3% above the pin bar's close, and ten sessions later, on October 15, 2026, 1.0% above it.
How we tested pin bars against random candles
We applied the rule to every bar of our price data, up to October 28, 2026:
| Bars | Markets | From | Pin bars |
|---|---|---|---|
| 1-hour | 35 series: currency pairs and large cryptos | 2012 | 89,861 |
| 4-hour | 35 series, the same markets | 2012 | 20,167 |
| Daily, US stocks | 1,673 | 1970 | 191,336 |
| Daily, ETFs | 46 | 1993 | 5,793 |
| Daily, stock indices | 15 | 1970 | 3,515 |
| Daily, forex | 25 | 2012 | 2,078 |
| Daily, crypto | 578 | 2017 | 22,211 |
| Weekly | 2,096 series, the daily markets | 1971 | 38,248 |
US stocks: current and former index members we could still find; many delisted companies are missing, so the stock figures lean toward companies that survived. Commodities enter only through ETFs, never through continuous futures contracts.
A pin bar can only be judged against a baseline, because any long tail is followed by some move. Ours is random candles: the same candles as the real market, each flipped upside down or not at random, then chained: same sizes, same volatility, same drift, no memory. The same rule finds pin bars on them, 2 draws per market, and nothing on such a chart can predict the next bar. If real pin bars do no better than pin bars on random candles, the candle carries no information. As a second check on daily bars, we ran the rule on 150 series of 3,000 bars from the generator of our bench's self-test, which adds volatility clusters and fat tails. Returns are logarithmic, counted in the direction of the pin bar and in excess of the market's average drift, so a rising market does not flatter bullish pin bars. The ranges given are 95% intervals of the gap between real and random, by bootstrap over calendar quarters.
Does price move in the direction of the pin bar?
Not on our data. On daily bars, the close after a pin bar moved −0.14% in the direction of the pin, beyond the drift, against 0.00% after pin bars on random candles. The gap, from −0.23% to −0.06% at 95%, is below zero: the next day went slightly against the pin bar. Hourly bars showed the same small gap against the pin; on 4-hour and weekly bars the difference was within chance.
The bar after a pin bar, in the direction of the pin, beyond the market's drift

- Real prices
- Random candles
Five bars later, the daily picture was the same: −0.12% against +0.02% on random candles, a gap below zero that comes from US stocks, the largest group (−0.15% against +0.01%). On ETFs, indices, forex and crypto the five-day gap was within chance. The self-test generator gave +0.02% for the next day, again above the real pin bars.
Trading the pin bar break
Then the trade most traders take. After a bullish pin bar, a buy stop at its high stays open for 3 bars and is cancelled if the low of the pin bar is broken first; the stop loss sits at that low and the target at 2 times the risk. A bearish pin bar is the mirror image. Round-trip costs are deducted: 0.10% on US stocks, 0.05% on ETFs and indices, 0.03% on forex and 0.20% on crypto. The result is in R, multiples of the risk taken.
Trading the pin bar break: average result per trade, after costs

- Real prices
- Random candles
On daily bars the pin bar trade averaged −0.05R, against −0.06R for the same trade on random candles, a gap from −0.01R to +0.03R that includes zero. The target was hit in 32.7% of trades, against 32.5% on random candles. On weekly and 4-hour bars the gap was also within chance. On hourly bars the trade lost 0.24R per trade, more than on random candles (−0.22R). Small hourly ranges make costs heavy on real and random candles alike, and real hourly pin bars reached their target less often: 31.8% of trades, against 32.4%. The entry order was filled after 75.3% of daily pin bars, slightly less often than on random candles (76.5%).
One market group stood out. On 15 stock indices, the daily trade averaged +0.09R against +0.01R on random candles, a gap whose 95% interval only just excludes zero. It rests on 2,704 trades, in one group out of five; stocks, ETFs, forex and crypto showed nothing. We do not count a result found in one group only as an edge: it is a lead for a new test, not a strategy.
Pin bars at a 20-bar high or low
Traders often say a pin bar only counts at a key level. A simple version: the tail makes the lowest low (bullish) or the highest high (bearish) of the last 20 bars. That was the case for 34.2% of daily pin bars.
| Pin bars at a 20-bar extreme | 1-hour | 4-hour | Daily | Weekly |
|---|---|---|---|---|
| Return 5 bars later, real prices | 0.00% | −0.05% | −0.21% | −0.11% |
| Same, random candles | +0.02% | +0.02% | +0.04% | +0.14% |
| Trade result, real prices | −0.22R | −0.11R | −0.06R | −0.06R |
| Same, random candles | −0.19R | −0.10R | −0.08R | −0.14R |
The level did not help the direction: five bars later, pin bars at a 20-bar extreme did no better than on random candles on any timeframe. On weekly bars the trade lost less than on random candles, a gap whose 95% interval only just excludes zero, but it still lost 0.06R per trade. On hourly bars it lost more than on random candles. No timeframe turned a pin bar at an extreme into a profitable rule.
How to trade a pin bar
The usual pin bar setup is the one we measured: a buy stop just above the high of a bullish pin bar (a sell stop below the low of a bearish one), a stop loss just beyond the end of the tail, and a target set as a multiple of the risk. LuxAlgo describes the same entry, "a break of the nose-side extreme (the high of a bullish pin bar)", and the stop "just beyond the tail's extreme". What the figures above say, and what remains useful:
- Do not expect an edge from the candle alone. On our data, the pin bar did not move price in its direction more than random candles did, and the trade lost about as much as on random candles once costs were paid.
- The tail gives a clean stop. If the end of the tail is broken, the rejection has failed. That makes the risk of the trade known before entry, which is what position sizing needs.
- Context is the trader's job. A pin bar whose tail pierces a support or resistance level and closes back is the same event as a liquidity sweep, the move some traders call stop hunting. Those pages test that idea on its own.
- Short timeframes cost more. On hourly bars, small ranges make round-trip costs a large part of the risk.
Other candle rules from the same family: the inside bar, a candle held inside the previous one, the tweezer top and bottom, two candles with matching extremes, and The Strat patterns, which classify every bar against the previous one. More chart reading guides are in technical analysis, and the method of our test bench is on our methodology.
Frequently asked questions
What is a pin bar?
A single candle with a long tail on one side and a small body at the other end. On this page the tail must cover at least two thirds of the range and go beyond the previous bar's low (bullish pin bar) or high (bearish pin bar), on a bar at least as large as the average of the 10 previous bars.
What is the difference between a pin bar and a hammer?
The shape is the same, the context is not. A hammer has a long lower tail and must form during a decline; a pin bar has a long tail on either side, needs no prior trend, and in our rule its tail must poke beyond the previous bar.
Is a pin bar candle bullish or bearish?
Both exist. A long lower tail makes a bullish pin bar, a long upper tail a bearish one. The color of the body does not change that.
Does the pin bar candlestick pattern work?
Not on its own, on our data. On daily bars the next close moved −0.14% in the direction of the pin beyond the drift, against 0.00% on random candles, and the usual breakout trade averaged −0.05R after costs, against −0.06R on random candles.
Where do you put the stop loss on a pin bar?
Just beyond the end of the tail: below the low of a bullish pin bar, above the high of a bearish one. If that point is broken, the rejection the tail recorded has failed.
What does pin bar stand for?
Pinocchio bar. According to LuxAlgo the term was coined by Martin Pring: the long tail is the nose, pointing toward the move the market lied about.
Is a pin bar at a support level better?
We tested a simple version, a tail that makes the lowest low or the highest high of the last 20 bars. It did not improve the direction five bars later on any timeframe, and the trade still lost money after costs.
