Appearance

Personalize your experience

Mode
Accent Color
Direction
XABCD Pattern

XABCD Pattern

Harmonic pattern

A 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

0.786 XA projectionXABCD (completion)
X\u2013A\u2013B\u2013C\u2013D with the XA projection zone (dashed) defining the D completion region. The PRZ sits where multiple Fib levels overlap.
Pattern swing Start / invalidation Completion / target Fib projection Fib level Key ratio
X → A — Impulse leg
The initial price swing that establishes the trading range. The quality of this leg determines the of the entire pattern. Should be a clean, 3–5 bar move with overlap.
A → B — Retracement leg
Price pulls back to a specific of XA. Acceptable range: 0.382–0.886 depending on the variant. The B defines which variant the pattern belongs to.
B → C — Extension leg
Price extends beyond A, typically reaching 1.272– of AB. This leg confirms the pattern is forming correctly and sets the trajectory for the final CD move.
C → D — Completion leg
The final leg that ends at the PRZ. D is defined by a specific of the XA leg, unique to each variant. The CD leg should mirror the AB leg in slope and character.
D — Potential Reversal Zone
The completion where the trade is entered. Multiple Fib ratios, prior S/R, and momentum divergence converge here. The PRZ is typically a price , not a single line.

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.

Gartley (222)
B at of XA; C at 1.272 of AB; D at 0.786 of XA. AB=CD strongly recommended. Named after page 222 in Gartley’s book. Most conservative variant with moderate retracement at D.
Bat (Carney)
B at –0.5 of XA; C at 1.272– of AB; D at 0.886 of XA. Deep retracement at B, shallow completion at D. The 0.886 level is the of 0.786.
Crab (Carney)
B at –0.618 of XA; C at of AB; D at 1.618 of XA. Requires XA extension at D — most variant. The wide range produces risk/reward ratios.
Butterfly (Bryant)
B at 0.786 of XA; C at of AB; D at 1.272 of XA. Distinctive deep B with moderate D extension. The B at 0.786 is unique to this variant.
Shark (Carney)
B at –0.5 of XA; C at 1.128–1.272 of AB; D at 0.886–1.128 of XA. Newer variant with tighter PRZ. The C is shallower than other variants.
ℹ
Note:Tolerance is typically \u00B10.05 for B and C ratios, and \u00B10.02 for D. The D completion is the most critical ratio \u2014 a deviation beyond tolerance invalidates the pattern for that variant. Tighter tolerance (e.g. \u00B10.02 for all ratios) produces fewer signals but higher win rates.

How to draw (4 clicks)

  1. 1
    Identify X–A impulse
    Locate 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.
  2. 2
    Mark B retracement
    Place 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 .
  3. 3
    Mark C extension
    Place 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.
  4. 4
    D projects automatically
    The 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 .
★
Pro tip: any to switch variants \u2014 the tool recalculates D for each pattern type. Use the variant selector in the settings to lock a specific PRZ calculation. Hold Shift while dragging to snap to Fib levels for B and C placement.

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.

Bullish entry (bottom)
XABCD forms a bottom: X is a high, D is a lower low. Enter long on a bullish reversal candle (, engulfing, piercing) at the PRZ. Target 1: B level (–0.618 retracement). Target 2: A–C zone. Stop: below D by 1–2 .
Bearish entry (top)
XABCD forms a top: X is a low, D is a higher high. Enter short on a bearish reversal candle (shooting star, , dark cloud) at the PRZ. Target 1: B level. Target 2: A–C zone. Stop: above D by 1–2 .
Confirmation rules
Require a close beyond the candle. Bullish: close above the reversal candle’s high. Bearish: close below the reversal candle’s low. Add or MACD divergence between C and D for higher probability.
Partial take-profit
Take 50% at the B level and the remainder to the A–C zone. This ensures partial profits even if the reversal fails to complete its full .
Position sizing
Risk 1–2% of account per pattern. The AB=CD leg provides a risk/reward ratio of at least 1:2 when targeting the A–C zone. For Crab patterns ( XA at D), risk/reward can reach 1:4 or higher.
Volume confirmation
Volume should expand on the reversal candle at D. Low-volume reversals are suspect and more likely to fail. A volume spike on the confirmation bar adds significant confidence.
!
Caution:Never trade the PRZ without a confirmed reversal candle. Price can slice through the Fib level and continue. Wait for a close that rejects the level before entering. The most common mistake is entering on the first of D \u2014 always wait for a close-based confirmation.

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

!
Caution:Forcing the pattern: Not every swing sequence is an XABCD. If intermediate ratios are out of tolerance, the D has no edge. Skip the trade. Forcing a pattern to fit your bias is the fastest way to lose money with trading.
!
Caution:Wrong variant selection: A B at XA could be Gartley or Crab. Check the pattern structure holistically \u2014 do not force a Bat label when ratios say Gartley. Use the variant selector to find the best fit for the actual ratios present on the chart.
!
Caution:Trading without confluence: The PRZ alone is not enough. Combine with trend direction, support/resistance, and momentum divergence for a high-probability setup. Patterns that lack confluence have a significantly lower . Aim for at least two sources of confluence before entering.
!
Caution:Ignoring the larger trend: A bullish XABCD in a strong downtrend is a counter-trend trade. Counter-trend have lower win rates and require tighter stops. Always check the higher timeframe trend before entering a harmonic pattern.
ℹ
Note:Harmonic patterns work best on higher timeframes (1h+) where Fib levels are more reliable. On minute charts, price noise produces excessive false PRZ touches. For lower timeframes, use wider tolerance settings and require stronger confluence (three or more confirming factors) before entering.

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

Pattern Type
Gartley, Bat, Crab, , Shark — auto-switches Fib targets and PRZ calculation. Each type has unique B and D ratio requirements.
Max D Extension
Maximum allowable Fib ratio at D (default 2.0). Prevents extreme projections beyond reasonable limits.
Tolerance
Acceptable deviation from ideal ratios (±0.02–0.05). Tighter tolerance = higher but fewer signals. Default: ±0.05 for B/C, ±0.02 for D.
Line Color / Style
Per-segment color, thickness, and dash pattern. Segments default: XA=solid, AB=dashed, BC=dash-dot, CD=solid. PRZ zone shown as a shaded .
Show Projections
Toggle dashed XA zone . Shows the PRZ as a highlighted with the target Fib level annotated.
Show AB=CD
Display the AB=CD price equivalence annotation when applicable (Gartley ). Shows the difference between AB and CD lengths.
Label Style
Font size and position for X, A, B, C, D labels. : above , below point, or inline with the leg.

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

  • 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…

Browse all knowledge base articles →