parent
3006396398
commit
6aa574fa2b
@ -185,7 +185,8 @@ class Hyperopt:
|
|||||||
if HyperoptTools.has_space(self.config, 'sell'):
|
if HyperoptTools.has_space(self.config, 'sell'):
|
||||||
result['sell'] = {p.name: params.get(p.name) for p in self.sell_space}
|
result['sell'] = {p.name: params.get(p.name) for p in self.sell_space}
|
||||||
if HyperoptTools.has_space(self.config, 'roi'):
|
if HyperoptTools.has_space(self.config, 'roi'):
|
||||||
result['roi'] = self.custom_hyperopt.generate_roi_table(params)
|
result['roi'] = {str(k): v for k, v in
|
||||||
|
self.custom_hyperopt.generate_roi_table(params).items()}
|
||||||
if HyperoptTools.has_space(self.config, 'stoploss'):
|
if HyperoptTools.has_space(self.config, 'stoploss'):
|
||||||
result['stoploss'] = {p.name: params.get(p.name) for p in self.stoploss_space}
|
result['stoploss'] = {p.name: params.get(p.name) for p in self.stoploss_space}
|
||||||
if HyperoptTools.has_space(self.config, 'trailing'):
|
if HyperoptTools.has_space(self.config, 'trailing'):
|
||||||
|
@ -649,10 +649,10 @@ def test_generate_optimizer(mocker, hyperopt_conf) -> None:
|
|||||||
'rsi-enabled': False,
|
'rsi-enabled': False,
|
||||||
'rsi-value': 0,
|
'rsi-value': 0,
|
||||||
'trigger': 'macd_cross_signal'},
|
'trigger': 'macd_cross_signal'},
|
||||||
'roi': {0: 0.12000000000000001,
|
'roi': {"0": 0.12000000000000001,
|
||||||
20.0: 0.02,
|
"20.0": 0.02,
|
||||||
50.0: 0.01,
|
"50.0": 0.01,
|
||||||
110.0: 0},
|
"110.0": 0},
|
||||||
'sell': {'sell-adx-enabled': False,
|
'sell': {'sell-adx-enabled': False,
|
||||||
'sell-adx-value': 0,
|
'sell-adx-value': 0,
|
||||||
'sell-fastd-enabled': True,
|
'sell-fastd-enabled': True,
|
||||||
|
Loading…
Reference in New Issue
Block a user