Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Screens A-share stocks after market close using technical patterns and capital-flow evidence.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文
每日收盘后自动扫描全市场,用 8 个技术形态检测器 + 主力资金流入做双因子交叉验证,Top N 个股 LLM 分析,输出 Markdown 日报 + JSON 结构化数据。
post-market-screener 是一个 Agent Skill:基于 Pandadata + 同花顺数据,在每日收盘后自动扫描 A 股全市场,通过"技术形态 + 资金流向"双因子交叉验证找到真正有主力资金参与的形态突破个股。
与市场上其他技能的差异化:
| 现有技能 | 为什么不同 |
|---|---|
| 市场每日复盘 | 它是大盘综述,本 Skill 做的是个股级别的形态+资金双重筛选 |
| A 股选股器 | 它是自然语言交互查询,本 Skill 是每日定时自动扫描 + 排名输出 |
| Skill Xingtai Catcher | 它是基于 K 线截图/手绘图做形态匹配,本 Skill 是基于量化指标的规则检测 |
| 龙虎榜数据席位追踪 | 它只追踪龙虎榜席位,本 Skill 是全市场主力资金净流入过滤 |
核心差异化:技术形态 ∩ 资金流向 = 双因子交叉验证。
flowchart TD
A["⏰ 手动触发 或 cron 15:30"] --> B{"📅 交易日检查"}
B -->|休市| Z["输出『今日休市』结束"]
B -->|交易日| C["📊 数据采集(4 组)"]
C --> C1["K线数据(120天)<br/>Pandadata get_stock_daily"]
C --> C2["资金流向<br/>同花顺 stock_fund_flow_individual"]
C --> C3["股票基础信息<br/>Pandadata get_stock_detail"]
C1 --> D["🔍 8 个形态检测器"]
C2 --> E["💰 资金流向过滤<br/>主力净流入率>5% | 成交额>5000万"]
C3 --> D
D --> F{"✅ 双因子交叉验证<br/>形态 ∩ 资金 = 入选"}
E --> F
F --> G["📊 评分排名<br/>pattern_score + flow_score + quality_bonus"]
G --> H["🤖 LLM 逐股分析<br/>DeepSeek API"]
H --> I["📝 按模板渲染"]
I --> J{"✅ validate_screener.py"}
J -->|FAIL| I
J -->|OK| K["💾 output/YYYY-MM-DD/<br/>daily_screener_YYYYMMDD.{md,json}"]
style A fill:#e3f2fd,stroke:#1976d2
style F fill:#fff3e0,stroke:#f57c00
style J fill:#fff3e0,stroke:#f57c00
style K fill:#e8f5e9,stroke:#388e3c
style Z fill:#f5f5f5,stroke:#9e9e9e
| # | 检测器 | 检测逻辑 | 权重 |
|---|---|---|---|
| 1 | 均线金叉 | MA5 ↑ MA20 | 2 |
| 2 | MACD 金叉 | DIF ↑ DEA | 1 |
| 3 | 多头排列 | MA5 > MA10 > MA20 > MA60 | 1 |
| 4 | 放量突破 | 收盘价创20日新高 + 量 > 1.5×5日均量 | 3 |
| 5 | 布林带突破 | 带宽扩张 + 价格突破上轨 | 3 |
| 6 | 锤子线 | 下影线 ≥ 2倍实体 + 处于下跌趋势 | 1 |
| 7 | 启明星 | 阴线→小实体→阳线(三日反转) | 3 |
| 8 | RSI 超卖反弹 | RSI(14) < 30 + 当日收阳 | 1 |
详细公式和计算逻辑见
references/pattern-formulas.md
检测器权重通过历史数据回测定期校准,非固定经验值:
# 运行回测(需 ≥60 天缓存数据)
python scripts/analyze_weights.py --data cache/ --json
# 查看滚动窗口稳定性
python scripts/analyze_weights.py --data cache/ --rolling
回测引擎对每个检测器计算:
优化后的权重写入 config.json 的 detector_weights,流水线自动加载。建议每个季度重新校准一次。
最近一次回测(2026-06-30):1000 股样本、233,894 条记录。启明星 IC(5d)=+0.003 最优,MACD金叉 IC=+0.016 唯一显著正向。放量突破(4→3)和RSI超卖(2→1)下调权重。
| 条件 | 阈值 | 说明 |
|---|---|---|
| 主力净流入率 | > 5% | 主力净流入 / 成交额 |
| 成交额 | > 5000万 | 排除流动性枯竭个股 |
| 超大单净流入 | > 0 | 机构资金方向确认 |
git clone <repo-url> skill-post-market-screener
cd skill-post-market-screener
pip install -r requirements.txt
cp .env.example .env # 编辑填入你的凭证
.env 中需要填写:
| 变量 | 说明 | 获取方式 |
|---|---|---|
DEFAULT_USERNAME | Pandadata 用户名 | 86 + 手机号,在 pandadata.pandaaiquant.com 注册 |
DEFAULT_PASSWORD | Pandadata 密码 | 同上 |
ANTHROPIC_AUTH_TOKEN | LLM API 密钥 | DeepSeek 或 Claude API |
ANTHROPIC_BASE_URL | LLM API 地址 | DeepSeek: https://api.deepseek.com/anthropic |
ANTHROPIC_MODEL | 模型名称 | deepseek-v4-pro 或 claude-sonnet-4-6 |
资金流向数据通过同花顺 AKShare 接口免费获取,无需额外凭证。
python run.py # 扫描最新交易日
python run.py --date 20260629 # 扫描指定日期
python run.py --no-flow # 纯形态扫描(跳过资金过滤)
python run.py --top-n 10 # 报告只显示 Top 10
也可以 pip 安装后使用命令行入口:
pip install .
screener # 等同于 python run.py
screener --date 20260629 --top-n 10
启动 MCP Server,让 Claude Code / Cursor / Codex 等 AI Agent 直接调用:
python mcp_server.py
# 或 pip install . 后:
screener-mcp
在 Agent 的 MCP 配置中添加(以 Claude Code 为例,编辑 ~/.claude/mcp.json):
{
"mcpServers": {
"post-market-screener": {
"command": "python",
"args": ["mcp_server.py"],
"cwd": "/path/to/skill-post-market-screener",
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-xxx",
"ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
"ANTHROPIC_MODEL": "deepseek-v4-pro",
"DEFAULT_USERNAME": "86xxxxxxxxxxx",
"DEFAULT_PASSWORD": "xxx"
}
}
}
}
项目已自带 .claude/mcp.json 模板,可直接复制修改。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
post-market-screener@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin post-market-screenerPlugins from other owners that cover similar ground