From c7b6f5be3e5850bbf66db5363e634c57ff9ca876 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 28 三月 2023 15:32:24 +0800 Subject: [PATCH] 评分机制调整 --- output/code_info_output.py | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/output/code_info_output.py b/output/code_info_output.py index 451522f..60876d6 100644 --- a/output/code_info_output.py +++ b/output/code_info_output.py @@ -81,13 +81,13 @@ # 鑾峰彇褰撳墠閲忎俊鎭� max_60, yest = code_volumn_manager.get_histry_volumn(code) today = code_volumn_manager.get_today_volumn(code) - score_source_list_new.append(f"瀹炴椂閲忋�恵round(int(today)/10000,2)}涓囨墜銆懨峰墠楂橀噺銆恵round(max_60[0]/10000,2)}涓囨墜-{max_60[1]}銆�=銆恵round(score_source_list[6]*100,2)}%銆�") + score_source_list_new.append(f"瀹炴椂閲忋�恵round(int(today)/1000000,2)}涓囨墜銆懨峰墠楂橀噺銆恵round(max_60[0]/1000000,2)}涓囨墜-{max_60[1]}銆�=銆恵round(score_source_list[6]*100,2)}%銆�") # 绔炰环寮哄害 score_list_new.append(score_list[2]) score_source_list_new.append(f"寮�鐩樺暒浠婃棩濮斿仠銆恵score_source_list[2] if score_source_list[2] else 0}涓囥��") # 璧勯噾鍔涘害 score_list_new.append(score_list[8]) - score_source_list_new.append(f"绱閲戦銆恵score_source_list[8][0] / 10000}涓囥��&鍥哄畾m鍊笺�恵score_source_list[8][1] / 10000}涓囥��") + score_source_list_new.append(f"绱閲戦銆恵score_source_list[8][0] // 10000}涓囥��&鍥哄畾m鍊笺�恵score_source_list[8][1] // 10000}涓囥��") # K绾垮舰鎬� k_score = 0 k_source = [] @@ -114,10 +114,9 @@ elif k == 5: if score_source_list[3][k][0]: k_source.append("銆怴瀛楀瀷銆�") - - if not score_source_list[3][1][0] and not score_source_list[3][2][0] and not score_source_list[3][4][0] and not \ - score_source_list[3][5][0]: - k_source.append("銆愪笉婊¤冻浠讳綍褰㈡�併��") + elif k == 6: + if not score_source_list[3][k][0]: + k_source.append("銆愪笉婊¤冻浠讳綍褰㈡�併��") score_list_new.append(k_score) score_source_list_new.append("/".join(k_source)) @@ -173,11 +172,11 @@ __L2PlaceOrderParamsManager = l2_trade_factor.L2PlaceOrderParamsManager(code, True, volume_rate, code_volumn_manager.get_volume_rate_index( volume_rate), - (score, score_list)) + ((score, score_list),score_source_list)) __base_L2PlaceOrderParamsManager = l2_trade_factor.L2PlaceOrderParamsManager(code, False, volume_rate, code_volumn_manager.get_volume_rate_index( volume_rate), - (score, score_list)) + ((score, score_list),score_source_list)) buy_params_info = [] if -1 < __L2PlaceOrderParamsManager.score_index < 3: buy_params_info.append("<font color='red'>銆愪富鍔ㄤ拱鍏ャ��</font>") -- Gitblit v1.8.0