2023-04-28 15:31:05,687 INFO: ToraMdApi get new tick 688525, Exchange.SSE, 2032-02-04 11:29:58+08:00, 85.18
2023-04-28 15:31:05,688 INFO: PortfolioBollChannelStrategy: on_tick: 688525 2032-02-04 11:29:58+08:00 85.18
2023-04-28 15:31:05,688 INFO: ToraMdApi get new tick 000001, Exchange.SZSE, 2032-02-04 11:30:00+08:00, 12.12
2023-04-28 15:31:05,689 INFO: PortfolioBollChannelStrategy: on_tick: 000001 2032-02-04 11:30:00+08:00 12.12
2023-04-28 15:31:05,730 INFO: ToraMdApi get new tick 300058, Exchange.SZSE, 2032-02-04 11:30:00+08:00, 10.05
2023-04-28 15:31:05,731 INFO: PortfolioBollChannelStrategy: on_tick: 300058 2032-02-04 11:30:00+08:00 10.05
2023-04-28 15:31:09,588 INFO: ToraMdApi get new tick 600009, Exchange.SSE, 2032-02-04 11:29:58+08:00, 52.75
2023-04-28 15:31:09,588 INFO: PortfolioBollChannelStrategy: on_tick: 600009 2032-02-04 11:29:58+08:00 52.75
配置文件
/home/xyd/.vntrader/portfolio_strategy_setting.json
华鑫奇点接口目录
/home/xyd/.local/lib/python3.10/site-packages/vnpy_tora
主程序
/home/xyd/vnpy-3.3.0/examples/no_ui/run_tora_p.py
注意替换EVENT_CTA_LOG, EVENT_CTA_STRATEGY为EVENT_PORTFOLIO_LOG, EVENT_PORTFOLIO_STRATEGY
策略文件
/usr/local/lib/python3.10/dist-packages/vnpy_portfoliostrategy/strategies/portfolio_boll_channel_strategy.py
引擎文件---默认无需修改
/usr/local/lib/python3.10/dist-packages/vnpy_portfoliostrategy/ engine.py
class StrategyEngine(BaseEngine):
想进一步了解的可以私聊。