From 751183dcd74207a50834cacc575f0dfccb41658c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 06 六月 2023 18:13:05 +0800 Subject: [PATCH] 交易优化,看盘接口完善 --- trade/first_code_score_manager.py | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/trade/first_code_score_manager.py b/trade/first_code_score_manager.py index df362a6..8bbb8cd 100644 --- a/trade/first_code_score_manager.py +++ b/trade/first_code_score_manager.py @@ -152,7 +152,7 @@ if hot_block["limit_up_index"] <= 0: hot_block_score.append(0) else: - hot_block_score.append(max(90 - hot_block["limit_up_index"] * 10, 0)) + hot_block_score.append(max(120 - hot_block["limit_up_index"] * 10, 0)) # 鏉垮潡 - 楂樹綅鏉� high_score = 0 for high_info in hot_block["high_block_infos"]: @@ -186,22 +186,22 @@ if limit_up_time: limit_up_time_m = tool.trade_time_sub(limit_up_time, "09:00:00") // 60 - if limit_up_time_m < 240: + if limit_up_time_m < 240 or True: # 14:30涔嬪墠閫傜敤 score_list.append(min(int(0 - round(limit_up_time_m / 15) + 12), 10)) - elif limit_up_time_m <= 270: - # 15:00涔嬪墠鍔� - score_list.append(100) - else: - score_list.append(0) + # elif limit_up_time_m <= 270: + # # 15:00涔嬪墠鍔� + # score_list.append(100) + # else: + # score_list.append(0) # 澶у崟鎴愪氦 - if deal_big_money_rate < 1: - score_list.append(0) - else: - d_score = int(round(10 * deal_big_money_rate, 0)) - d_score = min(d_score, 60) - score_list.append(d_score) + # if deal_big_money_rate < 1: + # score_list.append(0) + # else: + d_score = int(round(5 * deal_big_money_rate + 10, 0)) + d_score = min(d_score, 40) + score_list.append(d_score) score = 0 for s in score_list: -- Gitblit v1.8.0