Merge pull request #3835 from freqtrade/hyperopt_trailing_output

Fix Hyperopt trailing output
This commit is contained in:
Matthias
2020-10-05 19:09:02 +02:00
committed by GitHub
2 changed files with 42 additions and 0 deletions

View File

@@ -262,6 +262,11 @@ class Hyperopt:
),
default=str, indent=4, number_mode=rapidjson.NM_NATIVE)
params_result += f"minimal_roi = {minimal_roi_result}"
elif space == 'trailing':
for k, v in space_params.items():
params_result += f'{k} = {v}\n'
else:
params_result += f"{space}_params = {pformat(space_params, indent=4)}"
params_result = params_result.replace("}", "\n}").replace("{", "{\n ")