修复CTA中的bug
This commit is contained in:
parent
e6762a63e3
commit
e8fbab872d
@ -9,7 +9,8 @@ from vnpy.event import Event
|
|||||||
from vnpy.trader.vtEvent import *
|
from vnpy.trader.vtEvent import *
|
||||||
from vnpy.trader.uiBasicWidget import QtGui, QtCore, QtWidgets, BasicCell
|
from vnpy.trader.uiBasicWidget import QtGui, QtCore, QtWidgets, BasicCell
|
||||||
|
|
||||||
from vnpy.trader.app.ctaStrategy.language import text
|
from .ctaBase import EVENT_CTA_LOG, EVENT_CTA_STRATEGY
|
||||||
|
from .language import text
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -196,6 +196,8 @@ class WindGateway(VtGateway):
|
|||||||
if not result.ErrorCode:
|
if not result.ErrorCode:
|
||||||
log.logContent = u'Wind接口连接成功'
|
log.logContent = u'Wind接口连接成功'
|
||||||
|
|
||||||
|
self.connected = True
|
||||||
|
|
||||||
# 发出缓存的订阅请求
|
# 发出缓存的订阅请求
|
||||||
for req in self.subscribeBufferDict.values():
|
for req in self.subscribeBufferDict.values():
|
||||||
self.subscribe(req)
|
self.subscribe(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user