Repository navigation
fix(backtest): 板块筛选包含创业板 302 与科创板 689 号段 - #488
Merged
Merged
Conversation
shy3130
force-pushed
the
fix/matrix-board-filter-302-689
branch
from
October 18, 2026 06:39
4cc298b to
18dae26
Compare
Owner
|
感谢提交,已合并进 main 🎉 回测板块筛选的 302/689 缺口独立于 #485,测试直击业务断言,309 个 backtest 测试通过。 一处处理说明:diff 里夹带的 |
flyme8899
added a commit
to flyme8899/tick-stock-panel
that referenced
this pull request
Oct 18, 2026
) (#158) 同步上游 shy3130#485/shy3130#486/shy3130#488:创业板纳入 302,科创板纳入 689,涨跌停、板块筛选与前端标签共用同一号段口径。 Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: flyme8899 <[email protected]>
yanbaobao010913
pushed a commit
to yanbaobao010913/tick-stock-panel
that referenced
this pull request
Oct 20, 2026
(cherry picked from commit 7ee42af)
yanbaobao010913
pushed a commit
to yanbaobao010913/tick-stock-panel
that referenced
this pull request
Oct 20, 2026
shy3130#485 修了创业板 302 但科创板分支仍只有 688; 689 (CDR 号段, 如 689009.SH) 在 price_limits/matrix/overview/paper 均已覆盖, 引擎 选股漏配 — 选「科创板」时 689 标的被静默排除。与 shy3130#488 口径对齐, 附板块过滤号段回归测试。 (cherry picked from commit f5ca4e1)
Dancetofigureoutyourshadow
pushed a commit
to Dancetofigureoutyourshadow/tick-stock-panel
that referenced
this pull request
Oct 20, 2026
(cherry picked from commit 7ee42af)
Dancetofigureoutyourshadow
pushed a commit
to Dancetofigureoutyourshadow/tick-stock-panel
that referenced
this pull request
Oct 20, 2026
shy3130#485 修了创业板 302 但科创板分支仍只有 688; 689 (CDR 号段, 如 689009.SH) 在 price_limits/matrix/overview/paper 均已覆盖, 引擎 选股漏配 — 选「科创板」时 689 标的被静默排除。与 shy3130#488 口径对齐, 附板块过滤号段回归测试。 (cherry picked from commit f5ca4e1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
回测矩阵按板块筛选股票池时 (
app/backtest/matrix.py的_symbol_in_boards):300/301, 创业板302号段 (如302132.SZ) 不在其中;688, 科创板689号段 (如689009.SH) 不在其中。这两类代码也不匹配「深主板」(
00) 或「沪主板」(60), 所以无论选哪个板块都会被静默排除出股票池。修改
创业板前缀加上
302, 科创板改为688/689, 与price_limits.py、market_overview_builder.py的板块口径一致。测试
新增
tests/test_matrix_board_filter.py:AI assistance: this change was prepared with an AI coding assistant and reviewed and tested by me.