Xpersona
股

股票技术分析

CLAWHUB · Unverified

Professional stock & fund technical analysis tool for A-share, HK, US markets — MA, MACD, RSI, KDJ, Bollinger Bands, ATR, scoring system. 股票技术分析工具,支持A股/港股/美股... Skill: 股票技术分析 Owner: write31bug Summary: Professional stock & fund technical analysis tool for A-share, HK, US markets — MA, MACD, RSI, KDJ, Bollinger Bands, ATR, scoring system. 股票技术分析工具,支持A股/港股/美股... Tags: latest:1.8.1 Version history: v1.8.1 | 2026-04-09T11:44:00.562Z | user Enriched SKILL.md with English frontmatter tags, scoring table, bilingual content v1.8.0 | 2026-04-09T11:28:37.576Z | user v1.8.0: 配置文件与持仓管理

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s178sjyvq7maptwn35ee7xaj4h847tq4:stock-analysis-tool
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-write31bug-stock-analysis-tool/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

20,567 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: stock-technical-analysis
description: Professional stock & fund technical analysis tool for A-share, HK, US markets — MA, MACD, RSI, KDJ, Bollinger Bands, ATR, scoring system. 股票技术分析工具,支持A股/港股/美股/基金技术分析,量化评分系统。
metadata:
  {
    "openclaw":
      { "requires": { "bins": ["python"] }, "install": [{ "id": "python", "kind": "python", "label": "Python 3.8+" }] },
    "tags": ["stock", "finance", "technical-analysis", "A股", "量化", "MACD", "RSI", "KDJ"],
    "homepage": "https://github.com/write31bug/stock-technical-analysis"
  }
---

# 📈 Stock Technical Analysis Tool

> Multi-market technical analysis CLI tool for stocks and funds — A股, 港股, 美股, ETF/LOF/开放式基金

---

## ✨ Feature Highlights | 功能亮点

| | Feature | 功能 |
|--|---------|------|
| 🌏 | **Multi-Market** | A股(沪深)、港股、美股、ETF/LOF/开放式基金 |
| 📊 | **Full Indicators** | MA, MACD, RSI, KDJ, Bollinger Bands, ATR, Volume |
| 🔀 | **MACD Divergence** | Automatic bullish/bearish divergence detection |
| 🛡️ | **Dual Data Sources** | Primary + fallback with auto-failover |
| 📈 | **Quant Score** | 0-100 score across 6 dimensions + 5-tier trend |
| ⚡ | **Batch Mode** | Multi-threaded concurrent analysis |
| 📝 | **Multiple Outputs** | JSON / Terminal Table / ASCII / File |
| 🔌 | **Offline Test** | `--test` mode with mock data |

---

## 📊 Scoring System | 评分体系

| Score | Trend | 趋势 |
|-------|-------|------|
| ≥75 | 🚀 Strong Uptrend | 强势上涨 |
| 60-74 | 📈 Uptrend | 上涨趋势 |
| 40-59 | ↔️ Consolidation | 震荡整理 |
| 25-39 | 📉 Downtrend | 下跌趋势 |
| <25 | 🔻 Strong Downtrend | 强势下跌 |

---

## 🚀 Quick Start

### Installation

```bash
# Core dependencies
pip install pandas numpy requests

# Optional
pip install akshare    # A股/基金备用数据源
pip install yfinance   # 港美股数据源
```

### Usage

```bash
# A股
python scripts/stock_analysis.py 600519

# 港股
python scripts/stock_analysis.py 00700 -m hkstock

# 美股
python scripts/stock_analysis.py AAPL -m usstock

# ETF 基金
python scripts/stock_analysis.py 159934 -t fund

# 开放式基金
python scripts/stock_analysis.py 001316 -t fund

# JSON 输出
python scripts/stock_analysis.py 600519 --json --pretty

# 批量分析
python scripts/stock_analysis.py -b 600036,600900,510310

# 离线测试
python scripts/stock_analysis.py 600519 --test
```

---

## ⌨️ Command Reference

| Argument | Short | Description |
|----------|-------|-------------|
| `stock_code` | - | Stock/fund code |
| `--market` | `-m` | Market: `auto` / `ashare` / `hkstock` / `usstock` |
| `--type` | `-t` | Asset type: `stock` / `fund` |
| `--days` | `-d` | History days (default: `60`) |
| `--batch` | `-b` | Batch mode (comma-separated) |
| `--json` | `-j` | JSON output |
| `--pretty` | `-p` | Pretty-print JSON |
| `--test` | - | Offline test mode |
| `--ascii` | - | ASCII mode (no unicode) |
| `--watchlist` | `-w` | Analyze from watchlist |
| `--add` | - | Add to watchlist |
| `--list` | `-l` | List watchlist |
| `--version` | `-v` | Show version |

---

## 🗂️ Project Structure

```
stock-technical-analysis/
├── _meta.json              # Ski

README.md

# 📈 Stock Technical Analysis Tool

> Multi-market technical analysis for stocks and funds — A股, 港股, 美股, ETF/LOF/开放式基金

*[English](#english) / [中文](#中文)*

---

## ✨ Features | 功能亮点

| Feature | Description |
|---------|-------------|
| 🌏 **Multi-Market** | A股 (沪深), 港股, 美股, ETF/LOF/开放式基金 |
| 📊 **Technical Indicators** | MA, MACD, RSI, KDJ, Bollinger Bands, ATR, Volume Analysis |
| 🔀 **MACD Divergence** | Auto-detect bullish & bearish divergences |
| 🛡️ **Dual Data Sources** | Primary + fallback, automatic failover |
| 📈 **Quant Score** | 0-100 score across 6 dimensions + 5-tier trend judgment |
| ⚡ **Batch Analysis** | Multi-threaded concurrent analysis, mixed stock+fund |
| 📝 **Multiple Outputs** | JSON / Terminal Table / ASCII / File |
| 🔌 **Offline Test** | `--test` mode with mock data, no internet needed |

---

## 🚀 Quick Start | 快速开始

### Installation | 安装

```bash
# Core dependencies (required)
pip install pandas numpy requests

# Optional dependencies (extended data sources)
pip install akshare    # A股/基金备用数据源
pip install yfinance    # 港美股数据源
```

### Usage | 使用

```bash
# A股(自动识别沪深)
python scripts/stock_analysis.py 600519

# 港股
python scripts/stock_analysis.py 00700 -m hkstock

# 美股
python scripts/stock_analysis.py AAPL -m usstock

# ETF 基金
python scripts/stock_analysis.py 159934 -t fund

# 开放式基金
python scripts/stock_analysis.py 001316 -t fund

# JSON 输出
python scripts/stock_analysis.py 600519 --json --pretty

# 批量分析
python scripts/stock_analysis.py -b 600036,600900,510310

# 离线测试
python scripts/stock_analysis.py 600519 --test
```

---

## 📊 Scoring System | 评分体系

| Score | Trend | Interpretation |
|-------|-------|---------------|
| ≥75 | 🚀 Strong Uptrend | Technically strong, multiple indicators bullish |
| 60-74 | 📈 Uptrend | Technically bullish, short-term trend up |
| 40-59 | ↔️ Consolidation | Neutral, direction unclear |
| 25-39 | 📉 Downtrend | Technically bearish, short-term trend down |
| <25 | 🔻 Strong Downtrend | Technically weak, multiple indicators bearish |

---

## 🗂️ Project Structure | 项目结构

```
stock-technical-analysis/
├── _meta.json              # Skill metadata
├── SKILL.md                # Skill documentation
├── requirements.txt        # Python dependencies
└── scripts/
    └── stock_analysis.py   # Main script
```

---

## ⌨️ Command Reference | 命令行参数

| Argument | Short | Description |
|----------|-------|-------------|
| `stock_code` | - | Stock/fund code (positional) |
| `--market` | `-m` | Market: `auto` / `ashare` / `hkstock` / `usstock` |
| `--type` | `-t` | Asset type: `stock` / `fund` |
| `--days` | `-d` | History days (default: `60`) |
| `--batch` | `-b` | Batch mode (comma-separated) |
| `--json` | `-j` | JSON output |
| `--pretty` | `-p` | Pretty-print JSON |
| `--test` | - | Offline test mode |
| `--ascii` | - | ASCII mode (no unicode issues) |
| `--watchlist` | `-w` | Analyze from watchlist |
| `--add` | - | Add to watchlist |
| `--list` | - | List watchlist |
| `--version` | `-v` | Show 

_meta.json

{
  "ownerId": "kn7e54p5dayhkw3dbhf91r813x8477xd",
  "slug": "stock-analysis-tool",
  "version": "1.8.1",
  "publishedAt": 1775735040562
}

skill-card.md

## Description:

Professional stock and fund technical analysis tool for A-share, Hong Kong, and US markets, including MA, MACD, RSI, KDJ, Bollinger Bands, ATR, volume analysis, and a quantitative scoring system.

This skill is ready for commercial/non-commercial use.

## Publisher:

[write31bug](https://clawhub.ai/user/write31bug)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to run command-line technical analysis for stocks, funds, ETFs, and LOFs across A-share, Hong Kong, and US markets. It supports single-security analysis, batch analysis, watchlists, JSON output, terminal tables, and offline test mode.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Live analysis sends requested securities to external market-data providers.

Mitigation: Use --test for offline analysis when live data is not needed, and review data-source behavior before analyzing sensitive watchlists.

Risk: Watchlist entries are saved locally under ~/.stock-analysis/config.json.

Mitigation: Avoid storing sensitive portfolios on shared machines, and review or remove saved watchlist entries when they are no longer needed.

Risk: Technical indicators and quantitative scores can be mistaken for investment advice.

Mitigation: Treat outputs as technical-analysis reference material only and verify decisions with authoritative financial sources.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/write31bug/skills/stock-analysis-tool)
- [Project Homepage](https://github.com/write31bug/stock-technical-analysis)

## Skill Output:

**Output Type(s):** [Analysis, JSON, Shell commands, Configuration, Guidance]

**Output Format:** [Terminal table, JSON, ASCII text, or file output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Supports single-security, batch, watchlist, and offline test modes.]

## Skill Version(s):

1.8.1 (source: server release metadata; artifact _meta.json and script report 1.8.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

requirements.txt

# 核心依赖(必需)
pandas>=1.5.0
numpy>=1.23.0
requests>=2.28.0

# 可选依赖
# akshare>=1.12.0    # A股/基金备用数据源
# yfinance>=0.2.0    # 港美股数据源

Sponsored

Ads related to 股票技术分析 and adjacent AI workflows.