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

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 80, in run_trader
main_engine.add_app(app)
File "C:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 87, in add_app
engine = self.add_engine(app.engine_class)
File "C:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 62, in add_engine
engine = engine_class(self, self.event_engine)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 48, in init
self.load_strategy_class()
File "C:\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 "C:\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
加入于:
帖子: 1919
声望: 86

请升级到2.0.7最新版本试试

Member
avatar
加入于:
帖子: 7
声望: 0

我用的就是2.0.7版本啊

Administrator
avatar
加入于:
帖子: 1919
声望: 86

卸载了VNStudio重装吧,你的什么操作破坏了cta_backtester/engine.py中的代码

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