From 30e5e9296817f54ca773772a124548fd290c9d9f Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 3 Apr 2021 20:17:48 +0200 Subject: [PATCH] Don't allow one parmeter to be in 2 spaces use the explicit user wish (given explicitly with "space") --- freqtrade/strategy/hyper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/strategy/hyper.py b/freqtrade/strategy/hyper.py index 6282d91c0..e7f31e20d 100644 --- a/freqtrade/strategy/hyper.py +++ b/freqtrade/strategy/hyper.py @@ -244,8 +244,8 @@ class HyperStrategyMixin(object): if not attr_name.startswith('__'): # Ignore internals, not strictly necessary. attr = getattr(self, attr_name) if issubclass(attr.__class__, BaseParameter): - if category is None or category == attr.category or \ - attr_name.startswith(category + '_'): + if (category is None or category == attr.category or + (attr_name.startswith(category + '_') and attr.category is None)): yield attr_name, attr def _load_params(self, params: dict) -> None: