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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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_windowbars after it forms, so the signal is stamped on that confirmation bar, not on the swing bar itself (bundled detector only; the optionalpyharmonicspath 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
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.