From b91b7b4464749d3d29241fb187ebc1fd849fc73c Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 30 Mar 2022 07:16:48 +0200 Subject: [PATCH] Fix hyperopt assigning sell_signal to wrong field --- freqtrade/optimize/hyperopt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 4d7092ff6..de1817eed 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -115,9 +115,7 @@ class Hyperopt: if HyperoptTools.has_space(self.config, 'sell'): # Make sure use_sell_signal is enabled - if 'exit_pricing' not in self.config: - self.config['exit_pricing'] = {} - self.config['exit_pricing']['use_sell_signal'] = True + self.config['use_sell_signal'] = True self.print_all = self.config.get('print_all', False) self.hyperopt_table_header = 0