Fund Flow

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

ChengQian

@cqdev-ai

What This Skill Does

Analyzes A-share stock and sector fund flow data from CSV files, ranking stocks by main capital net inflow, comparing retail investor flows, and detecting multi-day trends. Supports sector aggregation, timeframe analysis (day/week/month/year), index comparison, and strength scoring.

Replaces manual spreadsheet analysis of fund flow data by automating trend detection, sector aggregation, and strength scoring with a single command-line tool.

When to Use It

  • Rank stocks by main capital net inflow to identify top picks
  • Detect 3/5/10-day fund flow trends for a stock or sector
  • Compare main capital vs retail investor flows for divergence signals
  • Aggregate fund flows by sector to see which industries attract capital
  • Analyze fund flow strength scores combining direction, proportion, and persistence
  • Compare individual stock fund flows against a benchmark index like CSI 300

Install

$ openclaw skills install @cqdev-ai/fund-flow

💹 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数据文件
  • ❌ 无任意代码执行

Top skills in this category

Stock Analysis

@udiedrichsen

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.

25758k

Stock Market Pro

@kys42

Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...

15532k

A股量化 AkShare

@mbpz

A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。

10131k

Stock Watcher

@robin797860

Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.

8736k

Intelligent Stocks Screener

@financial-ai-analyst

基于东方财富数据库,支持通过自然语言输入筛选A港美股、基金、债券等多种资产,支持多元指标筛选,含技术面、消息面、基本面及市场情绪等,可用于全球资产速筛、跨市场监控、投资组合构建、策略回测等场景。返回结果包含数据说明及 csv 文件。Natural language screener for investment...

10626k