Administrator
2024-04-03 bcf69d0d6589c0ee39c77326e8fb2d4bcbb144ed
bug修改
1个文件已修改
7 ■■■■ 已修改文件
l2/l2_data_manager_new.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -1117,6 +1117,8 @@
                #     if code in cls.volume_rate_info and cls.volume_rate_info[code][0] < volume_rate_thresholds[
                #         0] and not is_special:
                #         return False, True, f"强势10分钟,无辨识度,独苗({can_buy_result[4]}),当日量比({cls.volume_rate_info[code][0]})小于{volume_rate_thresholds[0]}"
            elif not can_buy_result[0]:
                return False, True, f"非独苗不满足身位:{can_buy_result[2]}"
            else:
                msg_list.append("非独苗")
                if not is_better_zylt:
@@ -1682,7 +1684,7 @@
                    else:
                        # 本条数据作为起点
                        last_index = i
                        count = datas[i]["re"]
                        count = total_datas[i]["re"]
                        start = i
                elif not L2DataUtil.is_sell(_val) and not L2DataUtil.is_sell_cancel(_val):
@@ -2131,7 +2133,8 @@
            # 计算信号位置之后的主动卖,加入到阈值之中
            sell_orders = HuaXinSellOrderStatisticManager.get_latest_transaction_datas(code, min_sell_order_no=int(
                total_datas[buy_single_index]['val']['orderNo']), min_deal_time = tool.trade_time_sub(total_datas[buy_single_index]['val']['time'],1))
                total_datas[buy_single_index]['val']['orderNo']), min_deal_time=tool.trade_time_add_second(
                total_datas[buy_single_index]['val']['time'], -1))
            sell_order_num = sum([x[1] for x in sell_orders]) // 100
            # 纯买额足够,且笔数大于2笔
            if buy_nums < threshold_num + sell_order_num: