chore: have backtest exit orders account for fee

This commit is contained in:
Matthias
2025-01-22 07:12:54 +01:00
parent f4bc956b1b
commit 03a22186bb

View File

@@ -855,7 +855,7 @@ class Backtesting:
amount=amount,
filled=0,
remaining=amount,
cost=amount * close_rate,
cost=amount * close_rate * (1 + self.fee),
ft_order_tag=exit_reason,
)
order._trade_bt = trade