Add confirm_trade_exit and confirm_trade_entry to backtesting
This commit is contained in:
parent
dc4ea604dd
commit
f51f4b1817
@ -255,7 +255,8 @@ class Backtesting:
|
|||||||
time_in_force = self.strategy.order_time_in_force['sell']
|
time_in_force = self.strategy.order_time_in_force['sell']
|
||||||
# confirm_trade_exit
|
# confirm_trade_exit
|
||||||
if not strategy_safe_wrapper(self.strategy.confirm_trade_exit, default_retval=True)(
|
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],
|
pair=trade.pair, trade=trade, order_type='limit', amount=trade.amount,
|
||||||
|
rate=sell_row[LOW_IDX],
|
||||||
time_in_force=time_in_force,
|
time_in_force=time_in_force,
|
||||||
sell_reason=sell.sell_type.value):
|
sell_reason=sell.sell_type.value):
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user