From 2dd2e7a717491cb1d7cd06a1065be996f9bbe232 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 12 一月 2024 17:10:00 +0800
Subject: [PATCH] 添加新F撤

---
 code_attribute/first_target_code_data_processor.py |   23 ++++++++++++++++++++---
 1 files changed, 20 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..56a9107 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:
@@ -127,6 +128,18 @@
                 k_format = code_nature_analyse.get_k_format(limit_up_price, volumes_data)
                 code_nature_analyse.CodeNatureRecordManager().save_k_format(code, k_format)
 
+                # 鏄惁鍏锋湁杈ㄨ瘑搴�
+                is_special = True if k_format and k_format[8][0] else False
+                if not is_special:
+                    if global_util.zyltgb_map.get(code) and global_util.zyltgb_map.get(code) > 31 * 100000000:
+                        l2_trade_util.forbidden_trade(code,
+                                                      f"鏃犺鲸璇嗗害锛岃嚜鐢辨祦閫氬競鍊�({global_util.zyltgb_map.get(code) // 100000000})>31浜�")
+                        continue
+                    elif limit_up_price and float(limit_up_price) >= 50:
+                        l2_trade_util.forbidden_trade(code,
+                                                      f"鏃犺鲸璇嗗害锛屾定鍋滀环({limit_up_price})>50")
+                        continue
+
                 if code_nature_analyse.is_up_too_high_in_10d_with_limit_up(volumes_data):
                     # 鍒ゆ柇鏄惁澶珮
                     # l2_trade_util.forbidden_trade(code, "鑲′环闀垮緱澶珮锛�5澶╁唴鏈�3涓定鍋滐級")
@@ -141,7 +154,12 @@
                 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)
+                    continue
+
+                if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(volumes_data):
+                    # 鍒ゆ柇鏄惁澶珮
+                    l2_trade_util.forbidden_trade(code, "鍥炶俯涓嶅")
+                    continue
 
                 if code_nature_analyse.is_have_latest_max_volume(volumes_data, 2):
                     # 鏈�杩�2澶╂槸鍚︽槸鏈�楂橀噺
@@ -232,4 +250,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