From 5efc4e481cbee9b2c02410ff9e5f92b5524c1e28 Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期一, 26 五月 2025 18:16:35 +0800
Subject: [PATCH] 1. 2. 3.GUI新增及修改 行情板块强度模块,服务端解析日志数据及应答 4.

---
 strategy/buying_strategy.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/strategy/buying_strategy.py b/strategy/buying_strategy.py
index f306aa4..d9b66dd 100644
--- a/strategy/buying_strategy.py
+++ b/strategy/buying_strategy.py
@@ -315,13 +315,13 @@
                                         logger_info(f"閲嶅鐩镐氦姒傚康==={intersection_plate}")
                                     # 璋冪敤鍏呭垎浜ゆ槗閲忓嚱鏁�
                                     sufficient_volume = basic_methods.sufficient_volume(current_volume, k_line_data[0]['volume'], today_growth)
-                                    logger_info(f"銆恵k_line_data[0]['sec_name']}銆戝綋鏃ュ綋鏃堕噺鏄惁鐩稿娑ㄥ箙鍏呰冻锛�===銆恵sufficient_volume}銆� 锛佸綋鏃ュ綋鏃舵�绘垚浜ら噺锛歿round(current_volume / 10000, 2)}涓囷紝鏄ㄦ棩鐨勬�绘垚浜ら噺{round(k_line_data[0]['volume'] / 10000, 2)}涓囷紝褰撴棩褰撴椂娑ㄥ箙锛歿today_growth}%銆�")
+                                    logger_info(f"銆恵k_line_data[0]['sec_name']}銆戝綋鏃ュ綋鏃堕噺鏄惁鐩稿娑ㄥ箙鍏呰冻锛�===銆恵sufficient_volume}銆� 锛佸綋鏃朵笌鏄ㄦ棩鎴愪氦鐜囧崰姣�:{round(current_volume/k_line_data[0]['volume'], 2)}%锛屽綋鏃ュ綋鏃舵�绘垚浜ら噺锛歿round(current_volume / 10000, 2)}涓囷紝鏄ㄦ棩鐨勬�绘垚浜ら噺{round(k_line_data[0]['volume'] / 10000, 2)}涓囷紝褰撴棩褰撴椂娑ㄥ箙锛歿today_growth}%銆�")
                                     logger_info(f"銆愭湁姒傚康銆�(娑ㄥ仠鍒楄〃涓寘鍚嚜韬蹇� 涓� 涓嶆槸鍞竴鍖呭惈姒傚康涓嶅彲鐢�) 锛佹渶鏂颁环: {current_price}锛岋紝褰撴棩褰撴椂娑ㄥ箙锛歿today_growth}%銆�")
                                     # 鏈夋蹇垫湁寮哄害瑙嗙晫
                                     if strength_list_have_it is True:
                                         logger_info(f"銆愭湁姒傚康 鏈夊己搴︺�戝嚭鐜板湪鏉垮潡寮哄害澶т簬2鐨勫垪琛ㄤ腑 鐬椂閲忓箙姣旓細{round(last_volume_to_growth_ratio, 2)}%锛屽綋鏃ュ綋鏃舵定骞咃細{today_growth}%銆�")
-                                        if tick_growth < 0.8 and (free_market_value <= 100 and current_price <= 10):
-                                            logger_info(f"銆愭湁姒傚康 鏈夊己搴� 鏈夊己鎷夈�戠灛鏃舵定骞� > 0.8% 锛佺灛鏃舵定骞咃細{round(tick_growth, 2)}%")
+                                        if tick_growth < 0.5 and (free_market_value <= 100 and current_price <= 10):
+                                            logger_info(f"銆愭湁姒傚康 鏈夊己搴� 鏃犲己鎷夈�戠灛鏃舵定骞� < 0.5% 锛佺灛鏃舵定骞咃細{round(tick_growth, 2)}%")
                                             return
                                         if last_volume_to_growth_ratio > 0.8 and (free_market_value <= 100 and current_price <= 10):
                                             logger_info(f"銆愪笉鍒┿�戠灛鏃堕噺骞呮瘮> 0.8 涓� (灏忚嚜鐢卞競鍊�<40浜� 鎴� 鏈�鏂颁环灏忎簬20鍏� )锛侊紝鐬椂閲忓箙姣旓細{round(last_volume_to_growth_ratio, 2)}%锛岃嚜鐢卞競鍊硷細{free_market_value} 浜裤��")

--
Gitblit v1.8.0