分段长度去掉freqai优化

This commit is contained in:
zhangkun9038@dingtalk.com 2025-08-17 01:13:57 +08:00
parent 0332a1f9f3
commit e78283eda6

View File

@ -228,10 +228,6 @@ class FreqaiPrimer(IStrategy):
dataframe["&-price_value_divergence"] = dataframe["&-price_value_divergence"].replace([np.inf, -np.inf], 0).ffill().fillna(0)
# 添加趋势分段长度作为FreqAI训练目标
# 基于未来价格表现计算最优段长
dataframe = self.calculate_optimal_segment_length(dataframe, metadata)
return dataframe
def is_stochrsi_overbought(self, dataframe: DataFrame, period=10, threshold=85) -> bool:
"""