From cadf573170c8f4a9a541a500d9a70404d1eff6ec Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Tue, 20 Aug 2019 22:24:59 +0300 Subject: [PATCH] round printed stoploss value as well --- freqtrade/optimize/hyperopt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index d20134e0d..eaa3a7e1d 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -151,7 +151,8 @@ class Hyperopt(Backtesting): # Round printed values to 5 digits after the decimal point pprint(round_dict(self.custom_hyperopt.generate_roi_table(params), 5), indent=4) if self.has_space('stoploss'): - print(f"Stoploss: {params.get('stoploss')}") + # Also round to 5 digits after the decimal point + print(f"Stoploss: {round(params.get('stoploss'), 5)}") def log_results(self, results) -> None: """