stockbee-setup-fluency-trainer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStockbee Setup Fluency Trainer
Stockbee交易模型熟练度训练工具
Build and maintain a model book for Stockbee-style Momentum Burst setups. This skill turns daily screener candidates into structured study records, updates them after the 3-day and 5-day windows mature, and summarizes which setup features are working or failing.
构建并维护Stockbee风格动量突破交易模型的手册。本工具可将每日筛选器候选标的转化为结构化的学习记录,在3日和5日周期成熟后更新记录,并总结哪些交易模型特征有效或失效。
When to Use
使用场景
- User wants to study Stockbee Momentum Burst setups systematically
- User asks to build a model book from output
stockbee-momentum-burst-screener - User wants to review failed candidates, missed trades, or A/B setup quality
- User wants 3-day / 5-day forward returns, MFE, MAE, and stop-hit outcomes
- User wants to improve setup recognition before increasing position size
- User asks which Stockbee tags should be promoted, downgraded, or filtered
- 用户想要系统性研究Stockbee动量突破交易模型
- 用户要求从输出结果构建交易模型手册
stockbee-momentum-burst-screener - 用户想要复盘失败候选标的、错过的交易或A/B类交易模型质量
- 用户需要3日/5日远期收益、MFE、MAE以及止损触发结果
- 用户想要在增加仓位前提升交易模型识别能力
- 用户询问哪些Stockbee标签应被优先使用、降级或过滤
Prerequisites
前置条件
- Python 3.10+
- A JSON report, or compatible candidate JSON
stockbee-momentum-burst-screener - Optional: FMP API key for outcome updates when offline OHLCV JSON is not supplied
- Recommended local state path:
state/stockbee/model_book.jsonl
- Python 3.10+
- 生成的JSON报告,或兼容的候选标的JSON文件
stockbee-momentum-burst-screener - 可选:当未提供离线OHLCV JSON文件时,用于更新结果的FMP API密钥
- 推荐本地状态路径:
state/stockbee/model_book.jsonl
Workflow
工作流程
Step 1: Ingest Momentum Burst Candidates
步骤1:导入动量突破候选标的
Run after the Stockbee Momentum Burst screener has produced a JSON report.
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py ingest \
--screener-json reports/stockbee_momentum_burst_YYYY-MM-DD_HHMMSS.json \
--model-book state/stockbee/model_book.jsonl \
--output-dir reports/Use when intentionally building a negative-example set. Otherwise rejected candidates are skipped.
--include-rejects在Stockbee动量突破筛选器生成JSON报告后运行。
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py ingest \
--screener-json reports/stockbee_momentum_burst_YYYY-MM-DD_HHMMSS.json \
--model-book state/stockbee/model_book.jsonl \
--output-dir reports/当有意构建负样本集时,使用参数。否则会跳过被拒绝的候选标的。
--include-rejectsStep 2: Update 3-Day and 5-Day Outcomes
步骤2:更新3日和5日结果
Use FMP:
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py update \
--model-book state/stockbee/model_book.jsonl \
--horizons 3,5 \
--output-dir reports/Use offline OHLCV JSON:
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py update \
--model-book state/stockbee/model_book.jsonl \
--prices-json data/daily_ohlcv.json \
--horizons 3,5 \
--output-dir reports/The update step records:
- Forward close return for each horizon
- MFE and MAE over each horizon
- Stop-hit status and first stop-hit date
- Outcome tags such as ,
STRONG_WINNER,WORKED,FAILED_STOP,FAILED_FADE, orCHOPPY_FAILURENEUTRAL
使用FMP:
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py update \
--model-book state/stockbee/model_book.jsonl \
--horizons 3,5 \
--output-dir reports/使用离线OHLCV JSON文件:
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py update \
--model-book state/stockbee/model_book.jsonl \
--prices-json data/daily_ohlcv.json \
--horizons 3,5 \
--output-dir reports/更新步骤会记录:
- 每个周期的远期收盘收益
- 每个周期内的MFE和MAE
- 止损触发状态及首次触发日期
- 结果标签,例如、
STRONG_WINNER、WORKED、FAILED_STOP、FAILED_FADE或CHOPPY_FAILURENEUTRAL
Step 3: Summarize Cohorts
步骤3:总结群组数据
bash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py summarize \
--model-book state/stockbee/model_book.jsonl \
--group-by rating,primary_trigger,setup_tags \
--min-sample 5 \
--output-dir reports/Review the generated Markdown and JSON reports. Treat as evidence prompts, not automatic rule changes.
rule_candidatesbash
python3 skills/stockbee-setup-fluency-trainer/scripts/build_model_book.py summarize \
--model-book state/stockbee/model_book.jsonl \
--group-by rating,primary_trigger,setup_tags \
--min-sample 5 \
--output-dir reports/查看生成的Markdown和JSON报告。将视为证据提示,而非自动规则变更。
rule_candidatesStep 4: Convert Evidence Into Practice
步骤4:将证据转化为实践
For cohorts with enough examples:
- Promote tags with high win rate, positive 5-day expectancy, and acceptable average MAE
- Downgrade or filter tags with weak 5-day expectancy, frequent stop hits, or repeated fade failures
- Inspect representative charts manually before changing trade rules
- Log accepted lessons in or the monthly review process
trader-memory-core
对于拥有足够样本的群组:
- 优先使用高胜率、5日预期收益为正且平均MAE可接受的标签
- 降级或过滤5日预期收益不佳、频繁触发止损或反复出现回调失败的标签
- 在修改交易规则前手动检查代表性图表
- 在或月度复盘流程中记录已采纳的经验
trader-memory-core
Model Book Fields
模型手册字段
Each JSONL record includes:
- ,
record_id,symbol,setup_dateprimary_trigger - ,
rating,setup_scoresetup_tags - ,
entry_reference,stop_referencerisk_pct_to_stop - ,
human_label,human_decisionhuman_notes - and
outcomes.3doutcomes.5d - ,
overall_outcome,maturedraw_candidate
每条JSONL记录包含:
- 、
record_id、symbol、setup_dateprimary_trigger - 、
rating、setup_scoresetup_tags - 、
entry_reference、stop_referencerisk_pct_to_stop - 、
human_label、human_decisionhuman_notes - 和
outcomes.3doutcomes.5d - 、
overall_outcome、maturedraw_candidate
Interpretation Rules
解读规则
- : 5-day close return >= 8% or MFE >= 12%, with no stop hit
STRONG_WINNER - : 5-day close return >= 4% or MFE >= 6%, with no stop hit
WORKED - : Stop was touched within the horizon
FAILED_STOP - : Forward return <= -2% without a recorded stop hit
FAILED_FADE - : Adverse excursion was large and forward progress was poor
CHOPPY_FAILURE - : No decisive follow-through or failure
NEUTRAL - : Not enough future bars yet
PENDING
- :5日收盘收益≥8%或MFE≥12%,且未触发止损
STRONG_WINNER - :5日收盘收益≥4%或MFE≥6%,且未触发止损
WORKED - :在周期内触发止损
FAILED_STOP - :远期收益≤-2%且未记录止损触发
FAILED_FADE - :反向波动幅度大且远期进展不佳
CHOPPY_FAILURE - :无明确的后续上涨或下跌
NEUTRAL - :未来K线数据不足
PENDING
Output
输出内容
- - Durable setup model book
state/stockbee/model_book.jsonl stockbee_setup_fluency_ingest_YYYY-MM-DD_HHMMSS.json/mdstockbee_setup_fluency_update_YYYY-MM-DD_HHMMSS.json/mdstockbee_setup_fluency_summary_YYYY-MM-DD_HHMMSS.json/md
- - 持久化的交易模型手册
state/stockbee/model_book.jsonl stockbee_setup_fluency_ingest_YYYY-MM-DD_HHMMSS.json/mdstockbee_setup_fluency_update_YYYY-MM-DD_HHMMSS.json/mdstockbee_setup_fluency_summary_YYYY-MM-DD_HHMMSS.json/md
Resources
参考资源
- - JSONL schema and lifecycle states
references/model_book_schema.md - - Outcome classification and tag definitions
references/outcome_tags.md - - Daily, 3-day, 5-day, and monthly review routine
references/review_workflow.md
- - JSONL schema和生命周期状态
references/model_book_schema.md - - 结果分类及标签定义
references/outcome_tags.md - - 每日、3日、5日及月度复盘流程
references/review_workflow.md