锁仓上限改为可配置,默认3次不变,止盈按钮左侧增加修改入口

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-07-27 12:57:34 +08:00
parent 1a70a60dba
commit 434acb0470
6 changed files with 70 additions and 6 deletions
+3 -3
View File
@@ -28,6 +28,6 @@ def check_lock(
return (current_price - open_price) >= lock_threshold
def should_meltdown(lock_count: int) -> bool:
"""3锁熔断"""
return lock_count >= 3
def should_meltdown(lock_count: int, max_locks: int = 3) -> bool:
"""仓次数达到上限时熔断"""
return lock_count >= max_locks