Add confirm_trade_exit and confirm_trade_entry to backtesting
This commit is contained in:
parent
eb5d69dcd4
commit
dc4ea604dd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user