← 返回 Skills 市场
wtjjacobj

蜡烛图分析

作者 wtjjacobj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
130
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install candle-chart
功能描述
使用akshare获取股票数据,按Steve Nison《日本蜡烛图技术》逻辑识别形态,生成深色盯盘风格K线图(含信号带+成交量)
使用说明 (SKILL.md)

蜡烛图分析技能

使用

# 默认60天
python3 ~/.openclaw/scripts/蜡烛图工具.py 600585

# 指定天数
python3 ~/.openclaw/scripts/蜡烛图工具.py 600585 90

核心逻辑

1. 形态识别(8种)

形态 标注 判断条件
看涨吞没 吞↑ 颜色相反+完全包覆+前一天实体>16%
看跌吞没 吞↓ 颜色相反+完全包覆+前一天实体>16%
乌云盖顶 高开+收盘\x3C前一天实体50%+前一天实体>16%
刺透形态 低开+收盘>前一天实体50%+前一天实体>16%
早晨之星 3日形态:下跌→星线→上涨+第一天实体>16%
黄昏之星 3日形态:上涨→星线→下跌+第一天实体>16%
锤子线 身体\x3C3%+下影线>2.5倍身体
流星线 身体\x3C3%+上影线>2.5倍身体

2. 防误判规则

  • 前一天实体必须>16%(避免纺锤线干扰)
  • 吞没/乌云/刺透/早晨/黄昏都应用此规则

3. 图表结构(三层)

  • K线区域:蜡烛图 + MA5/10/20均线 + 早晨/黄昏/吞没特殊标注(五角星/箭头)
  • 信号带:独立区域,文字标注各形态,括号标注最后交易日预警
  • 成交量区域:副图柱状图

4. 视觉风格

  • 背景:深蓝黑 #1A1A2E(盯盘风格)
  • 上涨K线:珊瑚红 #FF6B6B
  • 下跌K线:青绿色 #4ECDC4
  • 均线:MA5(红) / MA10(黄) / MA20(青)
  • 每10天有分割线便于定位

5. 数据来源

  • 使用 akshare 腾讯接口获取日线数据
  • 自动动态计算日期范围(近180天)

文件位置

  • 主脚本:~/.openclaw/scripts/蜡烛图工具.py

与蜡烛图形态分析的关系

⚠️ 蜡烛图形态分析(workspace/skills/蜡烛图形态分析/)是同一脚本的旧副本(3月16日),已废弃,统一使用本技能。

安全使用建议
This skill appears to do what it says: fetch A‑share data with akshare, detect candlestick patterns, and draw K‑line charts. Before installing/running: 1) ensure your Python environment has akshare, pandas, numpy, matplotlib; 2) akshare will make network requests to public market-data endpoints—only run if you trust that behavior; 3) confirm the full script (the manifest showed it truncated) to ensure there are no unexpected behaviors in the omitted portion; and 4) run it with an unprivileged account and inspect generated images rather than piping output to other systems. If you need offline or audited operation, install akshare from a trusted source and review the complete script file first.
功能分析
Type: OpenClaw Skill Name: candle-chart Version: 1.0.0 The skill bundle is a legitimate financial analysis tool for generating Japanese candlestick charts using the 'akshare' library. The Python script (蜡烛图工具.py) implements standard technical analysis patterns and uses matplotlib to save a visualization to the user's desktop, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name/description claim (identify candlestick patterns and draw dark-theme K‑line charts) matches the Python implementation which calls akshare for market data and renders plots. Minor inconsistency: akshare is used but not declared in metadata/requirements; the skill assumes the runtime has the akshare package available.
Instruction Scope
SKILL.md and the script restrict actions to fetching market data via akshare, computing pattern booleans, and plotting results. The instructions reference a specific local path (~/.openclaw/scripts/蜡烛图工具.py) but do not direct reading unrelated system files, nor do they transmit data to unexpected external endpoints beyond akshare's normal network calls.
Install Mechanism
There is no install spec (instruction-only + code file). No downloads or archives are fetched by the skill itself. Caller must ensure Python environment has required libs (akshare, pandas, matplotlib, numpy).
Credentials
The skill requests no environment variables or credentials. The code makes network calls through akshare to obtain market data (expected). No secrets, unrelated tokens, or config paths are requested.
Persistence & Privilege
always is false and the skill does not request system-wide persistence or modify other skills. It writes/reads nothing beyond generating plots (no indicators of privilege escalation).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install candle-chart
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /candle-chart 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首发:基于Steve Nison蜡烛图技术的形态识别,支持8种形态检测,深色盯盘风格
元数据
Slug candle-chart
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

蜡烛图分析 是什么?

使用akshare获取股票数据,按Steve Nison《日本蜡烛图技术》逻辑识别形态,生成深色盯盘风格K线图(含信号带+成交量). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。

如何安装 蜡烛图分析?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install candle-chart」即可一键安装,无需额外配置。

蜡烛图分析 是免费的吗?

是的,蜡烛图分析 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

蜡烛图分析 支持哪些平台?

蜡烛图分析 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 蜡烛图分析?

由 wtjjacobj(@wtjjacobj)开发并维护,当前版本 v1.0.0。

💬 留言讨论