Chart patterns: shapes that show only after they form

By Oalgo · Last reviewed

A chart pattern is a shape that price traces over several candles, such as a double top, a head and shoulders or a triangle. People name the shape by eye, but a rule can only use it once its edges are fixed in numbers. Most of the work is deciding when the shape counts as formed.

What makes a shape count?

#
  • The swing points that define it, found with a fixed rule such as a fractal with a set number of candles on each side.
  • The confirmation, usually a close beyond a line such as a neckline.
  • Limits on size and time, so that a small wobble or a slow drift does not count.
A double top drawn as two peaks with a valley between them and a dotted neckline at the valley's low. A marker on the second peak reads 'Not yet known'. A later candle that closes below the neckline is marked 'Known here'.Neckline 99.6Not yetknownKnown here
Made-up shape. The second peak is only a candidate until the neckline closes.

What does a worked example look like?

#

All numbers are made up. A double top rule asks for two swing highs within 0.5 percent of each other, at least 10 candles apart, with the valley between them at least 2 percent lower. The first high is 102.0, the second 101.8 and the valley 99.6, so the neckline is 99.6. The shape is confirmed when a candle closes below the neckline. On candle 14 the close is 99.4, and the rule confirms there, not at the second high.

StepWhen the rule knows it
First swing highafter the candles on its right have closed
Valley and necklineafter the rebound off the valley
Second swing highafter its own confirming candles
Break of the necklineat the close of the candle that breaks it

Why is the confirmation late?

#

The second high is known only once it is confirmed, and the neckline break only at a close. A test that reads the shape from the candle of the second high is reading the future. Lookahead bias is the usual name for that error, and a shape test should rule it out first.

What does the name promise?

#

A name such as double top is a label for a shape, not a forecast. A confirmed double top can be followed by a rise, and price can run past the second top. The head and shoulders and double top pages set out what each shape needs and what a single shape can and cannot show.

What can a shape test not show?

#

A backtest shows how the exact rule behaved on past candles. The edges, such as 0.5 percent and 10 candles, are settings that a search can fit to those candles. Check them on a stretch the search did not use, then run them through a forward test on live prices with simulated funds, which places no real order.

Oalgo AI can build the edges from a sentence you write, the blocks appear on the canvas for you to check, and then the tests run on simulated funds. Go Live is a separate step you may choose, and it would use your own Live Strategy on your own Venue Account.

Read next