Merge pull request #4926 from rokups/rk/misc-fixes

Two fixes
This commit is contained in:
Matthias
2021-05-15 15:11:07 +02:00
committed by GitHub
4 changed files with 33 additions and 9 deletions

View File

@@ -79,6 +79,7 @@ class Hyperopt:
self.custom_hyperopt = HyperOptAuto(self.config)
else:
self.custom_hyperopt = HyperOptResolver.load_hyperopt(self.config)
self.backtesting._set_strategy(self.backtesting.strategylist[0])
self.custom_hyperopt.strategy = self.backtesting.strategy
self.custom_hyperoptloss = HyperOptLossResolver.load_hyperoptloss(self.config)