Harmonic Pattern Calculator

Identify harmonic patterns and calculate the Potential Reversal Zone (PRZ). Enter your XABC points to find Gartley, Bat, Butterfly, Crab, and more patterns.

Enter XABC Points

For bullish patterns: X is the low, A is the high, B retraces down, C bounces up

Pattern Matches

Enter all XABC points to identify patterns

Harmonic Pattern Reference

GartleyXAD: 78.6%
BatXAD: 88.6%
ButterflyXAD: 127.0%
CrabXAD: 161.8%
Deep CrabXAD: 161.8%
SharkXAD: 88.6%
CypherXAD: 78.6%

How to Use This Harmonic Pattern Calculator

Our harmonic pattern calculator helps you identify XABCD patterns and calculate the Potential Reversal Zone (PRZ) where price is likely to reverse. Follow these steps:

  1. Select Pattern Direction: Choose Bullish if you're looking for a buying opportunity (price moving up from D), or Bearish for a selling opportunity (price moving down from D).
  2. Enter Point X: This is the starting point of the pattern. For bullish patterns, X is typically a swing low. For bearish patterns, X is a swing high.
  3. Enter Point A: The first significant swing after X. This creates the XA leg, which is the foundation for all Fibonacci calculations.
  4. Enter Point B: The retracement of the XA leg. The XAB ratio determines which patterns are possible.
  5. Enter Point C: The retracement of the AB leg. Together with XAB, this helps identify the specific pattern.
  6. Review Results: The calculator shows matching patterns with their confidence score and the calculated PRZ where you should look for point D.

What Are Harmonic Patterns?

Harmonic patterns are advanced technical analysis formations that use Fibonacci ratios to identify potential reversal points in the market. Discovered by H.M. Gartley in 1932 and later refined by Scott Carney, these patterns provide precise entry and exit points based on mathematical relationships.

The key insight behind harmonic trading is that price movements tend to follow Fibonacci ratios. By measuring the relationships between price swings (legs), traders can predict where the next reversal is likely to occur.

Understanding XABCD Structure

All harmonic patterns follow the XABCD structure with five points connected by four legs:

  • XA Leg: The initial impulse move that establishes the pattern's foundation
  • AB Leg: The first retracement of XA. The XAB ratio is crucial for pattern identification
  • BC Leg: Retracement of AB. The ABC ratio further narrows down possible patterns
  • CD Leg: The final leg that completes at the PRZ. The BCD and XAD ratios define the entry zone

Common Harmonic Patterns

Gartley Pattern

The original harmonic pattern with XAB at 0.618 and XAD at 0.786. It offers a favorable risk-reward ratio with the tightest PRZ of all patterns.

Bat Pattern

Features a deeper XAD retracement at 0.886 with XAB between 0.382-0.50. The Bat provides excellent entry points with minimal risk.

Butterfly Pattern

An extension pattern where D goes beyond X. XAB is at 0.786 and XAD extends to 1.27-1.618. Great for catching major reversals.

Crab Pattern

The most extreme extension pattern with XAD at 1.618. It has the highest risk but also the highest reward potential when it works.

Cypher Pattern

A newer pattern with BC extending beyond A (1.272-1.414). XAD completes at 0.786, similar to Gartley but with different internal structure.

Shark Pattern

Also known as the 5-0 pattern, it features a unique structure with BC extending beyond A. XAD completes between 0.886-1.13.

Trading the Potential Reversal Zone (PRZ)

The PRZ is where multiple Fibonacci levels converge, creating a high-probability reversal area. When trading harmonic patterns:

  • Wait for Confirmation: Don't enter blindly at the PRZ. Look for candlestick patterns, divergences, or volume confirmation.
  • Set Tight Stops: Place stops just beyond the PRZ. If the pattern fails, exit quickly to minimize losses.
  • Use Fibonacci Targets: Take profits at 38.2%, 61.8%, and 100% retracements of the CD leg.
  • Risk Management: Never risk more than 1-2% of your account on a single harmonic trade.

Frequently Asked Questions

What are harmonic patterns in trading?

Harmonic patterns are geometric price patterns that use Fibonacci ratios to identify potential reversal points. Common patterns include Gartley, Bat, Butterfly, Crab, Shark, and Cypher. These patterns help traders identify high-probability trading opportunities with defined risk-reward ratios.

What is the XABCD pattern structure?

XABCD is the standard labeling for harmonic patterns. X is the starting point, A is the first swing, B is the retracement of XA, C is the retracement of AB, and D is the Potential Reversal Zone (PRZ) where the pattern completes and a reversal is expected.

What is the Potential Reversal Zone (PRZ)?

The PRZ is a price zone where multiple Fibonacci levels converge, indicating a high-probability area for price reversal. It combines the XAD retracement/extension with the BCD projection to define entry zones for trades.

Which harmonic pattern is most reliable?

The Gartley and Bat patterns are often considered most reliable due to their stricter Fibonacci requirements. However, all harmonic patterns require confirmation from price action, volume, or other indicators before entering trades.

How do I trade harmonic patterns?

Enter trades at the PRZ (point D) with stops placed beyond the pattern invalidation level. For bullish patterns, place stops below D; for bearish patterns, place stops above D. Take profits at Fibonacci retracements of the CD leg (38.2%, 61.8%) or the AD leg.

Automate Harmonic Pattern Detection on TradingView

Found your pattern? Let Pineify's AI Agent create a custom TradingView indicator that automatically detects harmonic patterns and alerts you when the PRZ is reached. Describe your trading rules in plain English.