VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 3
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\script_trader\engine.py", line 83, in run_strategy
module.run(self)
AttributeError: module 'demo_strategy' has no attribute 'run'
感谢老师解答

Member
avatar
加入于:
帖子: 4684
声望: 285

你的策略里没有run函数。
脚本策略文件编写需要遵循一定格式,可参考https://www.vnpy.com/docs/cn/script_trader.html

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】