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 | 2 +- strategy/buying_strategy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/strategy/basic_methods.py b/strategy/basic_methods.py index 2af7d7b..1cac47b 100644 --- a/strategy/basic_methods.py +++ b/strategy/basic_methods.py @@ -211,7 +211,7 @@ # 鍏呭垎浜ゆ槗閲忓叕寮� 鐢ㄤ簬璁$畻鏃ュ唴娑ㄥ箙娈电悊璁虹殑瀹夊叏浜ゆ槗閲忓�� def sufficient_volume(current_volume, yesterday_volume, today_growth): if today_growth > 0 and round(current_volume / yesterday_volume, 2) >= 0.01: - if current_volume > yesterday_volume * (today_growth/10) * 0.5: + if current_volume > yesterday_volume * (today_growth/10) * 0.1: return True else: return False diff --git a/strategy/buying_strategy.py b/strategy/buying_strategy.py index 2ab13c6..6cc30ae 100644 --- a/strategy/buying_strategy.py +++ b/strategy/buying_strategy.py @@ -559,7 +559,7 @@ intersection_plate = bought_plate_set.intersection(strength_plate_set) if len(intersection_plate) > 0: logger_info(f"閲嶅鐩镐氦寮哄害==={intersection_plate}") - if last_volume_to_growth_ratio < 1: + if last_volume_to_growth_ratio < 0.8: logger_info( f"銆愭湁寮哄害 鏈夊皬閲忔崲澶ф定骞呫�戠灛鏃堕噺骞呮瘮< 1 锛佺灛鏃堕噺骞呮瘮锛歿round(last_volume_to_growth_ratio, 2)}%锛屾渶鏂颁环: {current_price}锛岀灛鏃舵定骞咃細{round(tick_growth, 2)}%锛屽綋鏃ュ綋鏃舵定骞咃細{today_growth}%,褰撳墠鏃堕棿锛歿current_created_at}銆�") if tick_growth >= 1 and today_growth >= 1: -- Gitblit v1.8.0