SpectralStrategy更新:FG品种更新

This commit is contained in:
2025-12-15 21:05:17 +08:00
parent 6e64cc69ce
commit 7672771a8b

View File

@@ -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 和 均价 有效