Skip to content

Harmonic Patterns Signal Engine

Spots XABCD Fibonacci chart patterns and flags long/short signals at the reversal zone

Stars
37,433
Licence
MIT
Files
4 files

What it does

This skill teaches an AI agent to look for specific five-point price shapes (Gartley, Bat, Butterfly, Crab) in market price data, using Fibonacci ratios to define them. When such a shape completes near its end point, called the PRZ (Potential Reversal Zone), the agent can produce a simple signal: 1 for long, -1 for short, or 0 to stand aside. It also includes a bundled example script that performs this detection and can use the optional pyharmonics library if installed.

Great for

  • Traders or analysts who already use Fibonacci harmonic pattern theory and want automated detection
  • Developers building a backtesting or screening prototype around chart patterns
  • Students learning how harmonic pattern rules are coded

Skip it if

  • Anyone expecting reliable trading profits: the skill presents pattern-based reversal signals without any evidence of predictive accuracy, and markets can move against them; acting on these signals with real money carries real loss risk
  • People who want financial advice; the output is a mechanical pattern match, not a recommendation
  • Use on live trading accounts without review, since the bundled script's signal logic and parameters have not been validated in the files provided

Try asking

  • “Scan this BTC daily price CSV for Gartley or Bat patterns and list any bullish PRZ signals”
  • “Explain the difference between a Butterfly and a Crab pattern using the ratios in this skill”
  • “Run the harmonic signal engine on my stock data with is_stock set to true and summarize the signals”
  • “Write a backtest that uses the harmonic signal convention (1, -1, 0) on historical OHLC data”
Step-by-step guide: how to use Harmonic Patterns Signal EngineInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 4 original files, the MIT licence and an attribution note.

    harmonic.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip harmonic.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip harmonic.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Give the agent clean OHLC price data with a consistent timeframe so swing detection is meaningful
  • Ask the agent to report swing_window confirmation bars so you see signals only after the pattern is confirmed
  • Treat outputs as hypotheses to backtest and validate, not as trade instructions

What's inside

  • example_signal_engine.py
  • references/PRZ交易.md
  • references/XABCD形态.md
  • SKILL.md

Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.