diff --git a/freqtrade/optimize/hyperopt/hyperopt_auto.py b/freqtrade/optimize/hyperopt/hyperopt_auto.py index 4520f4a22..d1de3945d 100644 --- a/freqtrade/optimize/hyperopt/hyperopt_auto.py +++ b/freqtrade/optimize/hyperopt/hyperopt_auto.py @@ -71,15 +71,6 @@ class HyperOptAuto(IHyperOpt): ) return [] - def buy_indicator_space(self) -> list["Dimension"]: - return self.get_indicator_space("buy") - - def sell_indicator_space(self) -> list["Dimension"]: - return self.get_indicator_space("sell") - - def protection_space(self) -> list["Dimension"]: - return self.get_indicator_space("protection") - def generate_roi_table(self, params: dict) -> dict[int, float]: return self._get_func("generate_roi_table")(params) diff --git a/freqtrade/optimize/hyperopt/hyperopt_optimizer.py b/freqtrade/optimize/hyperopt/hyperopt_optimizer.py index ca067b057..bf5fbdd90 100644 --- a/freqtrade/optimize/hyperopt/hyperopt_optimizer.py +++ b/freqtrade/optimize/hyperopt/hyperopt_optimizer.py @@ -231,7 +231,7 @@ class HyperOptimizer: # Enable Protections if protection space is selected. self.config["enable_protections"] = True self.backtesting.enable_protections = True - self.spaces[space] = self.custom_hyperopt.protection_space() + self.spaces[space] = self.custom_hyperopt.get_indicator_space(space) elif space == "roi": self.spaces[space] = self.custom_hyperopt.roi_space() elif space == "stoploss":