Add confirm_trade_exit and confirm_trade_entry to backtesting

This commit is contained in:
rextea 2021-03-23 10:19:16 +02:00
parent eb5d69dcd4
commit dc4ea604dd

View File

@ -254,7 +254,7 @@ class Backtesting:
time_in_force = self.strategy.order_time_in_force['sell']
# confirm_trade_exit
if not strategy_safe_wrapper(self.strategy.confirm_trade_exit, default_retval=False)(
if not strategy_safe_wrapper(self.strategy.confirm_trade_exit, default_retval=True)(
pair=trade.pair, trade=trade, order_type='limit', amount=trade.amount, rate=sell_row[LOW_IDX],
time_in_force=time_in_force,
sell_reason=sell.sell_type.value):