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

提示如下
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 281, 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 51, in init
self.init_strategy_settings()
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 59, 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 237, 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 'DemoStrategy' has no attribute 'slowa_window'

Administrator
avatar
加入于:
帖子: 4360
声望: 249

检查下你的策略代码里的parameters,打错了吧,应该是slow_ma_window

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