日志
This commit is contained in:
parent
fb83b844b2
commit
3c3eeaf742
@ -763,6 +763,13 @@ class FreqaiPrimer(IStrategy):
|
||||
#logger.info(f"[{pair}] 动态止盈: 持仓时间={trade_age_minutes:.1f}分钟, 当前利润={current_profit:.2%}, "
|
||||
# f"动态ROI阈值={dynamic_roi_threshold:.4f}, 利润比值={profit_ratio:.2f}, "
|
||||
# f"市场状态={current_state}, entry_tag={entry_tag}, 退出比例={exit_ratio:.0%}")
|
||||
|
||||
# 当决定退出时,输出出场价格信息
|
||||
if exit_ratio > 0:
|
||||
# 计算出场价格上浮比例(1.25%)
|
||||
price_markup_percent = 1.25
|
||||
adjusted_exit_price = current_rate * 1.0125
|
||||
logger.info(f"[{pair}] 准备出场 - 市场价: {current_rate:.8f}, 调整后出场价: {adjusted_exit_price:.8f}, 上浮: {price_markup_percent}%, 退出比例: {exit_ratio:.0%}")
|
||||
|
||||
return exit_ratio
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user