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.
|
||||
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
|
||||
logger.warning('Backtest result caching disabled due to use of open-ended timerange.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user