From fd2767c1e2bec489fb93bf69bcbf70e289d1382e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 05 一月 2024 17:09:32 +0800
Subject: [PATCH] bug修复/回踩不够拉黑/闪电下单涨停挂单笔数必须≥5笔

---
 code_attribute/first_target_code_data_processor.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py
index f6665dc..c099f41 100644
--- a/code_attribute/first_target_code_data_processor.py
+++ b/code_attribute/first_target_code_data_processor.py
@@ -103,7 +103,8 @@
     # 鑾峰彇60澶╂渶澶ц褰�
     for code in codes:
         need_get_volumn = False
-        if code not in global_util.max60_volumn or global_util.max60_volumn.get(code) is None or code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) is None:
+        if code not in global_util.max60_volumn or global_util.max60_volumn.get(
+                code) is None or code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) is None:
             need_get_volumn = True
         # if not need_get_volumn and code_nature_analyse.CodeNatureRecordManager.get_nature_cache(
         #         code) is None:
@@ -141,7 +142,10 @@
                 if code_nature_analyse.is_price_too_high_in_days(volumes_data, limit_up_price):
                     # 鍒ゆ柇鏄惁澶珮
                     l2_trade_util.forbidden_trade(code, "6澶╁唴鑲′环闀垮緱澶珮")
-                    # HighIncreaseCodeManager().add_code(code)
+
+                if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(volumes_data):
+                    # 鍒ゆ柇鏄惁澶珮
+                    l2_trade_util.forbidden_trade(code, "鍥炶俯涓嶅")
 
                 if code_nature_analyse.is_have_latest_max_volume(volumes_data, 2):
                     # 鏈�杩�2澶╂槸鍚︽槸鏈�楂橀噺
@@ -232,4 +236,3 @@
     gpcode_first_screen_manager.process_ticks(prices)
     logger_l2_codes_subscript.info(f"({request_id})l2浠g爜鐩稿叧鏁版嵁鍔犺浇瀹屾垚")
     return tick_datas
-

--
Gitblit v1.8.0