Patterns

Patterns
Indicator

Support and resistanceOn the price chartFree on ChartLabs

Patterns marks swing pivots and labels a five-point harmonic shape when its score is at least 80. Fractals Precision starts at 3, and all 17 shapes start on.

H. M. Gartley (1935), the Gartley 222. Larry Pesavento, Fibonacci Ratios with Pattern Recognition (1997). Scott M. Carney, Harmonic Trading, volumes 1 and 2 (2010). Swing pivots follow Bill Williams, fractals (1995). Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIPatternschartlabs.co/charts
Atlas reads it

Patterns has nothing to read on this bar yet.

Patterns

Atlas reads it

Patterns has nothing to read on this bar yet.

Patterns

Illustration on simulated data.

PatternsWhat is the Patterns indicator?

There is no value line. The study draws diamonds on swing pivots and, when a five-point shape scores high enough, two filled triangles, solid legs, dashed X-B and B-D lines, and a label. Fractals Precision is 3, from 1 to 20. Confidence is 80, from 0 to 100. All 17 shapes start on. The legend shows precision and confidence. The 17 switches stay out of the legend title.

A pivot high is a diamond #32CD32. A pivot low is #FF0000. Edges are #7B68EE. The fill is rgba(123, 104, 238, 0.25). The label is #FF0000 and reads the shape with the highest score, one decimal, as in Gartley (91.8%).

The score is 100 times one minus the worst ratio distance outside its range. A shape that fails its class, or a hard cap, scores -1 and is not labelled. A Gartley at ratios 0.7, 0.5, 1.5, 0.786 scores 91.8. One at 0.618, 0.5, 1.2, 0.786 scores 92.8. One with the C leg beyond A, ratios 0.618, 1.01, 1.5, 0.786, scores -1. A Bat at 0.51, 0.5, 1.8, 0.886 scores -1. A Bat at 0.45, 0.5, 1.8, 0.886 scores 100.0. On a 46-bar series with highs peaking at 120 on record 20 and 125 on record 43, and lows at 90, the chart draws two green diamonds and no pattern label.

Five points only

Head and Shoulders and the two Kings Crown shapes are seven-point patterns. They are not in this study. Neither is a Zig Zag scan.

Score, then confidence

A score of 91.8 is labelled at the default 80. A score of -1 never is, at any confidence.

Patterns signalsFour patterns to know.

1Inconclusive

Two swing highs, no shape yet

Record 20 at 120 and record 43 at 125 are pivot highs, #32CD32. Two points are not a five-point shape, so there is no pattern label.

2Inconclusive

A shape the rules refuse

The Gartley with a C leg beyond A scores -1. Nothing is labelled.

3Bullish lean

A clean Bat

Ratios 0.45, 0.5, 1.8, 0.886 score 100.0, which clears confidence 80, so the label would read Bat (100.0%).

4Inconclusive

A Gartley inside the band

91.8 and 92.8 both clear 80. The label uses the higher of the shapes that match the same five points.

Patterns formulaHow it is calculated.

score=100·(1−worst)
STEP 1

Find pivots

Williams fractals, then a second pass at Fractals Precision 3. The example keeps record 20 at 120 and record 43 at 125.

STEP 2

Score each shape that is switched on

Five points, four ratios. Outside the range costs points. A failed shape or a hard cap returns -1.

STEP 3

Label the highest score that clears confidence

Default 80. The label is the shape name, the score to one decimal, and a percent sign. Diamonds are drawn even when no shape qualifies.

Patterns settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Fractals Precision31 to 20How strict the second pivot pass is.
Confidence800 to 100A shape is labelled only when its score is at least this.
BatOnOn or offOne of the 17 shapes.
Alt BatOnOn or offOne of the 17 shapes.
Max BatOnOn or offOne of the 17 shapes.
A BatOnOn or offOne of the 17 shapes.
GartleyOnOn or offOne of the 17 shapes.
Max GartleyOnOn or offOne of the 17 shapes.
A GartleyOnOn or offOne of the 17 shapes.
CrabOnOn or offOne of the 17 shapes.
A CrabOnOn or offOne of the 17 shapes.
Deep CrabOnOn or offOne of the 17 shapes.
ButterflyOnOn or offOne of the 17 shapes.
Max ButterflyOnOn or offOne of the 17 shapes.
A ButterflyOnOn or offOne of the 17 shapes.
CypherOnOn or offOne of the 17 shapes.
SharkOnOn or offOne of the 17 shapes.
Alt SharkOnOn or offOne of the 17 shapes.
5-0OnOn or offOne of the 17 shapes.
Pivot high#32CD32FixedDiamond on a swing high.
Pivot low#FF0000FixedDiamond on a swing low.
Edges#7B68EEFixedSolid legs, dashed X-B and B-D.
Fillrgba(123, 104, 238, 0.25)FixedThe two triangles.
Setting
Fractals Precision
Default
3
Range
1 to 20
What it changes
How strict the second pivot pass is.
Setting
Confidence
Default
80
Range
0 to 100
What it changes
A shape is labelled only when its score is at least this.
Setting
Bat
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Alt Bat
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Max Bat
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
A Bat
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Gartley
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Max Gartley
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
A Gartley
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Crab
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
A Crab
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Deep Crab
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Butterfly
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Max Butterfly
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
A Butterfly
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Cypher
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Shark
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Alt Shark
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
5-0
Default
On
Range
On or off
What it changes
One of the 17 shapes.
Setting
Pivot high
Default
#32CD32
Range
Fixed
What it changes
Diamond on a swing high.
Setting
Pivot low
Default
#FF0000
Range
Fixed
What it changes
Diamond on a swing low.
Setting
Edges
Default
#7B68EE
Range
Fixed
What it changes
Solid legs, dashed X-B and B-D.
Setting
Fill
Default
rgba(123, 104, 238, 0.25)
Range
Fixed
What it changes
The two triangles.
33 bars each side of a pivot
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Patterns strategiesUse it in 3 setups.

Pivots without a shape

Record20at120and record43at125

Two green diamonds, #32CD32. No pattern label, because five points are required.

A score that clears 80

Bat100.0

Ratios 0.45, 0.5, 1.8 and 0.886. The label would include 100.0.

A score of -1

Gartley-1

The C leg past A is refused. Raising confidence cannot save a -1, and lowering it cannot either.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Patterns mistakesCommon mistakes.

Expecting a Head and Shoulders label

Those seven-point shapes are not implemented. Turning every switch on still only scans the 17 five-point shapes.

Expecting a Zig Zag scan

The pivot engine is fractals. A Zig Zag on the chart is a separate indicator and does not change these labels.

Reading every diamond as a shape

Diamonds mark pivots. A label appears only after five points score at or above confidence.

Patterns combinationsPair it with these.

Patterns FAQQuestions traders ask.

What are the Patterns settings?

Fractals Precision 3, from 1 to 20. Confidence 80, from 0 to 100. All 17 shapes start on.

Which shapes are included?

Bat, Alt Bat, Max Bat, A Bat, Gartley, Max Gartley, A Gartley, Crab, A Crab, Deep Crab, Butterfly, Max Butterfly, A Butterfly, Cypher, Shark, Alt Shark and 5-0.

What does the example score?

Gartley ratios 0.7, 0.5, 1.5, 0.786 score 91.8. Ratios 0.618, 0.5, 1.2, 0.786 score 92.8. A C leg beyond A scores -1. A Bat at 0.51 scores -1. A Bat at 0.45, 0.5, 1.8, 0.886 scores 100.0.

What do the pivot marks show?

On the 46-bar series, two green diamonds, #32CD32, at record 20 price 120 and record 43 price 125. No pattern label.

What are the colours?

Pivot high #32CD32, pivot low #FF0000, edges #7B68EE, fill rgba(123, 104, 238, 0.25), label #FF0000.

Why is there no line in the scale?

The study draws objects only. It does not fill a value row.

Does a -1 ever get a label?

No. The label needs a score at or above confidence, and -1 fails that test at every confidence.

Does it repaint?

A pivot needs bars on both sides, so a fresh extreme can wait until Fractals Precision bars have printed. After that the objects follow the bars already on the chart.

Who published the shapes?

Gartley in 1935, Pesavento in 1997, Carney in 2010. The pivots follow Williams fractals, 1995.

Related indicatorsMore support and resistance tools.

All support and resistance indicators

Try Patterns on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Patterns