Concept
Harmonic Patterns
Harmonic Patterns, also known as XABCD patterns, harmonic trading, are Elliott & Harmonics concepts. The Library holds 3 implementations, each one a working definition you can pull into Quant.
Top Harmonic Patterns indicators
3 total
What are harmonic patterns?
Harmonic patterns are multi-leg chart formations, usually drawn across five swing points labeled X, A, B, C, and D, in which each leg must relate to the others through specific Fibonacci ratios. The measurement requirement is the defining feature: where classical chart patterns are judged largely by eye, a structure only qualifies as a harmonic pattern if its retracements and extensions land inside defined ratio windows. Because the final leg is projected from the earlier ones, traders know in advance where the pattern should complete, and they treat that completion at point D as a candidate reversal. The approach is also known as XABCD patterns or, collectively, harmonic trading.
The lineage starts with H.M. Gartley, whose 1935 book Profits in the Stock Market described the retracement structure now known as the Gartley pattern. Gartley's original text specified no precise Fibonacci ratios; those were attached decades later by traders including Larry Pesavento and Bryce Gilmore, who tied each leg to Fibonacci retracements and extensions. Beginning with The Harmonic Trader in 1999, Scott Carney consolidated the approach under the name harmonic trading: he introduced patterns such as the Bat and Crab, assigned each a strict ratio recipe, and popularized trading the area where several measurements converge, which he termed the potential reversal zone.
Every named pattern is a distinct ratio recipe built on the same premise, that market swings unfold in measurable proportion to prior swings. The four-point ABCD is the basic building block, with two price legs of similar length separated by a retracement. Retracement patterns such as the Gartley and Bat complete inside the span of the initial XA leg, while extension patterns such as the Butterfly and Crab complete beyond the starting point X. Three Drives builds from three successive measured pushes, and later additions like the Shark and 5-0, often grouped as exotic harmonics, apply the same logic to new ratio combinations. In most XABCD structures, the depth of the B point is what decides which pattern you are looking at.
Harmonic patterns are best understood as a rules-based framework rather than a proven edge. There is little independent, peer-reviewed evidence that ratio-defined completions reverse price more often than chance, and any success rate you see quoted depends heavily on how the swings were detected and how much ratio tolerance was allowed. What the framework verifiably provides is structure: comparatively objective pattern criteria, a pre-defined entry zone, a clear invalidation point, and measured targets. Experienced practitioners treat a completed pattern as a location to seek confirmation and control risk, not as a promise that price will turn.
How to identify harmonic patterns on a chart
Harmonic identification is measurement first, aesthetics second. You need a consistent method for marking swing points, a Fibonacci tool, and the ratio table for the pattern you are testing. The same process covers bullish structures (an M-like shape completing at a low) and bearish ones (a W-like shape completing at a high).
- 1Fix your swing definition. Decide how a swing high or low is confirmed (zigzag depth, pivot lookback) and label X, A, B, and C. Different settings surface different patterns, so consistency matters more than any particular setting.
- 2Measure B against XA. Run a Fibonacci retracement from X to A and read where B landed within the harmonic ratio set. This single ratio does most of the sorting between a Gartley, Bat, or Butterfly candidate.
- 3Validate BC, then project D. Confirm the BC retracement sits inside its allowed window, then project the completion using the BC extension together with the pattern's required XA retracement or extension.
- 4Locate the cluster. The area where the XA-derived level, the BC projection, and any AB=CD measurement overlap forms the pattern's potential reversal zone. Tighter clusters are generally treated as higher-quality setups.
- 5Wait for price to arrive and react. No pattern exists until the market actually trades into the zone. Look for rejection candles, momentum divergence, or a lower-timeframe shift before acting, and know in advance which level, if closed through, kills the setup.
How traders use it
- Reversal entries at pattern completion: the standard play is to fade the final CD leg as price enters the projected zone, with a stop placed beyond the zone and profit targets staged at Fibonacci retracements of the AD swing.
- Defined-risk trade construction: because every leg is measured, the pattern hands you the invalidation level and the targets before entry, which makes position sizing and reward-to-risk calculations straightforward.
- Confluence filtering: completions that coincide with horizontal support or resistance, momentum divergence, or broader Fib wave relationships get priority over patterns that appear in isolation.
- Automated scanning: the numeric rules translate naturally into code, so detection indicators can build XABCD structures from zigzag pivots and flag completions in real time, though their output shifts with the pivot settings chosen.
- Multi-timeframe execution: a common workflow finds a completion on a higher timeframe, then drops to a lower timeframe to time the entry, keeping the pattern's invalidation level as the master stop.
Harmonic patterns vs related frameworks
Elliott Wave Theory: Both lean on Fibonacci relationships between swings, but Elliott Wave Theory counts waves inside a flexible fractal cycle that allows several valid interpretations, while harmonics test fixed, mostly five-point templates against strict ratio windows. Harmonics are more mechanical to verify; Elliott is more interpretive, and some traders use harmonic completions to time wave endings.
ABCD: The ABCD is the four-point unit embedded in most harmonics: two similar price legs separated by a retracement. Full XABCD patterns add the X anchor and stricter ratio requirements, so a standalone ABCD is simpler to spot but carries less measurement confluence at its completion point.
Gartley: The Gartley is one pattern; harmonic patterns are the family that grew out of it. The 1935 original supplied the structural template, and later authors derived the Bat, Butterfly, Crab, and the exotics by varying the required B retracement and D completion ratios.
Related concepts · Harmonic patterns
Concept family
Elliott & Harmonics
33 concepts mapped · 17 in the Library
Harmonic Patterns FAQ
Who invented harmonic patterns?
No single person. H.M. Gartley described the founding structure in his 1935 book Profits in the Stock Market, without assigning precise Fibonacci ratios. Larry Pesavento and Bryce Gilmore later attached specific ratios to that structure, and beginning with The Harmonic Trader in 1999, Scott Carney's books defined many of the modern patterns, standardized their ratios, and coined much of the vocabulary in use today.
Are harmonic patterns reliable?
Reliability is contested. There is no strong independent evidence that harmonic completions reverse price more often than chance, and quoted win rates vary widely depending on how swings are detected and how much ratio tolerance is allowed. The framework's clearest value is risk definition: a valid pattern specifies in advance where it fails. Backtest on your own market and timeframe before trusting any pattern.
What is the difference between bullish and bearish harmonic patterns?
They are mirror images with identical ratio requirements. A bullish pattern traces an M-like path and completes at a swing low, where traders look for long entries; a bearish pattern traces a W-like path and completes at a swing high, where they look for shorts.
Which harmonic pattern is the most accurate?
None is demonstrably superior. The Gartley and Bat are the most commonly cited retracement patterns, and the Crab is often noted for completing at the most extended level, but claims that a specific pattern wins a specific percentage of the time have not been shown to replicate across markets, timeframes, and detection settings.
Do harmonic patterns work on all markets and timeframes?
Traders apply them to forex, crypto, indices, stocks, and futures alike, since the measuring logic is market-agnostic. Liquid markets produce cleaner swings than thin ones, and higher timeframes carry less noise, but no market or timeframe has been shown to be consistently better for harmonic trading.
Build Harmonic Patterns your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.
.png&w=3840&q=75)

