This commit is contained in:
zhangkun9038@dingtalk.com 2025-12-23 00:36:14 +08:00
parent fb83b844b2
commit 3c3eeaf742

View File

@ -764,6 +764,13 @@ class FreqaiPrimer(IStrategy):
# 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