Skip to content
Skillpedia
Analysis & spreadsheets37k · #7523

harmonic

What it does

This skill finds specific shapes in price charts based on Fibonacci ratios. It is for traders who use chart patterns and want a rule-based way to find possible entry zones.

When to use it

  • ✓When you want to check whether a stock or crypto chart shows a Gartley, Bat, Butterfly, or Crab pattern.
  • ✓When you are looking for a possible reversal zone in past price data.
  • ✓When you want to test a pattern-based trading signal on historical prices.

Skill link

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/harmonic/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/harmonic/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Does the Bitcoin chart show a Gartley pattern right now?”

5 new skills a week. 1 minute to read.

How it works

It marks five key price points, called XABCD, and checks whether their distances match Fibonacci ratios. When the final point falls in a reversal zone, it creates a signal.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Harmonic Patterns

Purpose

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

Pattern B-Point Retracement D-Point Retracement Direction
Gartley 0.618 XA 0.786 XA Reversal
Bat 0.382-0.5 XA 0.886 XA Reversal
Butterfly 0.786 XA 1.27 XA Reversal
Crab 0.382-0.618 XA 1.618 XA Reversal

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

Parameter Default Description
is_stock False Whether 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)
FAQ

What does PRZ mean?

PRZ stands for Potential Reversal Zone. It is the price area where a pattern suggests the trend may turn.

Do I need to install anything extra?

The basic version works without extras. An optional library can be added for the pyharmonics engine.

Does a pattern guarantee a profit?

No. Patterns only suggest odds, so a trade based on one can still lose money.

Details

Original description by the author

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).

repo: HKUDS/Vibe-Trading

Popularity

GitHub stars
37k
Ranking position
#7523
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills