From 241d9beb6e0899d54f94c2ca32fe4e64daf4df9e Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期三, 20 八月 2025 14:42:55 +0800 Subject: [PATCH] 检查因强度中的过滤因素而被错过的涨停 --- strategy/plate_strength_analysis.py | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/strategy/plate_strength_analysis.py b/strategy/plate_strength_analysis.py index 24d48b4..32d8467 100644 --- a/strategy/plate_strength_analysis.py +++ b/strategy/plate_strength_analysis.py @@ -72,7 +72,18 @@ # 鏁翠綋灏嗘坊鍔犲畬鍠勭殑涓偂寮哄害鍒楄〃娣诲姞鍒拌偂绁ㄥ垪琛ㄤ腑 stock_power_list.append(its_stock_power) else: - logger_common.info(f"銆恵s[1]}銆戯紝涓婂搴︽満鏋勬寔浠搟int(s[42])} 灏忎簬0 琚繃婊ゆ帀") + # 鍔犲叆绛栫暐鏃堕棿娈甸檺鍒� + if data_cache.OPENING_TIME < now_time < data_cache.NOON_MARKET_TIME: + logger_common.info(f"銆恵s[1]}銆戯紝涓婂搴︽満鏋勬寔浠搟int(s[42])} 灏忎簬0 琚繃婊ゆ帀") + filtered_stock_info = { + "code": s[0], + "sec_name": s[1], + "increase": s[6], + "institutional_holdings": int(s[42]) + } + data_cache.filtered_stock_info_set.update() + + # print(f"stock_power_list===={stock_power_list}") # 杩囨护鎺夋病鏈夌灛鏃堕珮寮哄害涓偂鐨勭┖姒傚康 if len(stock_power_list) != 0: @@ -857,6 +868,30 @@ # calculate_plate_trend('鏈哄櫒浜烘蹇�') return result +# 妫�鏌ュ洜寮哄害涓殑杩囨护鍥犵礌鑰岃閿欒繃鐨勬定鍋滃嚱鏁般�愬缓绔嬪湪绛栫暐涓嶉噸鍚殑鍩虹涓娿�� +def check_intensity_missing_limit_up_stock(): + # 瀹炰緥鍖栨瘡鏃ユ定鍋滀俊鎭暣鐞嗘柟娉� + today_limit_up_info = kpl_api.get_limit_up_info() + # print(today_limit_up_info) + # logger.info(f"璇绘湰鍦扮殑鏃ユ洿鐨勫巻鍙叉定鍋滄暟鎹�=={data_cache.daily_limit_up_info}") + today_limit_up_code_list = [] + # 鏁寸悊鍑哄綋鏃ョ殑娑ㄥ仠鍒楄〃 + if today_limit_up_info: + for i in today_limit_up_info: + limit_up_code = i[0] + today_limit_up_code_list.append(limit_up_code) + print(f"today_limit_up_code_list=={today_limit_up_code_list}") + logger_common.info(f"鏄ㄦ棩娑ㄥ仠鑲$エ鏁伴噺=={len(today_limit_up_code_list)}") + logger_common.info(f"鏄ㄦ棩娑ㄥ仠浠g爜鍒楄〃=={today_limit_up_code_list}") + for code in today_limit_up_code_list: + for filtered_stock_info in data_cache.filtered_stock_info_set: + if filtered_stock_info["code"] == code: + print(f"閿欒繃鐨勬定鍋滆偂绁ㄤ俊鎭�: {filtered_stock_info}") + logger_common.info(f"閿欒繃鐨勬定鍋滆偂绁ㄤ俊鎭�: {filtered_stock_info}") + if __name__ == '__main__': - analyze_plate_trend('鍖昏嵂') + # analyze_plate_trend('浜哄伐鏅鸿兘') + check_intensity_missing_limit_up_stock() + + -- Gitblit v1.8.0