From aa5181ca81d4268490f6b085fab7696a6e367f9b Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 15 Jun 2021 20:14:31 +0200 Subject: [PATCH] Properly export non-optimized parameters --- freqtrade/optimize/hyperopt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index c23884bcd..ea75028b4 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -208,9 +208,9 @@ class Hyperopt: result: Dict[str, Any] = {} strategy = self.backtesting.strategy if not HyperoptTools.has_space(self.config, 'roi'): - result['roi'] = strategy.minimal_roi + result['roi'] = {str(k): v for k, v in strategy.minimal_roi.items()} if not HyperoptTools.has_space(self.config, 'stoploss'): - result['stoploss'] = strategy.stoploss + result['stoploss'] = {'stoploss': strategy.stoploss} if not HyperoptTools.has_space(self.config, 'trailing'): result['trailing'] = { 'trailing_stop': strategy.trailing_stop,