agentleFS
wwumitwwumit/skills-stock/skills/fund-flow/SKILL.md

fund-flow

Skill0 starsChanged 3 months agoMITView on GitHub

资金流向分析工具 v1.1.0。分析股票/板块的主力资金净流入排行、 散户资金对比、净额排序。支持资金趋势检测(3/5/10日)、 板块聚合分析、多时间维度(日/周/月)、与指数对比、强度评分。

The file

Files
SKILL.md

⚠️ 免责声明:本工具为辅助性参考工具,不构成投资建议,不构成法律建议。市场有风险,投资需谨慎;据此操作,风险自担。正式合规意见请咨询具备资质的律师。最终决策与责任由使用者自行承担。 仅供学习研究参考;> 仅供参考,不构成任何操作依据;市场有风险,投资需谨慎,据此操作风险自担。

💹 Fund Flow

Overview

分析A股市场的资金流向数据,通过主力(超大单+大单)和散户(小单)的净流入对比,识别资金趋势。支持趋势检测、板块聚合、多时间维度分析。

Usage

# 基本排行
python3 scripts/fund_flow.py --file fundflow.csv

# 资金趋势检测
python3 scripts/fund_flow.py --file fundflow.csv --trend

# 板块聚合分析
python3 scripts/fund_flow.py --file fundflow.csv --sector --sector-col 板块

# 周度分析
python3 scripts/fund_flow.py --file fundflow.csv --timeframe week

# 与指数对比
python3 scripts/fund_flow.py --file fundflow.csv --compare --index-name 沪深300

# ASCII趋势图
python3 scripts/fund_flow.py --file fundflow.csv --chart

# 输出JSON
python3 scripts/fund_flow.py --file fundflow.csv --output ranking.json

输出示例

💰 资金流向分析
    ==================================================================
    识别列: 代码=name, 主力=mainForce, 散户=retail
    总标的: 45
    主力总流入: +12,450,000,000
    散户总流入: -3,200,000,000
    净总额: +9,250,000,000
    ==================================================================
    排名  代码           记录   主力净流入        散户净流入           净额        占比
    ---------------------------------------------------------------------------
       1 比亚迪            22   +852,000,000    -124,000,000   +728,000,000↑  87%
       2 宁德时代          20   +645,000,000     -98,000,000   +547,000,000↑  87%
       3 茅台              18   +423,000,000     -45,000,000   +378,000,000↑  90%
       4 东方财富          20   -120,000,000    +230,000,000   -350,000,000↓  34%

命令详解

命令说明
(默认)资金流向排行分析
--trend资金趋势检测(3/5/10日方向+持续性)
--sector板块聚合分析
--timeframe多时间维度分析
--compare与指数对比
--chartASCII趋势图

资金强度评分

综合以下因素:

  • 主力流入方向: 正/负流入 ±15分
  • 主力占比: >60% +10分, >40% +5分
  • 持续性: 连续流入3天+ +10分
  • 背离信号: 主力流入+散户流出 +10分

CSV列自动识别

角色候选列名
代码name, 代码, stock, 板块, sector
主力净流入main_force, mainForce, netamount, 主力净流入
散户净流入retail, retailForce, 小单净流入
日期date, 日期, trade_date
板块sector, 板块, industry, 行业

Security

  • ✅ 纯本地运行,无网络请求
  • ✅ 只读CSV数据文件
  • ❌ 无任意代码执行

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.