add new options to hyperopt

This commit is contained in:
Matthias 2018-10-16 19:35:16 +02:00
parent e94da7ca41
commit 96efd12a31
1 changed files with 3 additions and 0 deletions

View File

@ -276,11 +276,14 @@ class Hyperopt(Backtesting):
self.strategy.stoploss = params['stoploss']
processed = load(TICKERDATA_PICKLE)
min_date, max_date = Backtesting.get_timeframe(processed)
results = self.backtest(
{
'stake_amount': self.config['stake_amount'],
'processed': processed,
'position_stacking': self.config.get('position_stacking', True),
'start_date': min_date,
'end_date': max_date,
}
)
result_explanation = self.format_results(results)