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

Chart patterns · 20 formations

Chart Patterns

Head and shoulders, double tops, wedges, flags and triangles: exact geometry, a conventional target, and what invalidates each one.

Not measured here

These pages carry the geometry and the traditional claim, not a forward-return study like the candlestick section. That measurement is not done yet, and every page says so rather than implying a verdict.

Reversal patterns

Head and Shoulders Bearish
Inverse Head and Shoulders Bullish
Double Top Bearish
Double Bottom Bullish
Triple Top Bearish
Triple Bottom Bullish
Rounding Bottom Bullish
Rising Wedge Bearish
Falling Wedge Bullish
Broadening Formation Neutral

Continuation patterns

Cup and Handle Bullish
Ascending Triangle Bullish
Descending Triangle Bearish
Symmetrical Triangle Neutral
Bull Flag Bullish
Bear Flag Bearish
Pennant Neutral
Rectangle Neutral
Bearish Pennant Bearish
Bullish Pennant Bullish

Why these are harder to define than candlesticks

A candlestick formation is arithmetic on adjacent bars. A hammer is a statement about one bar’s body and wicks; an engulfing is a statement about two. Both can be written as a condition and evaluated the moment the bar closes.

A head and shoulders cannot. It is a statement about swing points — three peaks, the middle highest, the outer two roughly level — and where a swing sits is not known when it forms. It is only known later, once enough further bars have printed without exceeding it. That is why this section existed for a long time as pictures and prose while the candlestick section had executable rules.

What a detection means here, and it is narrower than the tradition

Each rule fires on the bar where the formation’s last required swing is confirmed. Not where the neckline breaks. Not where a trader would enter. A swing at bar k is returned only once pivotRight further bars have printed without exceeding it, so a rule cannot read a swing the market had not yet produced.

The cost of that, stated plainly

Confirmation lags the shape. By the time a detection is returned, the move a chartist would have traded is partly done. Any detector that identifies swings faster is using information the market had not yet produced — which is why its backtest looks better than its live results.

The parameters they share

Every chart formation is built from the same five, published on each page so a count can be reproduced. Change one and the number of detections changes with it.

ParameterWhat it decides
pivotLeft / pivotRighthow many bars either side a swing must dominate before it counts as one
lookbackhow far back the rule searches for the swings it needs
flatTolhow level two points must be to count as matching — what stops a head and shoulders firing on any three descending peaks
minSepAtrhow far apart the swings must be, measured in ATR so it means the same on gold and on EURUSD
atrPeriodthe window used to size everything above

Verified against a second implementation

A rule is only reproducible if two implementations agree on it. The Python engine and the browser mirror were run against each other across D1, H4 and H1: 81,301 detections, 0 differing. Every rule was checked for look-ahead, and the pivot primitive carries a negative test — that a swing is invisible one bar before it confirms — because that is the failure this whole design exists to prevent.

How often each one fires

Detection counts, not outcomes: this says how often the rule matches, and nothing about what followed. Measured on 2,938 BTCUSD D1 bars. Every formation fires; none is zero.

Chart formation firing rates, per 1,000 bars, rarest first
FormationPer 1,000 barsRoughly
Bull Flag1.02once every 980 bars
Bear Flag1.70once every 588 bars
Inverse Head and Shoulders3.40once every 294 bars
Head and Shoulders4.08once every 245 bars
Bullish Pennant5.79once every 173 bars
Triple Bottom6.47once every 155 bars
Bearish Pennant6.81once every 147 bars
Symmetrical Triangle7.49once every 134 bars
Falling Wedge8.17once every 122 bars
Rectangle9.87once every 101 bars
Descending Triangle11.23once every 89 bars
Rising Wedge12.25once every 82 bars
Triple Top12.25once every 82 bars
Rounding Bottom14.64once every 68 bars
Ascending Triangle18.04once every 55 bars
Cup and Handle31.65once every 32 bars
Double Bottom38.12once every 26 bars
Double Top49.69once every 20 bars

One symbol and one timeframe, so these transfer to FX and to intraday only loosely. A double top firing fifty times per thousand bars and a bull flag firing once are not equally informative events — the rare one narrows the range of what happens next far more, whatever either is worth.

The three families, and what the labels mean

The conventional split is by what the formation is said to do next. It is a statement about the tradition rather than about the data, and it is worth being explicit that the labels are inherited rather than derived.

FamilyThe claim, and what it needs
ReversalThe prior trend ends. Needs a prior trend to reverse, which is why these rules carry a context requirement and fire far less often than the shape alone would
ContinuationThe prior move resumes after a pause. The pole is what the rule measures, so the same consolidation after a rise and after a fall are two different formations
BilateralDirection is undecided until a boundary breaks. Symmetrical triangles and rectangles sit here, and they are the only ones whose label makes no directional claim at all

The target projection is a convention, not a measurement

Every chart formation carries a conventional target: the head-to-neckline distance projected down from the break, the pole length projected from the flag, the cup depth projected above the handle. These appear on each page because they are what the tradition specifies, and they are labelled as the traditional claim for the same reason.

None of them has been measured here. A projection is a rule for drawing a line, and whether price reaches that line at a rate better than chance is exactly the question the withheld study was meant to answer. Treat the target as a description of what other participants are likely watching, which is a weaker claim and a defensible one.

Worth knowing

The neckline, the pole and the handle are all lines someone draws. Two analysts drawing them on the same chart will not agree, and the disagreement is larger than most published target statistics acknowledge. The detector avoids the problem by working from confirmed swing points instead, which is why its detections lag where a chartist would have entered.

What is not published yet

Forward returns. No hit rate, benchmark or interval appears on any chart formation page, because the measured run that would supply them was computed on a superseded engine and predates these eighteen formations entirely. It was withdrawn rather than published with a caveat. When the re-run completes, these pages get measurements for the first time — and they will carry a benchmark and a correction across the whole family of 125, or they will not be published.

Plan the trade this pattern implies.