fix issue

This commit is contained in:
zhangkun9038@dingtalk.com 2025-08-29 19:13:27 +08:00
parent 5e5320433e
commit 3500a14920

View File

@ -1061,6 +1061,9 @@ class FreqaiPrimer(IStrategy):
# 记录权重应用日志
logger.info(f"[{pair}] 应用动态权重 - 价值偏离度: {weight1:.2f}, 成交量: {weight2:.2f}, RSI: {weight3:.2f}, 布林带: {weight4:.2f}, STOCHRSI: {weight5:.2f}")
# 计算满足的条件数量
satisfied_count_vector = cond1.astype(int) + cond2.astype(int) + cond3.astype(int) + cond4.astype(int) + cond5.astype(int)
# 根据市场状态动态调整需要满足的条件数量
if regime_adj['required_conditions'] <= 4:
# 最宽松状态只需要满足核心4个条件