Skip to content
cccskills
FreePublished on GitHub

harmonic

Detect five-point price patterns using Fibonacci ratios and generate buy, sell, or stand-aside signals. The skill identifies Gartley, Bat, Butterfly, and Crab patterns and locates potential reversal zones, where a price trend may change direction.

OriginalShow the original description

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

See how to install

Good for

  • Detecting harmonic patterns in price data
  • Identifying potential reversal zones
  • Generating buy, sell, and stand-aside signals
  • Checking when a swing point becomes confirmed

Files included (4)

  • SKILL.md1.6 KB
  • example_signal_engine.py15.8 KB
  • references/PRZ交易.md723 B
  • references/XABCD形态.md873 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Harmonic Patterns

Purpose

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

PatternB-Point RetracementD-Point RetracementDirection
Gartley0.618 XA0.786 XAReversal
Bat0.382-0.5 XA0.886 XAReversal
Butterfly0.786 XA1.27 XAReversal
Crab0.382-0.618 XA1.618 XAReversal

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

ParameterDefaultDescription
is_stockFalseWhether 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)

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-Trading35.9KUpdated Oct 19, 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-Trading35.9KUpdated Oct 19, 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-Trading35.9KUpdated Oct 19, 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-Trading35.9KUpdated Oct 19, 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-Trading35.9KUpdated Oct 19, 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-Trading35.9KUpdated Oct 19, 2026

See all skills by HKUDS

Report a problem with this skill