Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
Trading and crypto

Chart patterns explained: reversal, continuation, candles

Chart patterns explained: head and shoulders, double tops, triangles, flags, wedges and key candlestick patterns, how each is defined and where they mislead.

CloudSat teamNovember 18, 20266 min read
Abstract illustration of a mountain-like price outline with three peaks traced in light, beside a row of small candle shapes casting long shadows
On this pageTwo families

Chart patterns are shapes that traders name on price charts: three peaks with a higher one in the middle, a narrowing range, a candle whose body swallows the previous one. They are useful as a shared vocabulary for describing what price has done. They are not a forecast, and their definitions vary more than most books admit. This guide defines the common patterns precisely, shows how to turn one into rules a computer can check, and lists the ways patterns mislead.

Two families

Structure patterns span many bars and are built from swing highs and swing lows, the turning points where price changed direction. Books sort them into reversal patterns, said to appear at the end of a trend, and continuation patterns, said to appear as pauses within one.

Candlestick patterns involve one to three bars and are defined by the relationship between open, high, low and close. They come from Japanese rice trading and were popularized in the West in the late twentieth century.

Both families depend on the chart you look at: its timeframe, its data source and, for candles, the time at which each bar starts and ends.

Reversal patterns

Pattern Shape What traditionally completes it
Head and shoulders Three peaks, the middle one highest; a neckline joins the two lows between them A close beyond the neckline
Inverse head and shoulders The same shape upside down, at a low A close above the neckline
Double top Two peaks at a similar level with a trough between A close below the trough
Double bottom Two lows at a similar level with a peak between A close above the peak
Triple top or bottom Three tests of the same level A close through the opposite turning points

"A similar level" is the first judgment call. Two peaks rarely match to the cent, so any definition needs a tolerance, often expressed as a fraction of recent volatility, and the choice changes how many patterns you find.

Continuation patterns

Pattern Shape Notes
Flag A sharp move (the pole), then a small channel sloping against it Usually short-lived compared with the pole
Pennant A pole, then a small triangle with converging lines Distinguished from a flag only by the converging lines
Ascending triangle A flat upper line and rising lows Breaks happen in either direction
Descending triangle A flat lower line and falling highs Breaks happen in either direction
Symmetrical triangle Falling highs and rising lows converging Labeled continuation, though direction is open
Rectangle Price ranging between two horizontal levels A range by another name
Rising and falling wedges Two converging lines sloping the same way Treated as reversal or continuation depending on context

The notes column says what the tables in many books leave out: "continuation" describes where the pattern is said to occur, not what it guarantees.

The measured-move convention

Many texts add a target rule: measure the pattern's height (from the head to the neckline, or the height of the triangle at its widest) and project it from the breakout point. It is a convention for placing an objective, handed down because it is simple. It has no mechanism behind it, and it should be tested like any other rule before it is trusted.

Candlestick patterns

Pattern Definition Label traders give it
Doji Open and close nearly equal, so the body is tiny relative to the range Indecision
Hammer Small body near the top of the range, lower shadow at least about twice the body, after a decline Possible bottom
Hanging man The same shape after a rise Possible top
Shooting star Small body near the bottom of the range, long upper shadow, after a rise Possible top
Bullish engulfing A down candle followed by an up candle whose body covers the first body Possible turn up
Bearish engulfing An up candle followed by a down candle whose body covers the first body Possible turn down
Harami A large body followed by a small body inside it Slowing momentum
Morning and evening star A large candle, a small one, then a large candle the other way Three-bar turn

Two cautions apply to forex and crypto. Candlestick definitions were developed on markets that closed overnight, where the next open could gap away from the last close. In a market that trades around the clock, each open usually equals the previous close, so patterns defined by gaps appear rarely or change meaning. And a daily candle starts and ends at the broker's server midnight, so two brokers with different server times draw different daily candles for the same market.

Turn a pattern into rules

A pattern you can test has to be written down without "roughly" or "looks like". Here is a small Python function that labels doji and engulfing candles on completed bars, with every threshold explicit:

import pandas as pd

def label_candles(df: pd.DataFrame, doji_ratio: float = 0.1) -> pd.DataFrame:
    """df: columns open, high, low, close; one row per completed bar, oldest first."""
    body = (df["close"] - df["open"]).abs()
    rng = (df["high"] - df["low"]).replace(0, float("nan"))
    prev_open, prev_close = df["open"].shift(1), df["close"].shift(1)

    out = pd.DataFrame(index=df.index)
    out["doji"] = body / rng <= doji_ratio
    out["bullish_engulfing"] = (
        (prev_close < prev_open)        # previous bar fell
        & (df["close"] > df["open"])    # this bar rose
        & (df["open"] <= prev_close)
        & (df["close"] >= prev_open)
    )
    out["bearish_engulfing"] = (
        (prev_close > prev_open)
        & (df["close"] < df["open"])
        & (df["open"] >= prev_close)
        & (df["close"] <= prev_open)
    )
    return out

A label on a bar uses only that bar and the one before it, so it is known when the bar closes, never earlier. Structure patterns are harder: a swing high is only confirmed several bars after it forms, and a test that marks it at the peak itself is using information nobody had at the time.

Platforms help with the drawing rather than the defining. MetaTrader 4 and 5 provide trend lines, channels and Fibonacci tools, and TradingView adds drawing tools shaped for specific patterns and built-in indicators that label candlestick patterns. Neither tells you how a pattern has behaved on your market.

Where patterns mislead

  • Subjectivity. Two people can draw different necklines on the same chart, and both look right.
  • Hindsight. Completed patterns are obvious afterwards. In real time, the same shape is often still forming, or fails.
  • Selected examples. Textbook illustrations show patterns that worked, which says nothing about how often the shape appears and does not work.
  • Volume that is not volume. Classic texts confirm breakouts with exchange volume. A spot forex chart shows tick counts from one broker, not traded size.
  • Small samples. A rule that looked good on twenty occurrences can be luck. Count occurrences before reading any statistic about them.

The way to learn what a pattern means on your market is to write its rules down, count it on your own data, and look at what followed, the failures included.

FAQ

Are chart patterns reliable?

No pattern carries a reliability of its own. How a defined pattern has behaved depends on the market, timeframe and rules used, and history offers no guarantee about the next occurrence.

Do candlestick patterns work the same in forex as in stocks?

The definitions are the same, but the data differs. Forex trades around the clock, so opens rarely gap, and daily candles depend on your broker's server time.

Which timeframe should I look for patterns on?

Patterns appear on every timeframe, and the same rules give different results on each. Choose the timeframe that matches how long you intend to hold, and test there.

Can MetaTrader find patterns automatically?

Not natively. Custom indicators and Expert Advisors can scan for patterns once their rules are written in code, as in the example above.

Trading involves risk of loss. Nothing in this article is financial advice.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.