出场置信度+入场置信度+log+9

This commit is contained in:
zhangkun9038@dingtalk.com 2025-12-23 15:24:59 +08:00
parent ef5a1a1f99
commit b1d064d0e6

View File

@ -856,6 +856,9 @@ class FreqaiPrimer(IStrategy):
# 从 kwargs 获取当前利润freqtrade 会传入 current_profit
current_profit = float(kwargs.get('current_profit', 0.0))
# 获取出场一字基础阈值
base_threshold = self.ml_exit_signal_threshold.value
# 计算持仓时长(分钟)
try:
trade_age_minutes = max(0.0, (current_time - trade.open_date_utc).total_seconds() / 60.0)