stock-alpha

股智Alpha - A股智能选股系统。基于行为金融学(SLSV羊群因子)+ 技术面(RSI/MACD/MA)+ 资金流(主力净流入)+ 舆情情绪,对A股全市场进行多维度评分和筛选。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "stock-alpha" with this command: npx skills add golikegod/stock-alpha

股智Alpha - A股智能选股 Agent Skill

触发场景

当用户提出以下任一需求时,使用此技能:

  • "帮我选今天的精选股票"
  • "分析一下某只股票"
  • "今天买什么"
  • "股票推荐"
  • "全市场扫描"
  • "评分最高的股票"

工作流程

用户提问 → 调用 run_screener.py → 返回 Top 20 精选池 + 分析理由
        → 或调用 analyze_stock.py → 返回单只股票分析报告

核心功能

1. 全市场扫描评分

python scripts/run_screener.py --top-n 20

输出示例:

┌────────┬──────────┬────────┬──────────┬──────────┬────────┬──────┐
│ 代码   │ 名称     │ 综评   │ 行为面   │ 技术面   │ 资金面 │ 信号 │
├────────┼──────────┼────────┼──────────┼──────────┼────────┼──────┤
│ 600036 │ 招商银行 │ 0.72   │ 0.65(看多)│ 0.55    │ 0.68   │ ★超卖 │
│ 600519 │ 贵州茅台 │ 0.68   │ 0.58(中性)│ 0.62    │ 0.55   │ 观望  │
│ ...    │          │        │          │          │        │      │
└────────┴──────────┴────────┴──────────┴──────────┴────────┴──────┘

重要: 每次调用前告知用户"正在采集实时行情数据,可能需要30-60秒"。

2. 单只股票分析

python scripts/analyze_stock.py --code 600036

输出示例:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  招商银行(600036) 六维分析报告
  最新价: 37.94
  综合评分: 0.72
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 行为面 (SLSV): 0.65 看多
  羊群效应因子显示主力净买入信号

📈 技术面: 0.55 观望
  RSI=19.9 (超卖,反弹信号↑)
  MACD=-0.42 (死叉区域)
  价格在20日均线下方-3.2%

💰 资金面: 0.68 看多
  近20日主力净流入+2.3亿

📰 舆情面: 中性
  Futu社区看涨3%,看跌3%,中性94%

⚠️ 风险提示:
  - 技术面严重超卖(RSI<30)
  - 近60日最大回撤12.3%

🎯 综合研判: 超卖反弹机会,短期偏多,留意MACD金叉信号

3. 数据源说明(透明)

数据维度数据源可用状态说明
日线行情Ashare(新浪+腾讯)✅ 实时60日历史
技术指标本地计算✅ 实时RSI/MACD/MA
资金流向akshare个股资金流✅ 实时主力净流入
行为金融SLSV因子✅ 基于资金流羊群效应
舆情情绪Futu社区✅ 有数据情绪偏中性
利好催化Futu新闻关键词✅ 有数据政策/行业

4. 数据源不可用时

当某数据源获取失败时,Agent必须明确告知用户,例如:

  • "资金流数据获取失败,本次评分仅基于技术面+行为面"
  • "Futu情绪数据暂无,跳过舆情维度"
  • "仅获取到XX只股票的行情数据,扫描范围受限"

严禁静默使用占位数据或Mock数据。

评分机制

三维评分(真实数据驱动):

维度权重说明
行为面(SLSV)40%机构vs散户资金流向分歧,年化21.19%,夏普1.23
技术面35%RSI超卖/超买 + MACD金叉/死叉 + MA偏离度
资金面25%主力净流入率,标准化至0~1

综合评分公式: 加权几何平均

score = (behavior^0.40 * technical^0.35 * fundflow^0.25) ^ 0.5

任一维度为0则总分大幅降低。

风险提示(Agent必须输出)

每次输出选股结果时,底部必须附带:

⚠️ 免责声明:本系统仅供参考,不构成投资建议。
股市有风险,投资需谨慎。历史表现不代表未来收益。

安装

pip install -r requirements.txt

依赖

  • pandas, numpy: 数据处理
  • httpx: Futu API 调用
  • akshare: 个股资金流数据

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

whisper-transcribe-summarize

Use this skill when the user wants to run Whisper locally, download Whisper models to the machine, transcribe local audio or video files offline, avoid exter...

Registry SourceRecently Updated
General

Amazing Idea Generator

Generate and explore diverse creative ideas with multi-language support, memory tracking, filters, user submissions, favorites, and ratings.

Registry SourceRecently Updated
General

Taku Build

Execute an approved implementation plan. Triggers after /taku-plan, or on "build this", "implement the plan", "start coding", "run the plan", "execute tasks"...

Registry SourceRecently Updated
General

Taku Reflect

User-invoked reflection. Three modes: Learn (script-backed recording, searching, pruning, exporting, and optional bootstrap for user-approved patterns, pitfa...

Registry SourceRecently Updated