harmonic
它能做什么
这项技能基于斐波那契比率在价格图表中寻找特定的形态。适合使用图表形态、并希望有一种基于规则的方法来寻找可能入场区域的交易者。
适用场景
- ✓当你想检查某只股票或加密货币图表是否呈现 Gartley、Bat、Butterfly 或 Crab 形态的时候。
- ✓当你想在历史价格数据中寻找可能的反转区域的时候。
- ✓当你想在历史价格上测试基于形态的交易信号的时候。
技能链接
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/harmonic/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“比特币图表现在是否呈现 Gartley 形态?”
每周 5 个新技能,1 分钟读完。
工作原理
它会标记五个关键价格点,称为 XABCD,并检查它们之间的距离是否符合斐波那契比率。当最后一个点落在反转区域内时,就会生成信号。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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)
常见问题
PRZ 是什么意思?
PRZ 代表潜在反转区(Potential Reversal Zone),即形态暗示趋势可能转向的价格区域。
我需要额外安装什么吗?
基础版本无需额外安装。若要使用 pyharmonics 引擎,可以选择添加一个可选的库。
形态能保证盈利吗?
不能。形态只提示概率,因此基于它的交易仍可能亏损。
详情
作者的原始描述
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).
repo: HKUDS/Vibe-Trading
热度
- GitHub 星标
- 37k
- 排名
- #7523
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …