diff --git a/freqtrade/strategy/hyper.py b/freqtrade/strategy/hyper.py index 3f590d935..15c49c4c3 100644 --- a/freqtrade/strategy/hyper.py +++ b/freqtrade/strategy/hyper.py @@ -104,7 +104,9 @@ class HyperStrategyMixin: """ spaces = ["buy", "sell", "protection"] spaces += [ - s for s in self.config["spaces"] if s not in spaces and s not in HYPEROPT_BUILTIN_SPACES + s + for s in self.config.get("spaces", []) + if s not in spaces and s not in HYPEROPT_BUILTIN_SPACES ] for space in spaces: