From f1b3c7566924a00e86e63c55167bbda91f796716 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期一, 16 六月 2025 14:40:26 +0800 Subject: [PATCH] 1.修复自由市值超100亿的大单判断逻辑BUG 2.无概念有强度逻辑简化 --- strategy/buying_strategy.py | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/strategy/buying_strategy.py b/strategy/buying_strategy.py index bf0c9ea..991e972 100644 --- a/strategy/buying_strategy.py +++ b/strategy/buying_strategy.py @@ -377,8 +377,7 @@ logger_info( f"銆愪笉鍒┿�戣嚜鐢卞競鍊煎皬浜�6浜匡紒涓嶄拱锛侊紒 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") return - if ( - free_market_value == 0 or free_market_value == 0.0) and free_market_value > 100 and L2_found_big_order is False: + if (free_market_value != 0 or free_market_value != 0.0) and free_market_value > 100 and L2_found_big_order is False: logger_info( f"銆愪笉鍒┿�戣嚜鐢卞競鍊煎ぇ浜�100浜匡紝涓旀湭鍙戠幇澶у崟锛佷笉涔帮紒锛� 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") return @@ -515,8 +514,7 @@ logger_info( f"銆愪笉鍒┿�戣嚜鐢卞競鍊煎皬浜�6浜匡紒涓嶄拱锛侊紒 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") return - if ( - free_market_value == 0 or free_market_value == 0.0) and free_market_value > 100 and L2_found_big_order is False: + if (free_market_value != 0 or free_market_value != 0.0) and free_market_value > 100 and L2_found_big_order is False: logger_info( f"銆愪笉鍒┿�戣嚜鐢卞競鍊煎ぇ浜�100浜匡紝涓旀湭鍙戠幇澶у崟锛佷笉涔帮紒锛� 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") return @@ -553,8 +551,7 @@ ''' 鏃犳蹇� 鏈夊己搴﹁鐣� ''' - if len(limit_up_plate_included) == 0 and limit_up_plate_included.issubset( - check_plate_list) is False: + if len(limit_up_plate_included) == 0: # logger_info(f"銆愭棤姒傚康銆�") if strength_list_have_it is True: logger_info( @@ -627,7 +624,7 @@ # logger_info( # f"銆愪笉鍒┿�戞湁寮哄害鐨勬澘鍧椾腑娌℃湁鍙戠幇棰嗘定娆℃暟锛佷笉涔帮紒锛� 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") # return - if (free_market_value == 0 or free_market_value == 0.0) and free_market_value > 100 and L2_found_big_order is False: + if (free_market_value != 0 or free_market_value != 0.0) and free_market_value > 100 and L2_found_big_order is False: logger_info( f"銆愪笉鍒┿�戣嚜鐢卞競鍊煎ぇ浜�100浜匡紝涓旀湭鍙戠幇澶у崟锛佷笉涔帮紒锛� 鍏徃鍚嶇О锛歿k_line_data[0]['sec_name']}锛屾渶鏂颁环: {current_price}") return -- Gitblit v1.8.0