加入统计用于回测验证逻辑+2

This commit is contained in:
zhangkun9038@dingtalk.com 2026-01-07 16:17:12 +08:00
parent 3aee2ee4bd
commit ab8086b471

View File

@ -695,6 +695,7 @@ class FreqaiPrimer(IStrategy):
entry_prob = float(row.get('&-entry_signal', 0))
# 输出诊断日志
ml_prob_str = f"{entry_prob:.2f}" if entry_prob is not None else "N/A"
self.strategy_log(
f"[入场诊断] {metadata['pair']} | "
f"价格: {current_close:.6f} | "
@ -704,7 +705,7 @@ class FreqaiPrimer(IStrategy):
f"RSI: {rsi_1h:.1f} | "
f"MACD: {macd_cross} | "
f"市场: {market_state} | "
f"ML概率: {entry_prob:.2f if entry_prob is not None else 'N/A'}"
f"ML概率: {ml_prob_str}"
)
# ========== 诊断统计结束 ==========