出场置信度+入场置信度+log+9
This commit is contained in:
parent
ef5a1a1f99
commit
b1d064d0e6
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user