Skip to content
Skillpedia
Analysis & spreadsheets37k · #7516

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.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/elliott-wave/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

“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

  1. Wave 2 cannot retrace beyond the start of wave 1
  2. Wave 3 cannot be the shortest impulse wave
  3. 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_window bars 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills