Search

PythonReactSEOPDF
OpenClaw

a-stock-kline-analyzer

A股K线分析工具,提供实时行情、技术指标计算、K线形态识别和技术分析报告(含详细判断依据和名词解释)

amatuer7180 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install amatuer718/a-stock-kline-analyzer

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

A-Stock Kline Analyzer

A股K线分析工具 - 提供实时行情、技术指标计算、K线形态识别和技术分析报告。

功能

  • 实时行情:新浪财经API获取实时价格
  • K线数据:Baostock获取历史K线数据
  • 技术指标:MA、MACD、RSI、布林带
  • 形态识别:锤子线、十字星、吞没形态
  • 分析报告:自动生成技术分析报告
  • 可视化:生成K线图(可选)

数据源

数据类型 来源 稳定性
实时价格 新浪财经 ✅ 稳定
K线历史 Baostock ✅ 稳定

使用方法

# 基础分析
python3 scripts/kline_analyzer.py --code 600409 --days 30 --realtime --report

# 生成图表
python3 scripts/kline_analyzer.py --code 600409 --days 60 --plot --output chart.png

# JSON输出
python3 scripts/kline_analyzer.py --code 600409 --json

参数说明

参数 说明 示例
--code 股票代码 600409
--days 获取天数 30
--period 周期 daily/weekly/monthly
--realtime 获取实时价格 -
--report 生成分析报告 -
--plot 生成图表 -
--output 图表保存路径 chart.png
--json JSON格式输出 -

依赖

  • Python 3.8+
  • pandas
  • matplotlib
  • baostock

安装

pip3 install baostock pandas matplotlib --break-system-packages

示例输出

📊 600409 三友化工 技术分析报告
==================================================
【实时行情】
最新价: 8.42 元
涨跌幅: -3.11%

【技术指标】
MA5: 8.62 (股价在下方📉)
RSI(14): 67.60 (中性➖)
MACD: 0.413 (金叉📈)

【综合建议】
• MACD金叉,短期动能偏多

免责声明

本工具仅供学习研究使用,不构成投资建议。股市有风险,投资需谨慎。

版本

v1.0.0 - 2026-03-09

许可证

MIT License

Source information

Source
github
Repository
openclaw/skills
Path
skills/amatuer718/a-stock-kline-analyzer
Version
—
Commit
1caef4387d2fb90f670f52d7fc59e301c23041b9
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# A-Stock Kline Analyzer

A股K线分析工具 - 提供实时行情、技术指标计算、K线形态识别和技术分析报告。

## 功能

- **实时行情**:新浪财经API获取实时价格
- **K线数据**:Baostock获取历史K线数据
- **技术指标**:MA、MACD、RSI、布林带
- **形态识别**:锤子线、十字星、吞没形态
- **分析报告**:自动生成技术分析报告
- **可视化**:生成K线图(可选)

## 数据源

| 数据类型 | 来源 | 稳定性 |
|---------|------|--------|
| 实时价格 | 新浪财经 | ✅ 稳定 |
| K线历史 | Baostock | ✅ 稳定 |

## 使用方法

```bash
# 基础分析
python3 scripts/kline_analyzer.py --code 600409 --days 30 --realtime --report

# 生成图表
python3 scripts/kline_analyzer.py --code 600409 --days 60 --plot --output chart.png

# JSON输出
python3 scripts/kline_analyzer.py --code 600409 --json
```

## 参数说明

| 参数 | 说明 | 示例 |
|-----|------|------|
| `--code` | 股票代码 | 600409 |
| `--days` | 获取天数 | 30 |
| `--period` | 周期 | daily/weekly/monthly |
| `--realtime` | 获取实时价格 | - |
| `--report` | 生成分析报告 | - |
| `--plot` | 生成图表 | - |
| `--output` | 图表保存路径 | chart.png |
| `--json` | JSON格式输出 | - |

## 依赖

- Python 3.8+
- pandas
- matplotlib
- baostock

## 安装

```bash
pip3 install baostock pandas matplotlib --break-system-packages
```

## 示例输出

```
📊 600409 三友化工 技术分析报告
==================================================
【实时行情】
最新价: 8.42 元
涨跌幅: -3.11%

【技术指标】
MA5: 8.62 (股价在下方📉)
RSI(14): 67.60 (中性➖)
MACD: 0.413 (金叉📈)

【综合建议】
• MACD金叉,短期动能偏多
```

## 免责声明

本工具仅供学习研究使用,不构成投资建议。股市有风险,投资需谨慎。

## 版本

v1.0.0 - 2026-03-09

## 许可证

MIT License

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.