🔴 幸存者偏差:数据导入仅含当前上市股票 #5

Closed
opened 2026-08-01 08:25:13 +08:00 by shellway · 0 comments
Owner

关联主报告:#1 — quantitative_data/importer.py

待办项

  1. get_stock_codes_from_db() 约 L993-1010 — 仅取 list_status='L'

    • 退市/暂停股票的历史日线、财务数据不导入,回测只在"仍存活"股票上测试,显著高估收益
    • 默认纳入 L/D/P 全部状态,full_import() 增加 include_delisted: bool = True 参数
  2. stock_basic — 只保存最新行业/地区/list_status

    • 未保留历史变更,行业中性/分层回测可能使用"未来状态"
    • 需要历史快照或标注数据时点
关联主报告:#1 — `quantitative_data/importer.py` ## 待办项 1. **`get_stock_codes_from_db()` 约 L993-1010 — 仅取 `list_status='L'`** - 退市/暂停股票的历史日线、财务数据不导入,回测只在"仍存活"股票上测试,显著高估收益 - 默认纳入 `L/D/P` 全部状态,`full_import()` 增加 `include_delisted: bool = True` 参数 2. **`stock_basic` — 只保存最新行业/地区/`list_status`** - 未保留历史变更,行业中性/分层回测可能使用"未来状态" - 需要历史快照或标注数据时点
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shellway/quanxiel#5