entry_signal 加log

This commit is contained in:
zhangkun9038@dingtalk.com 2026-01-10 21:00:50 +08:00
parent 158c80039f
commit dc29df308d

View File

@ -900,6 +900,7 @@ class FreqaiPrimer(IStrategy):
market_state = str(last_row.get('market_state', 'unknown'))
# 输出诊断日志
ml_prob_str = f"{entry_prob:.2f}" if entry_prob is not None else "N/A"
self.strategy_log(
f"[入场诊断] {pair} | "
f"价格: {current_close:.6f} | "
@ -909,7 +910,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}"
)
# ========== 诊断统计结束 ==========