Hyperoptable parameters can be instance attributes

This commit is contained in:
Matthias
2022-05-30 07:07:47 +02:00
parent 386d3e0353
commit eaa656f859
3 changed files with 8 additions and 11 deletions

View File

@@ -187,9 +187,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
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):