Add test for hyperopt

This commit is contained in:
Matthias
2019-07-15 20:27:34 +02:00
parent 107f00ff8f
commit b1b4048f97
2 changed files with 19 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class Hyperopt(Backtesting):
# Note, this is ratio. 3.85 stated above means 385Σ%.
self.expected_max_profit = 3.0
if self.config['hyperopt_clean_state']:
if self.config.get('hyperopt_clean_state'):
self.clean_hyperopt()
# Previous evaluations
self.trials_file = TRIALSDATA_PICKLE