Delay parameter init

closes #6894
This commit is contained in:
Matthias
2022-05-29 15:58:40 +02:00
parent a875a7dc40
commit 1ee08d22d2
2 changed files with 24 additions and 12 deletions

View File

@@ -187,6 +187,9 @@ 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
if self.dataprovider.runmode == RunMode.BACKTEST:
# in hyperopt mode - don't re-init params
self.strategy.ft_load_hyper_params(False)
self.strategy.ft_bot_start()
def _load_protections(self, strategy: IStrategy):