Forex Trading11 min read

Harmonic Patterns: Gartley, Bat, Butterfly and Crab Ratios

Harmonic patterns explained: the XABCD structure, a Fibonacci ratio table for the Gartley, Bat, Butterfly and Crab patterns, a worked example with checked numbers, and the limits.

Harmonic Patterns: Gartley, Bat, Butterfly and Crab Ratios

This site contains affiliate links. We may earn a commission if you sign up through our links. How we research

Harmonic patterns are five-point price shapes (X, A, B, C and D) whose legs must match set Fibonacci ratios. The four classic ones are the Gartley pattern (D at 78.6% of XA), the Bat pattern (D at 88.6% of XA), the Butterfly pattern (D at 127% of XA, beyond X) and the Crab pattern (D at 161.8% of XA). Traders treat the area around point D as a "potential reversal zone" (PRZ) and look for a turn there. The ratios are conventions, not laws, and the patterns are subjective.

Disclosure: OnForex earns a referral commission if you open an Exness account through our links.

This guide lists the ratios for each pattern with their sources, shows a worked Gartley example with every number checked, and explains the limits. It is general education, not investment advice. We have not tested harmonic patterns on historical data, so we give no win rates.

What are harmonic patterns?

A harmonic pattern is built from four legs: XA, AB, BC and CD. The idea is to measure each leg against the previous one with Fibonacci ratios such as 0.382, 0.618, 0.786 and 0.886 (retracements), and 1.27 and 1.618 (extensions). When the measurements line up, D is the point where the pattern is "complete" and a reversal is expected.

The patterns come from the work of Scott Carney. His publisher notes that the Gartley is named after H.M. Gartley's 1935 book, Profits in the Stock Market, but that book did not discuss specific Fibonacci retracements; they were assigned in Carney's The Harmonic Trader (source: Harmonic Trader, Gartley Pattern, checked November 20, 2026). The Bat was discovered by Carney in 2001 and the Butterfly's general shape was found by Bryce Gilmore, with the ratios set by Carney (Bat, Butterfly, checked November 20, 2026). That means the exact ratios are one author's rules, and other writers use variations.

The XABCD structure

For a bullish pattern the legs run like this:

  1. XA is the first leg, up from a low (X) to a high (A).
  2. AB is a pullback down from A.
  3. BC is a bounce up from B, smaller than the pullback before it.
  4. CD is the final leg down. D is the possible buy area.

A bearish pattern is the mirror image: X is a high, A is a low, and D is a possible sell area. The ratios are the same.

Three kinds of measurement are used, and the names get confusing:

  • Retracement of XA: how much of XA is given back. B and D are usually measured this way.
  • Projection of BC: how long CD is, as a multiple of BC. Carney calls this the "BC projection".
  • AB=CD: CD is about equal to AB in length (the minimum), or 1.27 times AB.

Harmonic pattern ratio table

These are the ratios commonly given for each pattern. They come from Carney's publisher and from IG's educational guide (sources: Harmonic Trader, IG, Top 7 harmonic patterns, checked November 20, 2026). Other sources use ranges, so treat them as reference points.

PatternB point (retracement of XA)D point (relative to XA)CD as a multiple of BC
Gartley0.6180.786 retracement, inside XA1.27 to 1.618
BatLess than 0.618, ideally 0.50 or 0.3820.886 retracement, inside XA1.618 to 2.618
Butterfly0.7861.27 extension, beyond XUsually 1.618, up to 2.0, 2.24 or 2.618
Crab0.382 to 0.6181.618 extension, beyond X2.618 to 3.618

Extra notes from the sources:

  • Gartley: D should not go beyond X. The pattern should show an AB=CD that lands in the same area as the 0.786 level.
  • Bat: the CD leg must be at least 1.618 times BC; a 1.27 projection points to a Gartley instead. The 0.886 level is the defining element.
  • Butterfly: the B point at 0.786 is the defining element, and AB=CD is the minimum, with 1.27 times AB as an alternative.
  • Crab: the 1.618 extension of XA is the most important feature.

A rule of thumb for telling the first two apart: if B is near 0.618 of XA it is a Gartley, and if B is near 0.50 or 0.382 it is likely a Bat.

Where D lands: the same swing, four patterns

To see how the patterns differ, take a hypothetical XA leg: X = 1.0800 and A = 1.1000 on EUR/USD, so XA = 200 pips. These are round numbers for arithmetic, not real quotes.

PatternB levelD levelDistance of D from X
GartleyA minus 0.618 x 200 pips = 1.08764A minus 0.786 x 200 = 1.0842842.8 pips above X
Bat0.50: 1.0900 (0.382: 1.09236)A minus 0.886 x 200 = 1.0822822.8 pips above X
ButterflyA minus 0.786 x 200 = 1.08428A minus 1.27 x 200 = 1.074654 pips below X
Crab0.382: 1.09236 to 0.618: 1.08764A minus 1.618 x 200 = 1.06764123.6 pips below X

The table shows the practical difference. The Gartley and Bat finish inside the XA range, so a stop just beyond X is close to D. The Butterfly and Crab finish beyond X, so price must first take out the X level. In SMC terms, D in these two patterns sits past the old low as sell-side liquidity, so a trader may look for a liquidity sweep and a change in structure before treating the zone as reversed. This is an interpretation, not part of the original pattern.

Worked example: a bullish Gartley with checked numbers

All prices are hypothetical EUR/USD round numbers to show the arithmetic. They are not a real trade or a forecast.

  • X = 1.0800, A = 1.1000. XA = 200 pips.
  • B = 1.08764. The pullback from A is 123.6 pips, which is 123.6 / 200 = 0.618 of XA. This fits the Gartley B point.
  • C = 1.0960. BC = 1.0960 - 1.08764 = 83.6 pips, a bounce of 83.6 / 123.6 = 0.676 of AB. The exact BC retracement range is not fixed in our sources, so we only note it is smaller than AB.
  • D = 1.08428. The retracement from A is 157.2 pips, which is 157.2 / 200 = 0.786 of XA. It stays above X, as the Gartley requires.
  • Check CD against BC. CD = 1.0960 - 1.08428 = 117.2 pips. CD / BC = 117.2 / 83.6 = 1.40, inside the 1.27 to 1.618 range.
  • Check AB=CD. CD / AB = 117.2 / 123.6 = 0.95, close to equal.

The pattern passes all four checks. It is still only a pattern: nothing says price will turn at D.

Trade idea with risk figures. Suppose a trader waits for confirmation on the normal chart near D (for example a sweep of a recent low followed by a break of structure) and buys at about 1.0843.

  • Stop: IG states that the stop is often placed at point X and the target at point C (source: IG, checked November 20, 2026). Using a stop 5 pips below X, at 1.0795, the risk is 1.0843 - 1.0795 = 48 pips.
  • Target: C at 1.0960. The reward is 1.0960 - 1.0843 = 117 pips, so the reward-to-risk ratio is 117 / 48 = about 2.4R.
  • Position size: with a USD 1,000 account risking 1% (USD 10) and a pip value of about USD 10 per standard lot, 48 pips of risk gives 10 / (48 x 10) = 0.0208 lots. Rounded down to 0.02 lots, the risk is 48 x USD 0.20 = USD 9.60, within the USD 10 limit. See position sizing and risk-reward ratio.

Spreads can widen and stops can fill at a worse price around news, so allow for slippage. If price closes below X, the pattern is invalid and the idea ends.

How to find and check a harmonic pattern

  1. Mark swing highs and lows by a written rule, for example the highest high within five bars each side. Without a rule, any chart can be made to fit.
  2. Pick X and A as a clear leg that is the biggest move in the structure.
  3. Measure B first. A B point at 0.618 points to a Gartley, 0.50 or 0.382 to a Bat, 0.786 to a Butterfly.
  4. Project D from the XA ratio for that pattern and mark a zone (a few pips each side), not a single price.
  5. Check CD against BC and AB. If they do not line up, discard the pattern.
  6. Wait for evidence at D on the real chart. A liquidity sweep, a change in market structure or a nearby support or resistance level is better evidence than the ratios alone.
  7. Know where it is wrong. For a Gartley or Bat, that is beyond X; for a Butterfly or Crab, beyond the extension zone you drew.

