Compare commits
2 Commits
f3c0645dd7
...
fda62556eb
| Author | SHA1 | Date | |
|---|---|---|---|
| fda62556eb | |||
| 7672771a8b |
@@ -205,6 +205,7 @@ class SpectralTrendStrategy(Strategy):
|
||||
"""
|
||||
# --- 1. 动态ATR止损检查 ---
|
||||
# 获取持仓均价
|
||||
self.log(f'trend_strength: {trend_strength:.2f}')
|
||||
avg_entry_price = self.get_average_position_price(self.symbol)
|
||||
|
||||
# 确保 ATR 和 均价 有效
|
||||
|
||||
Reference in New Issue
Block a user