Agent Skills
› HKUDS/Vibe-Trading
› harmonic
harmonic
GitHub基于斐波那契几何识别XABCD谐波形态(如Gartley、Bat等)并生成潜在反转区交易信号。支持股票及不同品种参数配置,解决历史数据重算导致的信号滞后与覆盖问题。
Trigger Scenarios
需要识别特定谐波形态以寻找交易机会
计算潜在反转区域以辅助买卖决策
Install
npx skills add HKUDS/Vibe-Trading --skill harmonic -g -y
SKILL.md
Frontmatter
{
"name": "harmonic",
"category": "strategy",
"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)."
}
Harmonic Patterns
Purpose
The Fibonacci geometry school uses precise ratio relationships to identify price patterns:
| Pattern | B-Point Retracement | D-Point Retracement | Direction |
|---|---|---|---|
| Gartley | 0.618 XA | 0.786 XA | Reversal |
| Bat | 0.382-0.5 XA | 0.886 XA | Reversal |
| Butterfly | 0.786 XA | 1.27 XA | Reversal |
| Crab | 0.382-0.618 XA | 1.618 XA | Reversal |
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
| Parameter | Default | Description |
|---|---|---|
| is_stock | False | Whether the instrument is a stock (affects analysis parameters) |
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 (bundled detector only; the optionalpyharmonicspath is unchanged)
Version History
-
c546e87
Current 2026-10-19 04:44
修复了基于摆动点的信号时间戳问题:将信号标记在确认K线而非形成K线,避免未来函数并防止后续极值点替换早期信号。
- 0aa45a9 2026-07-24 17:46


