elliott-wave
What it does
This skill applies Elliott Wave Theory to price data. It is for technical traders who want a structured wave count with clear rules, and who know that counts can be subjective.
When to use it
- ✓When you want to count five-wave advances and three-wave corrections in a price chart.
- ✓When you want to know whether a trend may be near its top or a pullback may be ending.
- ✓When you want an automatic wave count that follows fixed rules.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/elliott-wave/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
“Apply Elliott wave rules to this price history and tell me whether the trend looks close to a top or a finished correction.”
5 new skills a week. 1 minute to read.
How it works
The agent detects swing points in the price data, matches five-wave and three-wave structures, and checks them against wave rules and Fibonacci ratios. It then generates a signal when a five-wave advance or an ABC correction appears complete.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Elliott Wave Theory
Purpose
Classic wave theory based on the core assumption that markets move in fractal wave structures:
| Structure | Wave Count | Direction | Meaning |
|---|---|---|---|
| Impulse wave | 5 waves (1-2-3-4-5) | Trend-following | Main trend direction |
| Corrective wave | 3 waves (A-B-C) | Counter-trend | Pullback correction |
Core Rules
Three Iron Rules for Impulse Waves
- Wave 2 cannot retrace beyond the start of wave 1
- Wave 3 cannot be the shortest impulse wave
- Wave 4 cannot enter the price territory of wave 1
Fibonacci Relationships Between Waves
- Wave 2 retraces 0.5-0.618 of wave 1
- Wave 3 = wave 1 × 1.618 (most common)
- Wave 4 retraces 0.382 of wave 3
- Wave 5 ≈ the length of wave 1
Signal Logic
- 5-wave advance completed → sell (trend top)
- ABC pullback completed → buy (correction finished)
- Wave 3 in progress → stay with the trend (no reversal signal is generated)
Parameters
| Parameter | Default | Description |
|---|---|---|
| swing_window | 10 | Rolling window for swing-point detection |
| fib_tolerance | 0.15 | Tolerance for Fibonacci ratios |
| min_wave_bars | 5 | Minimum number of candles per wave |
Notes
Wave theory is highly subjective, and automatic counting can yield multiple interpretations. This implementation uses a "simplest effective single interpretation" strategy and would rather miss signals than misclassify them.
Dependencies
pip install pandas numpy requests
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
FAQ
Are wave counts always accurate?
No. Wave counting is subjective, and automatic counts can have several valid readings, so results should be tested.
What are the main wave rules?
Wave two cannot retrace past the start of wave one, wave three cannot be the shortest impulse, and wave four cannot enter wave one's price range.
Does it signal during the third wave?
No. During an active third wave, it stays with the trend and does not generate a reversal signal.
Details
Original description by the author
Elliott Wave Theory signal engine. Detects swing points through Zigzag, matches 5-wave impulse and 3-wave corrective structures, validates them with Fibonacci wave relationships, and generates trend-top / correction-complete signals. Pure in-house pandas implementation.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7516
- 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.