mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 17:54:15 +08:00
成交口径: 单个 matching 拆成 entry_fill/exit_fill, 各自可选 close_t/open_t+1, 默认建仓次日开盘、清仓当日收盘 (最贴近真实交易)。老 matching 参数经 __post_init__ 自动映射为 entry=exit=matching, 完全向后兼容。 退出优先级修复: max_hold 不再抢占卖点信号 (signal 提到 max_hold 之前); 统一为 风控(止损/移动止损/止盈) → signal → max_hold → end, 删除 close/open 模式下风控调用顺序的差异, open_t+1 下到期仓位也能正确触发止损。 新增 3 个测试: signal 优先于 max_hold / open 模式到期触发止损 / 默认口径 买次日开盘卖收盘。现有 13 个测试经兼容映射后行为不变, 全部通过。