vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 18
声望: 0

Traceback (most recent call last):
File "run.py", line 28, in <module>
main()
File "run.py", line 19, in main
main_engine.add_app(CtaBacktesterApp)
File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 87, in add_app
engine = self.add_engine(app.engine_class)
File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 62, in add_engine
engine = engine_class(self, self.event_engine)
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 48, in init
self.load_strategy_class()
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 86, in load_strategy_class
self.load_strategy_class_from_folder(path2, "strategies")
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 101, in load_strategy_class_from_folder
self.load_strategy_class_from_module(strategy_module_name)
UnboundLocalError: local variable 'strategy_module_name' referenced before assignment

Administrator
avatar
加入于:
帖子: 4191
声望: 235

请升级到2.0.7最新版本

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