From 72e5e0a0a601aaf26f8363b44c452f5bf1c6d1b7 Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期二, 10 六月 2025 14:48:09 +0800
Subject: [PATCH] 1.修改有强度瞬时量幅比 2.充分交易量公式 优化 计算公式

---
 strategy/basic_methods.py |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/strategy/basic_methods.py b/strategy/basic_methods.py
index b9defd5..1cac47b 100644
--- a/strategy/basic_methods.py
+++ b/strategy/basic_methods.py
@@ -210,11 +210,11 @@
 
 # 鍏呭垎浜ゆ槗閲忓叕寮� 鐢ㄤ簬璁$畻鏃ュ唴娑ㄥ箙娈电悊璁虹殑瀹夊叏浜ゆ槗閲忓��
 def sufficient_volume(current_volume, yesterday_volume, today_growth):
-    if today_growth > 0:
-        if current_volume < yesterday_volume * today_growth:
-            return False
-        else:
+    if today_growth > 0 and round(current_volume / yesterday_volume, 2) >= 0.01:
+        if current_volume > yesterday_volume * (today_growth/10) * 0.1:
             return True
+        else:
+            return False
 
 
 # 璁$畻 濮斾拱鍜屽鍗栫殑姣斾緥鍑芥暟(鑾峰彇涔扮洏寮哄害鏁版嵁)銆愭帢閲戞暟鎹粨鏋勩��
@@ -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