Merge pull request #2137 from hroff-1902/hyperopt-adaptive-roi-space

Hyperopt: adaptive roi_space
This commit is contained in:
Matthias
2019-09-06 06:26:52 +02:00
committed by GitHub
6 changed files with 128 additions and 34 deletions

View File

@@ -418,7 +418,8 @@ def test_start_calls_optimizer(mocker, default_conf, caplog, capsys) -> None:
parallel = mocker.patch(
'freqtrade.optimize.hyperopt.Hyperopt.run_optimizer_parallel',
MagicMock(return_value=[{'loss': 1, 'results_explanation': 'foo result', 'params': {}}])
MagicMock(return_value=[{'loss': 1, 'results_explanation': 'foo result',
'params': {'buy': {}, 'sell': {}, 'roi': {}, 'stoploss': 0.0}}])
)
patch_exchange(mocker)