Update backtesting.py
This commit is contained in:
parent
961f7366a3
commit
ffebdd2ecd
@ -214,6 +214,10 @@ class BacktestingEngine:
|
|||||||
if not self.end:
|
if not self.end:
|
||||||
self.end = datetime.now()
|
self.end = datetime.now()
|
||||||
|
|
||||||
|
if self.start >= self.end:
|
||||||
|
self.output("起始日期必须小于结束日期")
|
||||||
|
return
|
||||||
|
|
||||||
self.history_data.clear() # Clear previously loaded history data
|
self.history_data.clear() # Clear previously loaded history data
|
||||||
|
|
||||||
# Load 30 days of data each time and allow for progress update
|
# Load 30 days of data each time and allow for progress update
|
||||||
|
Loading…
Reference in New Issue
Block a user