mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix timerange check.
This commit is contained in:
parent
9becce9897
commit
2b7405470a
|
@ -753,7 +753,8 @@ class Backtesting:
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load previous result that will be updated incrementally.
|
# Load previous result that will be updated incrementally.
|
||||||
if self.config.get('timerange', '-').endswith('-'):
|
if self.timerange.stopts == 0 or datetime.fromtimestamp(
|
||||||
|
self.timerange.stopts, tz=timezone.utc) > datetime.now(tz=timezone.utc):
|
||||||
self.config['no_backtest_cache'] = True
|
self.config['no_backtest_cache'] = True
|
||||||
logger.warning('Backtest result caching disabled due to use of open-ended timerange.')
|
logger.warning('Backtest result caching disabled due to use of open-ended timerange.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user