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

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 278, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 50, in init
self.init_strategy_settings()
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 57, in init_strategy_settings
setting = self.backtester_engine.get_default_setting(class_name)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 239, in get_default_setting
return strategy_class.get_class_parameters()
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\template.py", line 60, in get_class_parameters
class_parameters[name] = getattr(cls, name)
AttributeError: type object 'CincoStrategy' has no attribute 'boll_window '

Member
avatar
加入于:
帖子: 580
声望: 27

可以检查一下你的cinco策略,是不是忘打boll_window了。不是在参数里,是在赋值的时候。

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