Fize/mmtickerlab / first-board-overnight
first-board-overnight
Verified基于可审计 A 股数据执行首板隔夜模拟策略的决策技能。用于评估当日首板赚钱效应、筛选首板候选、生成带证据的 BUY、WATCH 或 NO_TRADE 决策并制定 T+1 退出计划。当用户需要评估首板赚钱效应、做首板留仓决策、制定隔夜打板策略或复盘首板案例时触发(包含触发词:首板隔夜, 首板候选, 今晚要不要留首板, 隔夜打板, 涨停首板, first board overnight)。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| agents/openai.yaml | config | 261 B |
| references/data-acquisition.md | markdown | 3.5 KB |
| references/entry-policy.md | markdown | 2.2 KB |
| references/evidence-contract.md | markdown | 2.6 KB |
| references/exit-policy.md | markdown | 1.3 KB |
| references/review-schema.md | markdown | 1.7 KB |
| references/risk-policy.md | markdown | 1.6 KB |
| references/strategy.md | markdown | 1.9 KB |
| scripts/render_chart.py | script | 10.1 KB |
| templates/strategy_report.md | markdown | 1.9 KB |
references/data-acquisition.md
View on GitHub# Data Acquisition
## 原则
本策略的数据事实采集统一委托至 **`market`** 技能(参见 [`market/SKILL.md`](../../market/SKILL.md))。把“本地缓存不存在”视为调用 `market` 的起点,而不是阻断结论。先使用 `market` 的 `raw` 子命令查询本地原始库;若缺失,`market` 会调用能够可靠获取的数据源并持久化。只有命令失败、返回非 `ready`、字段不完整或目标事实不可重建时,才降低证据等级。
任何数据命令失败后读取错误并停止使用该数据,不把接口失败解释为零记录。
## 1. 先确认日期(调用 `market calendar`)
调用 `market` 技能的 `calendar` 命令(`calendar --date YYYYMMDD --count 10`)验证交易日状态。目标日期不是交易日时,不执行首板入场研究。
## 2. 获取市场与首板环境(调用 `market snapshot/limits/flows`)
遵循时效窗口调用 `market` 技能提取环境截面(具体参数参见 [`market/SKILL.md`](../../market/SKILL.md)):
- 当日午间窗口:采集 `snapshot/limits/flows --session noon`。
- 当日 15:05 后:采集 `snapshot/limits/flows --session close`。
- 最近 30 个自然日:按日获取 `limits`,构建首板数量、炸板率、连板梯队和行业分布。
- 需要首板次日反馈时,连接相邻交易日:以前一日 `streak: 1` 的股票为样本,获取次日日线,计算开盘、最高、收盘相对前收的变化。记录样本覆盖率。
不要因为本地没有历史快照而跳过采集。`limits` 支持最近 30 个自然日;超过提供方可靠窗口后,才标记该部分不可恢复。
## 3. 获取候选量价状态(调用 `market kline/technical/raw`)
调用 `market` 技能提取候选标的的确定性量价与技术指标:
- **中长期趋势与日内推进**:调用 `kline` 获取日线(`--period daily --count 120`)与 30 分钟 K 线(`--period 30 --count 80`);
- **趋势与动量技术指标**:调用 `technical` 获取均线、MACD、RSI 等确定性指标(`--count 20`);
- **历史决策时点回溯**:需重建特定时点盘口时,调用 `raw`(指定 `--at YYYYMMDDT143000`)与 `technical`(指定 `--at` 及 `--indicator`)。
根据需要补充 60/120 分钟 K 线、筹码、个股资金和新闻。使用日线判断中期位置、前高与波动;使用分钟线判断当日量价推进;使用技术指标验证而不是替代交易逻辑。
## 绘制图表
先用命令的 `--output` 将日线和技术指标保存为 JSON,再运行:
```bash
python3 first-board-overnight/scripts/render_chart.py \
--kline PATH_TO_KLINE_JSON \
--output PATH_TO_SVG \
--title "CODE YYYYMMDD"
```
图表展示 K 线、SMA5/10/20、成交量、MACD 和 RSI6。若已有 `technical` JSON,可增加 `--technical PATH_TO_TECHNICAL_JSON`;否则脚本从 K 线确定性计算这些核心指标。将图形判断写成“事实 + 解释 + 反证”,不要只输出形态名称。
## 证据降级
- `READY`:当前决策时点数据和可执行行情完整,可形成模拟入场决定。
- `RESEARCH_ONLY`:历史日线、分钟线、技术指标或收盘首板汇总足够评价趋势与事后结构,但无法证明决策时点的盘口、排队或可成交性。
- `BLOCKED`:主动获取后,连请求所需的研究结论都没有足够数据支持。
历史研究不得升级为历史模拟成交。若没有当时保存的合格盘口快照,只评价“当时是否值得观察”,不声称“能够成交”。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |