← Back to Skills Marketplace
wtjjacobj

蜡烛图分析

by wtjjacobj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
130
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install candle-chart
Description
使用akshare获取股票数据,按Steve Nison《日本蜡烛图技术》逻辑识别形态,生成深色盯盘风格K线图(含信号带+成交量)
README (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日),已废弃,统一使用本技能。

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install candle-chart
  3. After installation, invoke the skill by name or use /candle-chart
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首发:基于Steve Nison蜡烛图技术的形态识别,支持8种形态检测,深色盯盘风格
Metadata
Slug candle-chart
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 蜡烛图分析?

使用akshare获取股票数据,按Steve Nison《日本蜡烛图技术》逻辑识别形态,生成深色盯盘风格K线图(含信号带+成交量). It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.

How do I install 蜡烛图分析?

Run "/install candle-chart" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 蜡烛图分析 free?

Yes, 蜡烛图分析 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 蜡烛图分析 support?

蜡烛图分析 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 蜡烛图分析?

It is built and maintained by wtjjacobj (@wtjjacobj); the current version is v1.0.0.

💬 Comments