From 49cecf1cb25d82d0610d104c3bd012cd42efa0b7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 22 Jan 2022 15:08:54 +0100 Subject: [PATCH] Small cosmetic fix --- freqtrade/optimize/backtesting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index a251c75d8..badc4111d 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -416,7 +416,7 @@ class Backtesting: closerate = strategy_safe_wrapper(self.strategy.custom_exit_price, default_retval=closerate)( pair=trade.pair, trade=trade, - current_time=sell_row[DATE_IDX], + current_time=sell_candle_time, proposed_rate=closerate, current_profit=current_profit) # Confirm trade exit: @@ -444,8 +444,8 @@ class Backtesting: order = Order( id=self.order_id_counter, ft_trade_id=trade.id, - order_date=sell_row[DATE_IDX].to_pydatetime(), - order_update_date=sell_row[DATE_IDX].to_pydatetime(), + order_date=sell_candle_time, + order_update_date=sell_candle_time, ft_is_open=True, ft_pair=trade.pair, order_id=str(self.order_id_counter),