From 6dc63548541ba4227728c35a2b1de2a86d68521c Mon Sep 17 00:00:00 2001 From: Zegelink Date: Fri, 10 Dec 2021 11:50:21 +0800 Subject: [PATCH] fix default hyperopt trailing stoploss --- freqtrade/optimize/hyperopt_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/hyperopt_interface.py b/freqtrade/optimize/hyperopt_interface.py index 53b4f087c..ac5a2223a 100644 --- a/freqtrade/optimize/hyperopt_interface.py +++ b/freqtrade/optimize/hyperopt_interface.py @@ -180,14 +180,14 @@ class IHyperOpt(ABC): # other 'trailing' hyperspace parameters. Categorical([True], name='trailing_stop'), - SKDecimal(0.01, 0.35, decimals=3, name='trailing_stop_positive'), + SKDecimal(0.001, 0.1, decimals=3, name='trailing_stop_positive'), # 'trailing_stop_positive_offset' should be greater than 'trailing_stop_positive', # so this intermediate parameter is used as the value of the difference between # them. The value of the 'trailing_stop_positive_offset' is constructed in the # generate_trailing_params() method. # This is similar to the hyperspace dimensions used for constructing the ROI tables. - SKDecimal(0.001, 0.1, decimals=3, name='trailing_stop_positive_offset_p1'), + SKDecimal(0.02, 0.35, decimals=3, name='trailing_stop_positive_offset_p1'), Categorical([True, False], name='trailing_only_offset_is_reached'), ]