From 319b108827e42caf4c368331cf62af1af17332b3 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期四, 29 五月 2025 17:30:38 +0800 Subject: [PATCH] 1.引入有意购买列表进入次数逻辑 --- strategy/basic_methods.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/strategy/basic_methods.py b/strategy/basic_methods.py index cdc5763..e4a415c 100644 --- a/strategy/basic_methods.py +++ b/strategy/basic_methods.py @@ -210,7 +210,7 @@ # 鍏呭垎浜ゆ槗閲忓叕寮� 鐢ㄤ簬璁$畻鏃ュ唴娑ㄥ箙娈电悊璁虹殑瀹夊叏浜ゆ槗閲忓�� def sufficient_volume(current_volume, yesterday_volume, today_growth): - if today_growth > 0: + if today_growth > 0 and round(current_volume / yesterday_volume / 100, 2) >= 0.01: if current_volume > yesterday_volume * 0.5 * today_growth: return True else: @@ -259,3 +259,9 @@ else: buying_ratio = 0.01 return buying_ratio + + +# 缁熻鏈夋剰涔拌偂绁ㄥ嚭鐜版鏁板嚱鏁� +def count_willing_buy_times(sec_name): + willing_buy_times = data_cache.willing_buy_list.count(sec_name) + return willing_buy_times \ No newline at end of file -- Gitblit v1.8.0