Skip to content
cccskills
FreePublished on GitHub

elliott-wave

Analyze price swings to detect Elliott Wave structures: five waves following a trend and three waves correcting it. Check wave rules and Fibonacci ratios, then generate signals for completed advances or pullbacks using a pandas implementation.

OriginalShow the original description

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.

See how to install

Good for

  • Detecting five-wave advances in price data
  • Identifying completed ABC corrections
  • Adjusting wave-detection parameters
  • Checking the delay before a signal is confirmed

Files included (4)

  • SKILL.md2.0 KB
  • example_signal_engine.py15.8 KB
  • references/Fibonacci浪间关系.md868 B
  • references/波浪结构.md1.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Elliott Wave Theory

Purpose

Classic wave theory based on the core assumption that markets move in fractal wave structures:

StructureWave CountDirectionMeaning
Impulse wave5 waves (1-2-3-4-5)Trend-followingMain trend direction
Corrective wave3 waves (A-B-C)Counter-trendPullback 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

ParameterDefaultDescription
swing_window10Rolling window for swing-point detection
fib_tolerance0.15Tolerance for Fibonacci ratios
min_wave_bars5Minimum 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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

adr-hshare

FreeSummary

Compare a Chinese company's US depositary receipts, Hong Kong shares, and mainland shares after adjusting for exchange rates and share ratios. Analyze pricing gaps, valuation differences, and delisting risks to support research into its different listings.

  • Compare A-share and H-share pricing gaps
  • Measure ADR premiums against Hong Kong shares
  • Review US delisting risks and Hong Kong listing alternatives
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

akshare

FreeSummary

Retrieve stock prices, futures quotes, exchange rates, and economic indicators with the free Python library AKShare. The skill explains market-specific functions, symbol formats, and data preparation for analysis and testing strategies against historical data.

  • Retrieve historical prices for Chinese, US, and Hong Kong stocks
  • Collect Chinese GDP and consumer price data
  • Check futures quotes and foreign exchange rates
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

alpha-zoo

FreeSummary

Explore bundled libraries of investment factors, signals used to compare securities, and inspect individual formulas and metadata. Evaluate a factor or an entire library across a chosen universe and period, producing aggregate performance statistics and an HTML report.

  • Find bundled momentum or reversal factors
  • Inspect a named factor's formula and metadata
  • Compare a factor library across a chosen universe and period
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

Assess whether a Chinese A-share company may receive ST or *ST risk warnings next financial year. Review financial forecasts, dividends, audit opinions, and regulatory penalties, then report risk severity separately from confidence in the prediction.

  • Reviewing a Chinese A-share company's future ST risk
  • Assessing escalation risk for an existing ST or *ST stock
  • Checking revenue, equity, and dividend warning signs
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

asset-allocation

FreeSummary

Plan portfolio allocations across assets using risk, correlations, return forecasts, and trading costs. Compare five optimization methods, produce settings for config.json, and define rebalancing rules that adjust holdings back toward their target weights.

  • Comparing allocations across stocks, bonds, and gold
  • Choosing an optimizer based on return forecasts and correlations
  • Preparing portfolio settings for config.json
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

Diagnose failed or abnormal backtests, which test trading strategies on historical data. Inspect result files, strategy code, and configuration to identify bugs, make targeted repairs, rerun tests, and verify the updated metrics.

  • Investigating backtest execution errors
  • Finding why a strategy produces no trades
  • Checking delayed trades or low capital usage
HKUDS/Vibe-Trading36.4KUpdated Oct 23, 2026

See all skills by HKUDS

Report a problem with this skill