Skills

Harmonic

Harmonic Patterns signal engine.

Install

npx skills add HKUDS/Vibe-Trading --skill harmonic -g -a claude-code -y
Repository
HKUDS/Vibe-Trading37.4k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Lightabout 344 tokens
Runs scripts
Yes, review before use

What it does

Harmonic Patterns signal engine. Identifies XABCD five-point structures such as Gartley/Bat/Butterfly/Crab based on Fibonacci geometry, and generates trading signals in the PRZ (Potential Reversal Zone).

Harmonic Patterns

Purpose

The Fibonacci geometry school uses precise ratio relationships to identify price patterns:

PatternB-Point RetracementD-Point RetracementDirection
Gartley0.618 XA0.786 XAReversal
Bat0.382-0.5 XA0.886 XAReversal
Butterfly0.786 XA1.27 XAReversal
Crab0.382-0.618 XA1.618 XAReversal

Core Concepts

  • XABCD five-point pattern: a price structure defined by precise Fibonacci ratios
  • PRZ (Potential Reversal Zone): the convergence area around point D, where reversal probability is high
  • Bullish pattern (point D at the bottom) → buy signal
  • Bearish pattern (point D at the top) → sell signal

Dependencies

pip install "vibe-trading-ai[harmonic]"

pyharmonics is optional. If the extra is not installed, the example signal engine falls back to the bundled detector.

Parameters

ParameterDefaultDescription
is_stockFalseWhether the instrument is a stock (affects analysis parameters)

Signal Convention

  • 1 = long, -1 = short, 0 = stand aside
  • A swing point is only known swing_window bars after it forms, so the signal is stamped on that confirmation bar, not on the swing bar itself (bundled detector only; the optional pyharmonics path is unchanged)

More in Engineering