[Mod] bracket issue

This commit is contained in:
vn.py 2019-11-12 14:21:25 +08:00
parent d188e3dbaa
commit 662fe1d569

View File

@ -167,24 +167,24 @@ from vnpy.gateway.ctp import CtpGateway
from vnpy.app.cta_strategy import CtaStrategyApp from vnpy.app.cta_strategy import CtaStrategyApp
from vnpy.app.cta_backtester import CtaBacktesterApp from vnpy.app.cta_backtester import CtaBacktesterApp
def main: def main():
"""Start VN Trader""" """Start VN Trader"""
qapp = create_qapp qapp = create_qapp()
event_engine = EventEngine event_engine = EventEngine()
main_engine = MainEngineevent_engine main_engine = MainEngine(event_engine)
main_engine.add_gatewayCtpGateway main_engine.add_gateway(CtpGateway)
main_engine.add_appCtaStrategyApp main_engine.add_app(CtaStrategyApp)
main_engine.add_appCtaBacktesterApp main_engine.add_app(CtaBacktesterApp)
main_window = MainWindowmain_engine, event_engine main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized main_window.showMaximized()
qapp.exec qapp.exec()
if __name__ == "__main__": if __name__ == "__main__":
main main()
``` ```
在该目录下打开CMD按住Shift->点击鼠标右键->在此处打开命令窗口/PowerShell后运行下列命令启动VN Trader 在该目录下打开CMD按住Shift->点击鼠标右键->在此处打开命令窗口/PowerShell后运行下列命令启动VN Trader