From 3252654ed3c4016a2c8ecc6520d9c6a35ef19c25 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Tue, 10 Dec 2019 14:06:17 +0300 Subject: [PATCH] Test adjusted --- tests/optimize/test_hyperopt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 6a8daab8b..60b445323 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -636,7 +636,7 @@ def test_generate_optimizer(mocker, default_conf) -> None: 'stoploss': -0.4, 'trailing_stop': True, 'trailing_stop_positive': 0.02, - 'trailing_stop_positive_offset': 0.1, + 'trailing_stop_positive_offset_p1': 0.05, 'trailing_only_offset_is_reached': False, } response_expected = { @@ -670,7 +670,7 @@ def test_generate_optimizer(mocker, default_conf) -> None: 'trailing': {'trailing_only_offset_is_reached': False, 'trailing_stop': True, 'trailing_stop_positive': 0.02, - 'trailing_stop_positive_offset': 0.1}}, + 'trailing_stop_positive_offset': 0.07}}, 'params_dict': optimizer_param, 'results_metrics': {'avg_profit': 2.3117, 'duration': 100.0,