修复未来函数bug

This commit is contained in:
2025-07-15 22:45:51 +08:00
parent 5de1a43b02
commit 5a2d0fb984
19 changed files with 15019 additions and 9388 deletions

View File

@@ -54,7 +54,7 @@ class Strategy(ABC):
pass # 默认不执行任何操作,具体策略可覆盖
@abstractmethod
def on_open_bar(self, bar: "Bar"):
def on_open_bar(self, open: float, symbol: str):
"""
每当新的K线数据到来时调用此方法。
Args: