CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Harmonic patterns: Gartley, Bat and Butterfly

This guide explains how harmonic patterns are defined, how to draw them with Fibonacci tools, and why the result depends so much on the swings you choose.

Extrade Pakistan editorial team ·

On this page
  1. What harmonic patterns are
  2. A drawn example (schematic, no prices)
  3. Ratio definitions of the main patterns
  4. Drawing tools
  5. Sensitivity to swing choice
  6. Failure modes
  7. Risk and the legal position in Pakistan
  8. Frequent questions

What harmonic patterns are

Harmonic patterns are chart shapes defined by Fibonacci ratios between price swings. A swing is a move from a local low to a local high, or the reverse. The idea is that some swing sequences repeat in measurable proportions. Where a pattern completes, some traders expect a possible reaction zone.

Each pattern is labelled with the points X, A, B, C and D. The legs between them are XA, AB, BC and CD. The pattern is defined by how far each leg travels compared with an earlier leg:

A retracement is a pullback inside a previous move. An extension is a projection beyond it. If these terms are new, read Fibonacci Retracement and Fibonacci Extension first.

A pattern is bullish when D forms at a low and bearish when D forms at a high. The shape is the same, only mirrored. "Bullish" here describes the shape. It is not a forecast.

D zone0.6180.786XABCD
Gartley XABCD: B retraces 0.618 of XA, D completes near 0.786 of XA. Harmonic ratios are a convention, not a law of the market. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

A drawn example (schematic, no prices)

Below is a bullish Gartley-style shape. It is drawn by hand to show the structure. It is not taken from any market.

The labels only describe the shape. They do not say what price will do next.

Ratio definitions of the main patterns

The exact ratios are listed on the Fibonacci tool's default levels and in the calculator below. This page describes where each point sits relative to those levels, so you can compare patterns without memorising a table.

61.8% retracement107.64
0%12023.6%115.2838.2%112.3650%11061.8%107.6478.6%104.28100%100127.2%125.44161.8%132.36261.8%152.36
LevelPrice
0%120
23.6%115.28
38.2%112.36
50%110
61.8%107.64
78.6%104.28
100%100
127.2%125.44
161.8%132.36
261.8%152.36

Up swing: retracement = high − range × ratio, extension = low + range × ratio (range = high − low); a down swing is mirrored. The levels depend on which swing you pick; price often ignores them.

Use the tool to plot the retracement levels of XA. Then plot the extension levels of BC. D is valid only where the two sets of levels cluster.

Gartley pattern

The key feature of the Gartley pattern is that D never passes X.

Bat pattern

When traders search "bat pattern forex", the key point is this: a shallow B, then a very deep D.

Butterfly pattern

Crab pattern (for comparison)

The Crab pattern is similar to the Butterfly, but D extends much further beyond X. It sits at one of the largest standard XA extensions.

Summary table

Pattern Depth of B in XA Position of D Measured as
Gartley Golden-ratio retracement Inside X XA retracement
Bat Shallow, below the middle level Inside X, very close to it Deep XA retracement
Butterfly Deepest standard retracement Beyond X XA extension
Crab Shallow to middle Far beyond X Large XA extension

Drawing tools

You can build harmonic patterns with standard tools in MT4 and MetaTrader 5:

  1. Trendlines connect X, A, B, C and D so you can see the shape. See Trendlines.
  2. Fibonacci retracement drawn from X to A shows where B and an inside-X D should sit.
  3. Fibonacci retracement drawn from A to B checks the depth of C.
  4. Fibonacci expansion projects BC, and for Butterfly or Crab also projects XA beyond X.
  5. The D zone is the area where the XA and BC levels overlap. Many traders call it the potential reversal zone. Mark it as a range, not a single line.

Some charting platforms offer a dedicated XABCD drawing tool. It places the points and shows the ratios for you, but it does not choose the swings. Custom indicators that detect patterns automatically often use ZigZag pivots. ZigZag pivots can move after the fact, as explained in Repainting indicators and the ZigZag Indicator guide.

Sensitivity to swing choice

Harmonic patterns are very sensitive to where you place X, A, B and C. Small changes produce a different pattern or none at all.

To test whether your labels are honest, ask whether another trader using your written rules would mark the same points. If not, the pattern is mostly your interpretation. It helps to anchor the swings in Market structure and clear Support and resistance.

Failure modes

Harmonic shapes overlap with ideas in Elliott Wave and general Chart Patterns. They share the same weakness: subjective point selection.

No pattern makes an outcome certain. Leveraged CFD and forex trading can lose money fast, including more than you planned if stops are skipped by gaps. Decide position size and an invalidation level before relying on any shape. Risk management covers this.

Pakistani readers should also know the official position. Per the SBP, remitting foreign exchange to overseas forex/margin/CFD platforms is not allowed through any payment channel (FERA s.5(1)). Per the SECP, offshore forex/CFD platforms operate without regulatory approval in Pakistan, and per the SECP, offshore platforms have no Pakistani licence or oversight and offer no legal protection or recourse. Details are on Law and regulators.

Frequent questions

Are harmonic patterns reliable?

No pattern is reliable by itself. Results depend on how you choose swings, on tolerance rules and on risk control. This page makes no claim about how often they work.

What is the difference between a Gartley and a Butterfly pattern?

In a Gartley, D completes inside X as a retracement of XA. In a Butterfly, D extends beyond X and is measured as an XA extension.

How is the Bat pattern different from the Gartley?

The Bat has a shallower B and a deeper D that sits very close to X. The Gartley's B sits at the golden-ratio retracement.

Do I need a special indicator?

No. Trendlines, Fibonacci retracement and Fibonacci expansion are enough. Automatic scanners are optional and may repaint.

Should I measure from wicks or closes?

Either can work if you apply it consistently. Mixing the two changes the ratios and can create patterns that are not really there.

Where can I check the exact Fibonacci levels?

Use the Fibonacci calculator on this page or the default levels in your platform's Fibonacci tool.

Sources

  1. State Bank of Pakistan, EPD Circular Letter No. 08 of 2022 · sbp.org.pk › Epd circular letter no 08 of 2022 — checked 2026-11-11
  2. Securities and Exchange Commission of Pakistan (press release, 09.04.2025) · secp.gov.pk › Press Release SECP Cautions Public Against Illegal Offshore Trading an — checked 2026-11-11

Related pages