Merge pull request #1237 from marzwu/dev

* 修复初始化策略后界面不更新inited值
This commit is contained in:
vn.py 2018-11-16 23:07:09 +08:00 committed by GitHub
commit 79a1fec453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: