Skip to content
Agentmart
Submit a tool

a-share-smart-money

A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data…

Skill by aifinlab

IndexedApache-2.0★ 261
Write a review

Chalk Labs

Need help deploying a-share-smart-money?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aifinlab-a-share-smart-money

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。

Use cases: data, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/a-share-smart-money

What's inside

Skill name
a-share-smart-money
Description
A股聪明钱指标/主力行为量化识别。当用户说"聪明钱"、"smart money"、"主力行为"、"大单分析"、"机构行为"、"量价背离"、"主力在干嘛"、"有没有主力进场"时触发。基于 cn-stock-data 获取资金流向和K线数据,量化识别机构/主力资金行为模式。支持研报风格(formal)和快速分析风格(brief)。
License
Apache-2.0
Instructions
89 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • smart-money-guide.md · references/
  • smart_money_detector.py · scripts/

SKILL.md (first lines)

# A股聪明钱/主力行为识别 (a-share-smart-money)

## 数据源
通过 `cn-stock-data` 统一层获取:
- **fund_flow**: 个股资金流向(大单/中单/小单净流入)
- **kline**: 日K线(open/high/low/close/volume/amount)
- **quote**: 实时行情(辅助判断当前状态)

## 核心指标体系

### 1. 大单净流入占比 (Large Order Flow Ratio)
- 公式: `大单净流入 / 总成交额 × 100%`
- 阈值: >5% 强流入, 2%~5% 温和流入, -2%~2% 平衡, <-5% 强流出

### 2. OBV (On Balance Volume)
- 收盘上涨: OBV += 当日成交量; 下跌: OBV -= 当日成交量
- 关注 OBV 与价格的背离(价跌量增 = 吸筹信号)

### 3. A/D Line (Accumulation/Distribution)
- 公式: `CLV = ((close-low)-(high-close))/(high-low)`, `AD += CLV × volume`
- AD 持续上升但价格横盘 → 主力吸筹

### 4. MFI (Money Flow Index)
- 类似 RSI 但加入成交量权重,范围 0-100
- MFI > 80 超买(可能出货),MFI < 20 超卖(可能吸筹)

## 主力行为模式识别

| 模式 | 价格特征 | 量能特征 | 资金流特征 |
|------|---------|---------|-----------|
| 吸筹 accumulation | 低位横盘/缓跌 | 缩量后间歇放量 | 大单持续净流入 |
| 出货 distribution | 高位震荡/滞涨 | 高位放量 | 大单持续净流出 |
| 洗盘 washout | 急跌后快速收回 | 下跌缩量反弹放量 | 大单流出但占比小 |
| 拉升 markup | 连续上涨/突破 | 持续放量 | 大单强劲流入 |

## 工作流程
1. 调用 cn-stock-data 获取目标股票近 N 日资金流向 + K线数据
2. 保存为 JSON,调用 `scripts/smart_money_detector.py` 计算指标
3. 解读脚本输出的模式分类与置信度
4. 结合近期市场环境和个股基本面给出综合判断
5. 按用户偏好输出(formal / brief)

## 脚本调用
```bash
# 准备数据后调用
python scripts/smart_money_detector.py --flow flow.json --kline kline.json
# 可选: --days 20 (分析窗口,默认20)
```

## 输出格式

### formal(研报风格)
- 标题 + 股票信息
- 聪明钱指标总览表(大单占比/OBV趋势/AD方向/MFI值)
- 主力行为模式判定(模式名 + 置信度 + 证据链)
- 量价关系分析段落
- 近期关键信号时间线
- 风险提示与操作建议

### brief(快速分析风格)
- 一句话结论:主力在做什么(吸筹/出货/洗盘/拉升/无明显迹象)
- 关键指标速览(3-4个数字)
- 信号强度评级(强/中/弱)

## 注意事项
- 资金流向数据存在滞后性,不可作为唯一决策依据
- 大单定义因券商而异,跨数据源对比时需注意口径差异
- 短期资金流向噪声大,建议至少看 5-10 个交易日趋势
- 本分析为量化辅助工具,不构成投资建议

## 使用示例

### 示例 1: 基本使用

```python
# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})
```

### 示例 2: 命令行使用

```bash
python scripts/run_skill.py --input data.json
```

From aifinlab/FinClaw, Apache-2.0.

More from aifinlab/FinClaw

Signals

Stars
261
Forks
39
Open issues
2
Last commit (this folder)
Mar 26, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from aifinlab

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get a-share-smart-money running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying a-share-smart-money?

CallGet help
Cite this page

a-share-smart-money skill. Agent Mart. https://agentmart.dev/skills/aifinlab-a-share-smart-money (last updated 2026-10-24)