CustomTradingPlatform .com
Log in Get started free
Home / Technical Analysis / Chart patterns / Head and Shoulders

Chart pattern · Reversal · Bearish

Head and Shoulders

What is it, in one line

Three peaks, the middle one highest, both shoulders roughly level, joined by a rising or flat neckline.

Bearish · Reversal · verdict: Traditional claim, not yet measured here

Bearish Reversal Traditional claim
Head and Shoulders — 60 closing prices ending on the bar where the Head and Shoulders confirms, marked with a dot. Confirmation lags the shape: the last swing it needs is only known once the bars that confirm it have printed.
Verified example · fires the Head and Shoulders rule, quality 1 · not a schematic

Formation rule

Three peaks, the middle one highest, both shoulders roughly level, joined by a rising or flat neckline.

Method

Target and invalidation

Conventional target: A break below the neckline projects a decline roughly equal to the head-to-neckline distance.

Invalidated by: A close back above the neckline invalidates the pattern.

What the engine tests

Of the three most recent confirmed swing highs the MIDDLE one (the head) stands at least minSepAtr above both neighbours, and the two shoulders sit within a tolerance band of each other. The neckline is the trough level between them.

Family
Chart formation
Lookback
120 bars
Direction
Bearish
Class
Reversal
Prior context
Uptrend

The traditional claim

Read as a bearish reversal once price closes below the neckline.

How this detection is wrong

Requiring the shoulders to match is what stops this firing on any three descending peaks. Without it, every downtrend contains a head and shoulders.

The thresholds the detector uses

Published so the count can be reproduced. Every figure below is a parameter of the rule, not a preference: change one and the occurrence count changes with it.

Detection parameters for the Head and Shoulders
ParameterMeaningDefault
pivotLeftbars to the left of a swing3
pivotRightbars to the right before a swing is confirmed3
lookbackbars searched for the swings120
atrPeriodbars of ATR used to size everything below14
flatTolhow level two points must be0.02
minSepAtrseparation required between swings, in ATR1
strict
Tighter thresholds. Fewer detections, each a cleaner example.
flatTol 0.008 · minSepAtr 2 · pivotLeft 4 · pivotRight 4
loose
Wider thresholds. More detections, more marginal ones.
flatTol 0.05 · minSepAtr 0.3 · pivotLeft 2 · pivotRight 2

Easily mistaken for

These share enough geometry that a detector can return more than one of them on the same bar. The engine reports every match rather than picking a winner.

Every pair on the site that can be mistaken for another, and what separates each: the look-alikes index.

Common questions

What is a Head and Shoulders chart pattern?

Of the three most recent confirmed swing highs the MIDDLE one (the head) stands at least minSepAtr above both neighbours, and the two shoulders sit within a tolerance band of each other. The neckline is the trough level between them. The detector also requires a prior uptrend, so the same shape in the wrong context is not counted.

Is the Head and Shoulders bullish or bearish?

It is read as bearish. Read as a bearish reversal once price closes below the neckline.

When is a Head and Shoulders not a Head and Shoulders?

Requiring the shoulders to match is what stops this firing on any three descending peaks. Without it, every downtrend contains a head and shoulders.

How is a Head and Shoulders detected?

As an executable rule over open, high, low and close, with 6 named parameters — including bars to the left of a swing 3, bars to the right before a swing is confirmed 3, bars searched for the swings 120 — all published on this page so the count can be reproduced. Strict and loose variants are defined as well, so the sensitivity of the count to those thresholds is visible rather than assumed.

Measurement pending re-run

No hit rate is published here yet. The run that would supply one was computed on engine ca6d9e36c81c; the engine is now cfb08765de7c. Its candlestick rows included the still-forming bar, and it predates the chart formations entirely, so those figures have been withdrawn rather than published with a caveat. The definition above is unaffected: it is what the detector tests, and no re-run changes it.

Same shape, opposite reading

Inverse Head and Shoulders

The shapes are close, and the prior trend is what decides which one fired: this rule requires a preceding uptrend, its mirror a preceding downtrend.

Inverse Head and Shoulders: Three troughs, the middle one lowest, the outer two at approximately the same level.

All 20 chart patterns →

Other reversal chart patterns

All 20 →
Inverse Head and Shoulders The mirror of Head and Shoulders: three troughs, the middle lowest, both shoulders roughly level.
Double Top Two peaks at roughly the same level, separated by a moderate trough.
Double Bottom Two troughs at roughly the same level, separated by a moderate peak.
Triple Top Three peaks at roughly the same level, a slower variant of the double top.

Size a trade on this setup before you take it.