diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 9c585ed72..a7b0e2bf6 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -54,10 +54,10 @@ class Hyperopt: def __init__(self, config: Dict[str, Any]) -> None: self.config = config - self.custom_hyperopt = HyperOptResolver(self.config).hyperopt - self.backtesting = Backtesting(self.config) + self.custom_hyperopt = HyperOptResolver(self.config).hyperopt + self.custom_hyperoptloss = HyperOptLossResolver(self.config).hyperoptloss self.calculate_loss = self.custom_hyperoptloss.hyperopt_loss_function