Merge pull request #344 from gcarq/fix-hyperopt-stoploss
Fix hyperopt stoploss
This commit is contained in:
commit
e46fcf0e02
@ -95,7 +95,7 @@ SPACE = {
|
||||
{'type': 'stochf_cross'},
|
||||
{'type': 'ht_sine'},
|
||||
]),
|
||||
'stoploss': hp.quniform('stoploss', -30, -2, 1),
|
||||
'stoploss': hp.uniform('stoploss', -0.5, -0.02),
|
||||
}
|
||||
|
||||
|
||||
|
@ -100,7 +100,7 @@ def test_fmin_best_results(mocker, caplog):
|
||||
"uptrend_long_ema": 1,
|
||||
"uptrend_short_ema": 0,
|
||||
"uptrend_sma": 0,
|
||||
"stoploss": -10,
|
||||
"stoploss": -0.1,
|
||||
}
|
||||
|
||||
mocker.patch('freqtrade.optimize.hyperopt.MongoTrials', return_value=create_trials(mocker))
|
||||
@ -117,7 +117,7 @@ def test_fmin_best_results(mocker, caplog):
|
||||
'"green_candle": {\n "enabled": true\n },',
|
||||
'"mfi": {\n "enabled": false\n },',
|
||||
'"trigger": {\n "type": "ao_cross_zero"\n },',
|
||||
'"stoploss": -10.0',
|
||||
'"stoploss": -0.1',
|
||||
]
|
||||
|
||||
for line in exists:
|
||||
|
Loading…
Reference in New Issue
Block a user