Use preprocessed to get min/max date in hyperopt

This commit is contained in:
Matthias
2020-09-18 07:45:47 +02:00
parent 9d4cdcad10
commit baa1142afa
2 changed files with 5 additions and 1 deletions

View File

@@ -152,6 +152,10 @@ class Backtesting:
self.strategy.order_types['stoploss_on_exchange'] = False
def load_bt_data(self) -> Tuple[Dict[str, DataFrame], TimeRange]:
"""
Loads backtest data and returns the data combined with the timerange
as tuple.
"""
timerange = TimeRange.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))