Merge branch 'dev' of https://github.com/vnpy/vnpy into dev
This commit is contained in:
commit
3fee9cb48e
@ -441,9 +441,9 @@ class CtaEngine(AppEngine):
|
||||
strategy = self.strategyDict[name]
|
||||
|
||||
if not strategy.inited:
|
||||
self.callStrategyFunc(strategy, strategy.onInit)
|
||||
strategy.inited = True
|
||||
|
||||
self.callStrategyFunc(strategy, strategy.onInit)
|
||||
|
||||
self.loadSyncData(strategy) # 初始化完成后加载同步数据
|
||||
self.subscribeMarketData(strategy) # 加载同步数据后再订阅行情
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user