Limits of harmonic patterns

  • They are subjective. Different swing choices give different X, A, B and C, so two traders can draw different patterns on the same chart. Allowing a tolerance of a few percent on each ratio makes it easier to find a fit on almost any swing.
  • Patterns are easy to see in hindsight. Completed patterns on past charts look clean. In real time, the right side is blank and price often runs through D.
  • Fibonacci levels were not special in our test. We tested 1,135 completed legs on EURUSD, GBPUSD, USDJPY and gold. Pullbacks ended within 3 percentage points of 38.2%, 50% or 61.8% 18.5% of the time, against 16.7% for arbitrary control levels, and 31% of pullbacks went beyond 100% of the leg. That test did not include 0.786, 0.886, 1.27 or 1.618, and it was not a test of harmonic patterns. It does show that Fibonacci levels alone were not strong turning points. See the Fibonacci retracement guide for the method.
  • No tested results here. We have not backtested the Gartley, Bat, Butterfly or Crab, and the sources we checked do not give verified statistics. Be careful with any claim of a high success rate.
  • Ratios vary by author. Carney, IG and others give slightly different ranges, so a pattern that is valid by one source may be invalid by another.

If you want to try them, write the rules down, backtest them on past data against a simple baseline, and practise on a demo account first.

Frequently asked questions

What are harmonic patterns?

Five-point price shapes (X, A, B, C, D) whose legs match set Fibonacci ratios. The Gartley, Bat, Butterfly and Crab are the best known. Traders look for a possible reversal around point D.

What is the Gartley pattern?

A harmonic pattern with B at 0.618 of XA and D at 0.786 of XA, inside the XA range. D should not go beyond X. It is named after H.M. Gartley's 1935 book, although the Fibonacci ratios were added later.

What is the difference between the Bat and the Gartley?

The Bat has a shallower B point (about 0.50 or 0.382 of XA) and a deeper D point (0.886 of XA). The Gartley has B at 0.618 and D at 0.786.

What is the butterfly pattern?

A harmonic pattern with B at 0.786 of XA and D at a 1.27 extension of XA, so D is beyond X. It makes a new high or low before the expected reversal.

Do harmonic patterns work in forex?

We have not tested them and cannot give a win rate. They are subjective and easy to fit in hindsight, and Fibonacci levels alone did not stand out from other levels in our test above. Treat them as a way to plan a zone, not a signal.

Further reading

Practise on a demo account first

Mark XABCD points, measure the ratios and place stops on a free Exness demo account before you risk money. Forex and CFD trading carries a high risk of loss.

Continue to Exness

Forex and CFD trading involves significant risk. You may lose your invested capital.

Risk warning: Forex and CFD trading carries a high risk of loss and is not suitable for everyone. You can lose more than you deposit in some cases. The prices in the example are hypothetical and are not forecasts. Past patterns do not predict future results. Nothing here is investment advice.

Related Articles

Forex Trading2026-11-21

Forex Chart Patterns Cheat Sheet: Continuation and Reversal Patterns

Forex chart patterns explained: a cheat sheet of continuation patterns (flag, pennant, triangle, rectangle) and reversal patterns (head and shoulders, double top, wedge), with checked measured-move examples and limits.

Read More3 min
Forex Trading2026-11-01

Head and Shoulders Pattern: Neckline, Target and Real Data

Head and shoulders pattern and inverse head and shoulders: neckline, measured move, stop above the right shoulder, and our data on 141 strict cases.

Read More3 min
Forex Trading2026-11-12

ICT Kill Zone Times: London and New York in UTC, IST, EAT and WAT

ICT kill zone times: London 02:00-05:00 and New York 07:00-10:00 New York time, converted to UTC, London, IST, Nairobi and Lagos for winter and summer.

Read More4 min
Forex Trading2026-10-27

How to Read Forex Charts: Complete Beginner's Guide 2026

Learn how to read forex charts step by step. Understand candlesticks, trend lines, support and resistance, and key chart patterns with practical examples.

Read More3 min
Forex Trading2026-11-01

Inside Bar Strategy: How to Trade It, With Data on 1,773 Setups

What an inside bar is, how to read the mother bar, three ways to trade the break, and what 1,773 inside bars on EURUSD, GBPUSD, USDJPY and gold showed.

Read More3 min
Forex Trading2026-11-01

Engulfing Pattern: How to Read and Test Engulfing Candles

Engulfing pattern explained: bullish and bearish engulfing rules, context, a worked example with stop and sizing, and how it performed in our 4-market data.

Read More3 min