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'
感谢老师解答
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'
感谢老师解答
你的策略里没有run函数。
脚本策略文件编写需要遵循一定格式,可参考https://www.vnpy.com/docs/cn/script_trader.html