diff --git a/freqtrade/optimize/__init__.py b/freqtrade/optimize/__init__.py index 168481920..7e5ab4e7f 100644 --- a/freqtrade/optimize/__init__.py +++ b/freqtrade/optimize/__init__.py @@ -74,12 +74,11 @@ def load_tickerdata_file( pairdata = json.load(tickerdata) else: return None - + if timerange: pairdata = trim_tickerlist(pairdata, timerange) return pairdata - def load_data(datadir: str, ticker_interval: str, pairs: Optional[List[str]] = None,