Fix problem when no experimental dict is available

This commit is contained in:
Matthias
2019-01-06 10:35:18 +01:00
parent 798ae460d8
commit 2147bd8847
2 changed files with 12 additions and 0 deletions

View File

@@ -153,6 +153,9 @@ class Hyperopt(Backtesting):
spaces += self.custom_hyperopt.indicator_space()
if self.has_space('sell'):
spaces += self.custom_hyperopt.sell_indicator_space()
# Make sure experimental is enabled
if 'experimental' not in self.config:
self.config['experimental'] = {}
self.config['experimental']['use_sell_signal'] = True
if self.has_space('roi'):
spaces += self.custom_hyperopt.roi_space()