# Pin Bar

A Chart & Candlestick Patterns concept (Single/multi-bar (western)) in the LuxAlgo Library, with 1 indicator implementation.

## What is a Pin Bar?

A pin bar is a single bar with a long tail on one side and a small real body pushed toward the opposite end of the range. The geometry records rejection: price probed one direction during the bar, found no acceptance there, and closed back near where it started or beyond. A bullish pin bar carries a long lower tail with the body near the high, meaning lower prices were auctioned and refused; the bearish version is the mirror image at the top. The name is short for 'Pinocchio bar', Martin Pring's coinage: the long nose points toward the move the market told a lie about.

Common definitions ask the tail to dominate the bar, often around two-thirds of the total range or more, with the body confined to the opposite end. Many add that the tail should protrude beyond the surrounding bars, briefly poking through a nearby level or prior [swing high or low](https://www.luxalgo.com/library/concept/swing-high-low/) before closing back inside. That clause is what gives the pattern its logic: a good pin bar is a small [false breakout](https://www.luxalgo.com/library/concept/false-breakout/) compressed into one bar. Location does most of the work. The same shape in the middle of a range is routine noise, and even well-placed pin bars fail regularly, which is why most plans pair them with a level and a confirmation rule.

## How to identify a Pin Bar

Definitions vary slightly by author, but the checks are consistent.

1. Measure the tail: one shadow should dominate the bar, commonly around two-thirds of the total range or more, with the real body small and pushed to the opposite end.
2. Check protrusion: the tail should stick out beyond the adjacent bars or through a nearby level, so the bar visibly probed and rejected territory the market had not accepted.
3. Grade the location: a pin bar rejecting a [support level](https://www.luxalgo.com/library/concept/support-level/), a prior swing point, or a rising average is a setup; the identical bar mid-range is not.
4. Define the trigger and invalidation up front: a common entry is a break of the nose-side extreme (the high of a bullish pin bar), with the stop beyond the tail.

## How traders use it

- As a reversal trigger at levels: a bullish pin bar rejecting support is traded long on a break of its high with the stop beyond the tail, and the mirror applies at resistance.
- As a continuation entry inside trends: a counter-trend pin bar completing a [pullback](https://www.luxalgo.com/library/concept/pullback/) to a rising moving average or trendline is one of the classic with-trend price action setups.
- As a liquidity read: a tail that spears through a prior low and closes back above it is, in order-flow terms, a [liquidity sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/) left as a wick, which is why pin bars and sweep-based models often flag the same bar.
- As a stop-placement anchor: the tail's extreme is the natural invalidation point, since a return through it means the rejection did not hold.

## Pin Bar vs similar patterns

- **Hammer** (https://www.luxalgo.com/library/concept/hammer/): At a low, a bullish pin bar and a hammer describe the same geometry. Hammer is the Japanese candlestick term with its own conventions (a preceding decline, body in the upper part of the range); pin bar is the western, direction-agnostic term covering both tops and bottoms.
- **Shooting Star** (https://www.luxalgo.com/library/concept/shooting-star/): A shooting star is effectively the bearish pin bar at the top of an advance: long upper shadow, small body near the low. The candlestick definition ties it to an uptrend, while a bearish pin bar is defined by geometry plus whatever level it rejects.
- **Swing Failure Pattern** (https://www.luxalgo.com/library/concept/swing-failure-pattern/): An SFP is defined relative to a prior swing extreme: take it out, then close back inside. A pin bar is defined by single-bar shape. A pin bar whose tail runs a prior swing point usually qualifies as both, but an SFP can also play out across several ordinary bars.

## FAQ

### What makes a pin bar valid?

Most definitions agree on three things: the tail dominates the bar (a common convention is at least two-thirds of the range), the small body sits at the opposite end, and the tail protrudes beyond nearby bars or through a level. Validity in the tradable sense adds location: pin bars at tested levels carry information, mid-range ones mostly do not.

### Do pin bars need confirmation?

Many traders require it. Common rules are entering only on a break of the nose-side extreme, or waiting for the next bar to close in the pin bar's direction. Confirmation costs some entry price but filters the frequent case where a pin bar's rejection immediately fails and the tail is revisited.

### Where does the stop go on a pin bar trade?

The standard placement is just beyond the tail's extreme, because a move through it invalidates the rejection the trade is built on. Be aware that tails can attract stop runs; some traders add a small buffer or size the position so a brief sweep of the tail followed by recovery does not force a full exit.

## Implementations in the Library

- Long Wick Detector (LuxAlgo): https://www.luxalgo.com/library/indicator/long-wick-detector/

## Related concepts

- Two-bar Reversal: https://www.luxalgo.com/library/concept/two-bar-reversal/
- Three-bar Reversal: https://www.luxalgo.com/library/concept/three-bar-reversal/
- Inside Bar: https://www.luxalgo.com/library/concept/inside-bar/
- Outside Bar: https://www.luxalgo.com/library/concept/outside-bar/
- Engulfing Bar: https://www.luxalgo.com/library/concept/engulfing-bar/
- Exhaustion Bar: https://www.luxalgo.com/library/concept/exhaustion-bar/
- Hikkake: https://www.luxalgo.com/library/concept/hikkake/
- Classic Bar Setups: https://www.luxalgo.com/library/concept/classic-bar-setups/
- Wide-range Bar: https://www.luxalgo.com/library/concept/wide-range-bar/

---

Source: https://www.luxalgo.com/library/concept/pin-bar/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/