ModuleNotFoundError: No module named 'vnpy.app.algo_trading.algos'
import os, sys
sys.path.insert(0, ".")
sys.path.insert(0, os.path.join("..", "vnpy"))
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
# from vnpy.ctp import CtpGateway
# from vnpy.ctptest import CtptestGateway
from vnpy.gateway.ib import IbGateway
# from vnpy.gateway.tiger import TigerGateway
# from vnpy.gateway.tap import TapGateway
# from vnpy.gateway.da import DaGateway
# from howtrader.app.cta_strategy import CtaStrategyApp
# from howtrader.app.data_manager import DataManagerApp
# from howtrader.app.data_recorder import DataRecorderApp
# from howtrader.app.algo_trading import AlgoTradingApp
# from howtrader.app.cta_backtester import CtaBacktesterApp
# from howtrader.app.risk_manager import RiskManagerApp
# from howtrader.app.spread_trading import SpreadTradingApp
from vnpy.app.cta_strategy import CtaStrategyApp
from vnpy.app.cta_backtester import CtaBacktesterApp
from vnpy.app.spread_trading import SpreadTradingApp
from vnpy.app.algo_trading import AlgoTradingApp
# from vnpy.app.option_master import OptionMasterApp
from vnpy.app.portfolio_strategy import PortfolioStrategyApp
from vnpy.app.script_trader import ScriptTraderApp
# from vnpy.app.market_radar import MarketRadarApp
# from vnpy.chartwizard import ChartWizardApp
# from vnpy.app.rpc_service import RpcServiceApp
# from vnpy.app.excel_rtd import ExcelRtdApp
from vnpy.app.data_manager import DataManagerApp
from vnpy.app.data_recorder import DataRecorderApp
from vnpy.app.risk_manager import RiskManagerApp
from vnpy.app.spread_trading import SpreadTradingApp
from vnpy.app.web_trader import WebTraderApp
from vnpy.app.portfolio_manager import PortfolioManagerApp
from vnpy.app.paper_account import PaperAccountApp
def main():
""""""
qapp = create_qapp()
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(IbGateway)
main_engine.add_app(CtaStrategyApp)
main_engine.add_app(CtaBacktesterApp)
main_engine.add_app(DataManagerApp)
main_engine.add_app(AlgoTradingApp)
main_engine.add_app(DataRecorderApp)
main_engine.add_app(RiskManagerApp)
main_engine.add_app(SpreadTradingApp)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
# main_engine.add_gateway(CtptestGateway)
# main_engine.add_gateway(MiniGateway)
# main_engine.add_gateway(MinitestGateway)
# main_engine.add_gateway(FemasGateway)
# main_engine.add_gateway(SoptGateway)
# main_engine.add_gateway(SopttestGateway)
# main_engine.add_gateway(SecGateway)
# main_engine.add_gateway(UftGateway)
# main_engine.add_gateway(EsunnyGateway)
# main_engine.add_gateway(HsoptionGateway)
# main_engine.add_gateway(XtpGateway)
# main_engine.add_gateway(ToraStockGateway)
# main_engine.add_gateway(ToraOptionGateway)
# main_engine.add_gateway(OesGateway)
# main_engine.add_gateway(ComstarGateway)
# main_engine.add_gateway(FutuGateway)
# main_engine.add_gateway(IbGateway)
# main_engine.add_gateway(TigerGateway)
# main_engine.add_gateway(TapGateway)
# main_engine.add_gateway(DaGateway)
# main_engine.add_app(CtaStrategyApp)
# main_engine.add_app(CtaBacktesterApp)
# main_engine.add_app(SpreadTradingApp)
# main_engine.add_app(AlgoTradingApp)
# main_engine.add_app(OptionMasterApp)
# main_engine.add_app(PortfolioStrategyApp)
# main_engine.add_app(ScriptTraderApp)
# main_engine.add_app(MarketRadarApp)
# main_engine.add_app(ChartWizardApp)
# main_engine.add_app(RpcServiceApp)
# main_engine.add_app(ExcelRtdApp)
# main_engine.add_app(DataManagerApp)
# main_engine.add_app(DataRecorderApp)
# main_engine.add_app(RiskManagerApp)
# main_engine.add_app(WebTraderApp)
# main_engine.add_app(PortfolioManagerApp)
# main_engine.add_app(PaperAccountApp)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()