mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 07:46:53 +08:00
fix calendar
This commit is contained in:
@@ -70,7 +70,7 @@ class TradeCalendarManager:
|
|||||||
- If self.trade_step >= self.self.trade_len, it means the trading is finished
|
- If self.trade_step >= self.self.trade_len, it means the trading is finished
|
||||||
- If self.trade_step < self.self.trade_len, it means the number of trading step finished is self.trade_step
|
- If self.trade_step < self.self.trade_len, it means the number of trading step finished is self.trade_step
|
||||||
"""
|
"""
|
||||||
return self.trade_step >= self.trade_len
|
return self.trade_step >= self.trade_len - 1
|
||||||
|
|
||||||
def step(self):
|
def step(self):
|
||||||
if self.finished():
|
if self.finished():
|
||||||
|
|||||||
Reference in New Issue
Block a user