Administrator
2025-07-01 a8813a4af6da8e3823f418f9c2c902957b4fc0a1
L后撤修改
1个文件已修改
2 ■■■ 已修改文件
cancel_strategy/s_l_h_cancel_strategy.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
cancel_strategy/s_l_h_cancel_strategy.py
@@ -1551,7 +1551,7 @@
            # 除开最大单的影响权重
            if not must_buy:
                temp_thresh_hold_rate = round((total_num - max_num * max_num_count) * 0.9 / total_num, 2)
                temp_thresh_hold_rate = round((total_num - max_num * max_num_count) * 0.8 / total_num, 2)
                if thresh_hold_rate > temp_thresh_hold_rate:
                    # 目标撤单比例大于大单撤单比例就取比例均值
                    thresh_hold_rate = round((thresh_hold_rate + temp_thresh_hold_rate) / 2, 2)