StratBase.aiStratBase.ai
DashboardCreate BacktestMy BacktestsCatalogBlogNewsToolsHelp

Products

  • Researcher Dashboard
  • Create Backtest
  • My Backtests
  • Catalog
  • Blog
  • News

Alerts

  • Calendar
  • OI Screener
  • Funding Rate
  • REKT
  • Pump/Dump

Company

  • About Us
  • Pricing
  • Affiliate
  • AI Widget
  • Contact

Legal

  • Privacy
  • Terms
  • Refund Policy

Support

  • Help Center
  • Reviews
StratBase.aiStratBase.ai

Think it. Test it.

StratBase.ai does not provide financial advice or trading recommendations. AI only formalizes user ideas into testable strategy configurations for research purposes. Past backtesting performance does not guarantee future results. All trading decisions and associated risks are the sole responsibility of the user. This platform is not a broker and does not facilitate real trading.

© 2026 StratBase.ai · AI-powered strategy research and backtesting platform

support@stratbase.ai
Harmonic Patterns: Gartley, Bat, and Butterfly in Practice
How-ToENharmonic patternsGartley pattern

Harmonic Patterns: Gartley, Bat, and Butterfly in Practice

James Mitchell2/28/2026(updated 5/1/2026)4 min read132 views

Harmonic patterns are among the most precise tools in a technical trader’s arsenal, combining Fibonacci ratios with geometric price structures to identify high-probability reversal zones. On StratBase.ai, you can backtest harmonic pattern strategies across hundreds of crypto pairs — validating whether these formations deliver consistent edge before risking real capital.

What Are Harmonic Patterns?

Harmonic patterns are geometric price formations defined by specific Fibonacci retracement and extension levels. Unlike simple chart patterns such as head-and-shoulders or double tops, harmonics require exact ratio alignment between each price leg. When these ratios converge, they create a Potential Reversal Zone (PRZ) — an area where price is statistically more likely to reverse.

The concept was pioneered by H.M. Gartley in the 1930s and later refined by Scott Carney, who catalogued dozens of distinct formations. Today, harmonic trading remains popular among algorithmic traders because the strict mathematical definitions make patterns ideal for systematic backtesting.

The Five Core Harmonic Patterns

While dozens of harmonic variations exist, five patterns form the foundation of most trading strategies:

PatternKey Ratio (B Point)PRZ Ratio (D Point)Bias
Gartley0.618 of XA0.786 of XAReversal
Butterfly0.786 of XA1.27 – 1.618 of XAReversal
Bat0.382 – 0.50 of XA0.886 of XAReversal
Crab0.382 – 0.618 of XA1.618 of XAReversal
SharkN/A (0-5-3-5)0.886 – 1.13 of initial legReversal

Each pattern consists of four price legs labeled X-A, A-B, B-C, and C-D. The D point is where the trade is executed — the Potential Reversal Zone.

Step-by-Step: Backtesting Harmonics on StratBase.ai

  1. Select your instrument. Open the strategy configurator on StratBase.ai and choose a crypto pair. Harmonic patterns tend to work best on liquid pairs like BTC/USDT or ETH/USDT where price action is cleaner.
  2. Choose your timeframe. Higher timeframes (4H, 1D) produce more reliable harmonic formations. Start with the 4-hour chart for a balance between signal frequency and accuracy.
  3. Add pattern-based entry conditions. StratBase.ai’s engine includes 61 pattern indicators. Select the harmonic pattern you want to test — for instance, a bullish Gartley completion as your long entry trigger.
  4. Define risk management. Set your stop-loss just beyond the PRZ (typically 1.13× the XA leg for a Gartley) and your take-profit at the A-point retracement or a Fibonacci extension of the C-D leg.
  5. Configure the backtest period. Use at least one year of historical data. Premium subscribers can test up to five years, which captures multiple market regimes.
  6. Run and analyze. Launch the backtest and review the results — win rate, profit factor, maximum drawdown, and average risk-reward ratio.

Combining Harmonics with Confluence Filters

Harmonic patterns alone can generate false signals, especially in trending markets where price may blow through the PRZ. Adding confluence filters dramatically improves reliability:

  • RSI divergence: Look for RSI divergence at the D-point. If price makes a new low but RSI makes a higher low, the reversal probability increases.
  • Volume confirmation: Declining volume on the C-D leg followed by a volume spike at D suggests genuine buying interest at the PRZ.
  • Support and resistance alignment: When the PRZ coincides with a historical support or resistance level, the pattern carries significantly more weight.
  • Funding rate context: Use StratBase.ai’s Funding Rate Monitor to check whether funding is extreme — highly negative funding at a bullish PRZ strengthens the reversal thesis.

In StratBase.ai’s configurator, you can stack multiple conditions to create these confluence setups and backtest them systematically.

Common Mistakes to Avoid

First, never force a pattern. If the Fibonacci ratios are off by more than a few percent, the formation is not a valid harmonic — skip it. Second, avoid trading harmonics in strong trending markets without a trend filter. A bullish Gartley in a steep downtrend is fighting momentum. Third, do not set overly tight stops. The PRZ is a zone, not a single price point, so allow room for price to probe beyond D before reversing.

Interpreting Your Backtest Results

After running your harmonic strategy backtest, focus on three metrics. A win rate above 55% is solid for harmonic strategies. A profit factor above 1.5 indicates that winners meaningfully outpace losers. Maximum drawdown should remain below 20% of your simulated account — if drawdown is excessive, tighten your position sizing or add stricter confluence filters. StratBase.ai’s AI analysis feature (available on Pro plans and above) can provide additional insights into regime-specific performance, helping you understand when harmonic patterns work best for your chosen pair.

Consider running separate backtests for each harmonic pattern type to isolate which formations produce the most consistent results on your target instrument and timeframe.

Further Reading

  • RSI on Investopedia
  • Backtesting on Investopedia
  • Drawdown on Investopedia

About the Author

J
James Mitchell

Trading systems developer and financial engineer. 10+ years building automated trading infrastructure and backtesting frameworks across crypto and traditional markets.

FAQ

What are harmonic patterns?▾

Harmonic patterns are chart patterns defined by specific Fibonacci ratios between their legs (XABCD). Unlike simple patterns (head & shoulders, triangles), harmonics require PRECISE ratio relationships. For example, a Gartley pattern requires: B = 61.8% retracement of XA, D = 78.6% retracement of XA, C = 38.2-88.6% retracement of AB.

Which harmonic pattern is most reliable?▾

The Bat pattern (discovered by Scott Carney) is often considered the most reliable because: 1) It has the tightest ratio requirements (less ambiguity). 2) The D point (88.6% retracement) provides a clear invalidation level. 3) The risk:reward is favorable — tight stop (just beyond X), target at A or beyond. However, no pattern works 100% — always use proper risk management.

Further reading

Position SizingRisk-RewardMaximum DrawdownFibonacci RetracementFunding Rate

Related articles

fibonacci retracement guideaccount slippage backtestingaccumulation distribution guideadx trend strength guideai assistant create strategy

Comments (0)

Loading comments...