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.
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.
| Step | When the rule knows it |
|---|---|
| First swing high | after the candles on its right have closed |
| Valley and neckline | after the rebound off the valley |
| Second swing high | after its own confirming candles |
| Break of the neckline | at 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
- Head and shoulders pattern explainedA head and shoulders is three swing highs with a higher one in the middle. Learn how to define it exactly, how the neckline is used, and its limits.
- Double top and double bottom patterns explainedA double top is two swing highs at about the same price, a double bottom two swing lows. Learn how to define them exactly and what they cannot tell you.
- Candlestick patterns explained: how to read candlesA candlestick pattern is a shape made by one to three candles. Learn the parts of a candle, four common patterns, exact definitions and their limits.