1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-01 18:11:18 +08:00

fix calendar

This commit is contained in:
Dong Zhou
2021-10-19 06:17:53 +00:00
parent 22ff8fdc44
commit c427c64845

View File

@@ -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 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):
if self.finished():