This commit is contained in:
msincenselee 2017-05-03 15:30:40 +08:00
parent f26fb90c3d
commit 55e0bbbfca
3 changed files with 13 additions and 12 deletions

View File

@ -1,7 +0,0 @@
{
"brokerID": "9999",
"tdAddress": "tcp://180.168.146.187:10000",
"password": "simnow申请",
"mdAddress": "tcp://180.168.212.228:41213",
"userID": "simnow申请"
}

View File

@ -26,9 +26,9 @@ class NoUiMain(object):
# gateway 是否连接
self.connected = False
# gateway 的连接名称在vtEngine.initGateway()里面定义
self.gateway_name = 'CTP_JR'
# 启动的策略实例须在catAlgo/CtaSetting.json 里面定义 [u'S28_RB1001', u'S28_TFT', u'S28_HCRB']
self.strategies = [u'S28_HCRB']
self.gateway_name = 'CTP'
# 启动的策略实例须在catAlgo/CtaSetting.json 里面定义 [u'S28_RB1001', u'S28_TFT', u'S28_HCRB',u'atr_rsi']
self.strategies = [u'atr_rsi']
self.g_count = 0
@ -121,6 +121,14 @@ def run_noui():
if __name__ == '__main__':
from PyQt4 import QtGui
# 主程序
thread = Thread(target=run_noui, args=())
thread.start()
#thread = Thread(target=run_noui, args=())
#thread.start()
# 创建Qt应用对象用于事件循环
app = QtGui.QApplication(sys.argv)
run_noui()
# 连续运行,用于输出行情
app.exec_()