Appearance
Personalize your experience
XABCD Pattern
Harmonic patternA five-point harmonic structure (X\u2013A\u2013B\u2013C\u2013D) where the D completion point is projected from the XA leg via specific Fibonacci ratios. The family includes Gartley, Bat, Crab, and Butterfly sub-types, each defined by distinct ratio tolerances at the B and D turning points.
Origins & theory
The XABCD framework descends from H.M. Gartley's 1935 work "Profits in the Stock Market," which first described a four- pattern (A\u2013B\u2013C\u2013D) based on the observation that price moves in leg pairs. Gartley noticed that when the BC retracement fell at specific Fibonacci levels of AB, the resulting CD leg tended to complete at a precise of the initial AB move. His work predated the widespread of Fibonacci retracement tools in retail trading platforms and relied on manual calculation of price ratios.
Modern trading was formalised by Scott in the late 1990s and early 2000s, published across two volumes of " Trading." the X origin to Gartley's structure and introduced strict Fibonacci ratio requirements for each pattern variant. His key insight was that the XA leg \u2014 not AB \u2014 provides the most reliable Fibonacci for the D completion point. Carney identified the Bat (0.886 XA) and Crab ( XA) patterns, while Larry Pesavento and Robert Bryant contributed to the variant documentation. 's work shifted trading from a qualitative art to a quantitative discipline with measurable entry and exit rules.
all XABCD patterns is the concept of the Potential Reversal Zone (PRZ) \u2014 a cluster of Fibonacci levels at D where multiple ratios converge. The PRZ is the -probability entry zone because it represents a of geometric confluence: the CD leg typically reaches 1.272\u20131.618 of BC, a specific of XA, and often a prior support/resistance level. The tighter the PRZ cluster, the higher the probability of a reversal. A PRZ with three or more converging levels is considered a "strong" PRZ. argued that the PRZ is the single most concept in trading because it quantifies the point of maximum probability for a trend reversal.
The psychological of harmonic patterns lies in the self-fulfilling nature of widely watched Fibonacci levels. As more traders recognise the XABCD structure, they place orders at the PRZ, creating the very reversal they anticipate. This is similar to how numbers and moving averages become support and resistance through collective focus. The most reliable patterns occur on higher timeframes (daily and weekly) where institutional traders operate and where Fibonacci levels carry more weight due to the larger capital flows involved.
Pattern structure
Fibonacci ratios by variant
Each XABCD variant is defined by three key Fibonacci ratios: the B of XA, the C of AB, and the D retracement of XA. The D ratio is the most critical \u2014 it determines the PRZ entry zone. Below are the exact ratios for each variant as defined by , Pesavento, and Bryant.
How to draw (4 clicks)
- 1Identify X–A impulseLocate a , clean price swing with overlap between bars. The X–A leg should be unambiguous — a strong trend move with volume. Avoid X–A legs that form during low-volume or holiday periods.
- 2Mark B retracementPlace B where price pulls back from A. B must not exceed the X extreme, and must fall within the variant-specific Fib zone (e.g. –0.618 for Crab, 0.786 for ). Use the snap-to-Fib feature to ensure .
- 3Mark C extensionPlace C where price extends beyond A, ideally at 1.272– of AB. The C confirms the pattern direction and sets up the final CD leg. If C fails to reach 1.272 AB, the pattern may be invalid.
- 4D projects automaticallyThe tool projects D based on the selected variant. D is the of XA (e.g. 0.886 for Bat). Price reaching D completes the pattern; enter on reversal confirmation. The tool shows the PRZ as a highlighted .
How to identify valid patterns
Not every five-swing sequence is a valid XABCD pattern. The following must be met for the pattern to have a edge. Applying these filters rigorously improves win rates from approximately 40% (unfiltered) to 65\u201370% (filtered).
- Clean X\u2013A leg: The X\u2013A swing must be a distinct, recognisable with 3\u20135 bars minimum. Choppy, overlapping X\u2013A legs produce unreliable projections. The X\u2013A leg should have a trend direction with volume.
- B within tolerance: B must retrace XA to the exact Fib zone for the chosen variant. A B at 0.65 is acceptable for a Crab but not for a Bat (max 0.5). Use the settings to set tolerance levels.
- C exceeds A: C must extend beyond A by at least 1.272 AB. If C fails to exceed A, the pattern is not valid \u2014 it may be a different structure. In rare cases, a C that barely exceeds A (1.05 AB) may still be valid with wider tolerance.
- D at PRZ: D must land at the precise of XA for the variant. The closer D is to the exact ratio, the higher the probability of reversal. A D within 0.02 of the ideal ratio is excellent.
- AB=CD symmetry: In the Gartley, AB should approximately equal CD in price distance. Tools that enforce AB=CD increase . For Bat and Crab, AB=CD is not required but adds confluence.
- Prior S/R at D: If the PRZ coincides with a prior swing high/low, a , or a , the confluence is significantly stronger. The more levels at D, the higher the probability of reversal.
Trading strategy
The XABCD pattern is traded as a reversal at the D completion . Both bullish and bearish setups follow the same structure but vertically. The key to profitability is disciplined entry at the PRZ with confirmed price rejection.
Invalidation conditions
Recognising when a harmonic pattern has failed is as as recognising when it is valid. The following conditions signal that the XABCD pattern is no longer tradeable. Exiting quickly when these occur preserves capital for the next setup.
- B exceeds X: If B retraces past the X extreme, the pattern is invalid. The move may be a trend reversal rather than a . Exit any pending entry and re-evaluate the trend direction.
- C fails to exceed A: If C is lower than A (in an uptrend) or higher than A (in a downtrend), the leg never materialised. The pattern degenerates into a flat or , not a .
- D breaks beyond tolerance: If price slices through the D PRZ by more than 1 without reversing, the pattern has failed. Exit any pending entry. A break beyond D signals that the structure has been overpowered by the larger trend.
- Variant mismatch: If B is at 0.65 and you are using the Bat variant (max B=0.5), the pattern is not a Bat. Re-classify as a Crab or Gartley, or discard the setup entirely.
- False break at D: Price tags D intraday but closes beyond it, then continues in the same direction. The PRZ failed as a . Do not re-enter \u2014 the pattern has failed and should be removed from the chart.
- Trend resumption through PRZ: If the larger trend overwhelms the PRZ and price closes beyond D with momentum, the harmonic pattern has been by macro forces. Accept the loss and move on.
Pattern psychology
The XABCD pattern reflects a specific sequence of trader emotions. The X\u2013A leg represents initial conviction \u2014 traders are confident in the trend direction. The A\u2013B creates doubt: is this a pullback or a reversal? The B\u2013C reignites confidence as price breaks beyond A, attracting latecomers. Finally, the C\u2013D leg into the PRZ represents exhaustion \u2014 the last gasp of the trend before the inevitable reversal. Understanding this psychological progression helps traders anticipate the reversal at D and avoid being caught on the wrong side of the trade.
The PRZ (Potential Reversal Zone) at D is where the greatest number of traders are trapped. Latecomers who entered during the B\u2013C are now underwater as price reverses at D. Their stop-loss orders, placed just beyond D, are triggered as the reversal unfolds, adding fuel to the new trend. The PRZ thus functions as a "trap zone" \u2014 a where the maximum number of market participants are positioned incorrectly. emphasised that the PRZ is not just a Fibonacci level but a "zone of maximum pain" for the wrong-positioned trader.
This trap is strongest when the PRZ coincides with a prior support/resistance level or a number. The combination of Fib confluence and psychological price levels creates a powerful reversal magnet. On higher timeframes (daily and weekly), this effect is amplified by the of institutional traders who place orders at these levels. The self-fulfilling nature of harmonic patterns means that the mere presence of a recognised PRZ increases the probability of a reversal, as multiple traders independently place orders at the same levels.
Multi-timeframe analysis
XABCD patterns should always be analysed in the context of higher and lower timeframes. A pattern on the 1-hour chart that is aligned with the daily trend direction has a significantly higher probability of success. Conversely, a pattern that forms against the higher timeframe trend requires additional confluence (more Fib levels, stronger divergence) before it can be traded. recommended a "top-down" approach: identify the trend on the weekly chart, find harmonic patterns on the daily chart that align with that trend, and use the 4-hour chart for precise entry timing.
Fractal harmonics: the same XABCD pattern can appear on multiple timeframes simultaneously. For example, a daily chart may show a Bat pattern completing, while the 4-hour chart shows a smaller Gartley pattern within the XA leg. Trading in the direction of the larger harmonic pattern while using the smaller pattern for entry timing is a powerful technique.
Common mistakes
Performance considerations
The XABCD pattern\u2019s performance varies significantly by variant and market condition. The Gartley pattern (D at 0.786 XA) has the historical of approximately 68\u201372% in backtests across major forex pairs and equity indices, but produces the smallest average risk/reward ratio (approximately 1:2.5). The Bat pattern (D at 0.886 XA) has a slightly lower win rate (63\u201367%) but larger risk/reward (1:3.5) due to the deeper providing a tighter stop. The Crab pattern (D at XA) has the lowest win rate (55\u201360%) but the highest risk/reward (1:5+), making it suitable for traders with a lower win rate tolerance. The (D at 1.272 XA) sits in the middle with approximately 62\u201366% win rate and 1:3 risk/reward.
Market conditions matter: harmonic patterns perform best in range-bound markets where Fib levels act as reliable magnets. In strongly trending markets, the D is frequently overrun as the trend overpowers the structure. In low-volatility environments, the PRZ produces more false touches. The optimal conditions for XABCD trading are moderate volatility ( within the 30\u201370th percentile) and a alternating swing structure. The pattern\u2019s performance also degrades on lower timeframes (sub-1-hour) where price noise reduces the of Fib projections. For best , trade XABCD patterns on 1-hour to daily charts with a minimum ATR of 20 (forex) or 0.50 points (equities).
Algorithmic considerations
When implementing XABCD pattern detection algorithmically, the following parameters should be configurable: tolerance per ratio (B, C, and D tolerance should be independent), minimum XA leg length (in bars and price distance), maximum pattern (to avoid stale patterns), and confluence detection (distance to nearest support/resistance level). The algorithm should reject patterns where the B\u2013C leg takes significantly longer than the X\u2013A leg (more than 2x the time), as this suggests the pattern is degenerating. across multiple market regimes is essential to validate that the tolerance settings are appropriate for the specific market being traded.
Settings reference
References & further reading
- 1.Harmonic Trading Volume 1 & 2 — Scott Carney
- 2.Profits in the Stock Market — H.M. Gartley (1935)
- 3.Harmonic Patterns guide — TradingView Help
- 4.The Bat Pattern — Investopedia
- 5.Fibonacci Ratios with Pattern Recognition — Larry Pesavento
- 6.Elliott Wave Principle — Frost & Prechter
- 7.Harmonic Trading on TradingView — TradingView Community
Related articles
Related to XABCD Pattern
- ABCD Pattern
Charts / Drawing Tools / Patterns
A four-point harmonic structure (A\u2013B\u2013C\u2013D) defined by the AB=CD leg equality rule. The simplest and most foundational harmonic pattern \u2014…
- Cypher Pattern
Charts / Drawing Tools / Patterns
A five-point harmonic pattern (X\u2013A\u2013B\u2013C\u2013D) characterised by an extended X\u2013A leg (1.13\u20131.414) and a precise 0.786 retracement of…
- Three Drives Pattern
Charts / Drawing Tools / Patterns
A seven-point reversal pattern with three successive push legs connected by two pullback legs. Each drive extends by a specific Fibonacci ratio (1.272,…
- Elliott Correction Wave (ABC)
Charts / Drawing Tools / Patterns
A three-wave corrective structure labelled A\u2013B\u2013C that moves counter to the larger trend. The most common types are zigzag (5-3-5 internal…
- Elliott Impulse Wave (12345)
Charts / Drawing Tools / Patterns
A five-wave motive structure (1\u20132\u20133\u20134\u20135) that moves in the direction of the larger trend. Three of the waves are impulsive (1, 3, 5) and…
- Elliott Triangle Wave (ABCDE)
Charts / Drawing Tools / Patterns
A five-wave corrective pattern labelled A\u2013B\u2013C\u2013D\u2013E where price moves sideways between two converging or diverging boundary lines. All…
- Elliott Triple Combo (WXYXZ)
Charts / Drawing Tools / Patterns
A complex corrective pattern comprising three corrective structures (W\u2013Y\u2013Z) connected by two intervening X waves. Denoted…
- Harmonic
Automation / Grid Modes / Harmonic
Harmonic explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Harmonic reference.
- Head & Shoulders
Charts / Drawing Tools / Patterns
A three-peak reversal pattern with two lower shoulders flanking a higher head. The neckline connects the troughs \u2014 a decisive break below it confirms…