added bot_start to backtesting

This commit is contained in:
Sam Germain 2022-04-03 10:28:09 -06:00
parent d92761b2b1
commit 4fd904e0a9

View File

@ -182,6 +182,7 @@ class Backtesting:
# since a "perfect" stoploss-exit is assumed anyway
# And the regular "stoploss" function would not apply to that case
self.strategy.order_types['stoploss_on_exchange'] = False
self.strategy.bot_start()
def _load_protections(self, strategy: IStrategy):
if self.config.get('enable_protections', False):