SpectralStrategy更新:FG品种更新
This commit is contained in:
@@ -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