market-pattern
它能做什么
这项技能在价格 K 线中查找知名的图表形态,并按类型和方向为每种形态加上标签。适合研究市场图表、希望快速获得一份排名形态列表的人。
适用场景
- ✓当你想在某个代码的价格历史中查找 K 线形态时。
- ✓当你想按可靠性评分对检测到的形态进行排序时。
- ✓当你想保存形态结果以便之后比较时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-market-data/skills/market-pattern/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在这只股票上一季度的数据中找出 K 线形态,并按可靠性排序。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能读取该代码和时间段的已存储 K 线,查找单根、两根、三根和多根 K 线组成的形态,并为每个匹配项给出名称、类型、方向以及 0 到 1 之间的可靠性评分。然后对结果排序并保存。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Market Pattern
Scan ingested OHLCV data for known candlestick patterns, classify them by type and reliability, and store for future reference.
When to use
When you need to identify candlestick patterns (doji, hammer, engulfing, head-shoulders, etc.) in market data. Requires data to be ingested first via market-ingest.
Steps
- Load candles -- call
mcp__plugin_ruflo-core_ruflo__memory_search(ormemory_list) on themarket-datanamespace to retrieve normalized OHLCV data for the symbol and period. Thememory_*tool family routes by namespace; theagentdb_hierarchical-*family does NOT (it routes by tier), so usememory_*for namespaced reads. - Scan for patterns -- iterate through candle sequences looking for:
- Single-candle: doji (open ~= close), hammer (long lower wick), inverted hammer
- Two-candle: bullish/bearish engulfing
- Three-candle: morning star, evening star, three white soldiers, three black crows
- Multi-candle: head & shoulders, double top/bottom, cup & handle
- Classify -- for each detection, assign: pattern name, type (reversal/continuation), direction (bullish/bearish), reliability score (0.0-1.0)
- Rank -- sort by reliability score descending
- Store -- two paths (per ruflo-cost-tracker ADR-0001 dual-path pattern):
- Pattern-store (typed, recommended):
mcp__plugin_ruflo-core_ruflo__agentdb_pattern-storewithtype: 'market-pattern'. Don't pass anamespacearg — ReasoningBank routes it; on bridge unavailability the fallback writes to the reservedpatternnamespace withcontroller: 'memory-store-fallback'(see ruflo-agentdb ADR-0001). - Plain store (namespace-routable):
mcp__plugin_ruflo-core_ruflo__memory_store --namespace market-patterns— this DOES respect themarket-patternsnamespace becausememory_*is namespace-routed.
- Pattern-store (typed, recommended):
- Report -- display: pattern name, date range, direction, reliability, suggested action
CLI alternative
npx @claude-flow/cli@latest memory search --query "bullish reversal patterns" --namespace market-patterns
npx @claude-flow/cli@latest memory store --key "pattern-AAPL-2026-05-04-doji" --value '{...}' --namespace market-patterns
常见问题
这项技能需要先有数据吗?
需要。在运行此技能之前,必须先用市场数据导入技能加载价格数据。
可靠性评分是什么意思?
它是给每个匹配项的一个 0.0 到 1.0 之间的数字,列表按最高分排在前面。
这些形态能预测未来价格吗?
不能。该技能只标注过去数据中出现的形态,不预测价格走势。
详情
热度
- GitHub 星标
- 81k
- 排名
- #1644
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。