Administrator
9 天以前 f58896c601bfc08a3e73a4f677e860fa4977eadf
L撤除去最大单比例bug修改
3个文件已修改
22 ■■■■■ 已修改文件
cancel_strategy/s_l_h_cancel_strategy.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
servers/huaxin_trade_server.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/buy_radical/radical_buy_data_manager.py 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cancel_strategy/s_l_h_cancel_strategy.py
@@ -1589,9 +1589,12 @@
            if not must_buy:
                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)
                    if cancel_rate_info and cancel_rate_info[1] > 0:
                        pass
                    else:
                        # 没有人为设置
                        # 目标撤单比例大于大单撤单比例就取比例均值
                        thresh_hold_rate = round((thresh_hold_rate + temp_thresh_hold_rate) / 2, 2)
            l2_log.l_cancel_debug(code,
                                  f"L后计算范围:{start_index}-{end_index},已撤单比例:{rate}/{thresh_hold_rate}, 下单位之后的索引:{after_place_order_index_dict}, 最大单-({max_num},{max_num_count})")
            if rate >= thresh_hold_rate:
servers/huaxin_trade_server.py
@@ -868,7 +868,7 @@
                                radical_buy_strategy.clear_data(code, force=True)
                                # RDCancelBigNumComputer().clear_data(code)
                                # 大单成交足够
                                RadicalBuyDataManager().big_order_deal_enough(code)
                                # RadicalBuyDataManager().big_order_deal_enough(code)
                            return True
                        else:
                            if transaction_datas:
trade/buy_radical/radical_buy_data_manager.py
@@ -725,10 +725,13 @@
        @param code:
        @return:
        """
        # if not gpcode_manager.MustBuyCodesManager().is_in_cache(code):
        #     gpcode_manager.MustBuyCodesManager().add_code(code)
        #     trade_record_log_util.add_must_buy(code, "大单足够")
        pass
        if not gpcode_manager.MustBuyCodesManager().is_in_cache(code):
            human_setting_money = TotalDealBigOrderThresholdMoneyManager().get_money_cache(code)
            if not human_setting_money:
                # 没有人为设置累计大单阈值就不能加白
                return
            gpcode_manager.MustBuyCodesManager().add_code(code)
            trade_record_log_util.add_must_buy(code, "大单足够")
class RadicalBuyBlockManager: