VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 9
声望: 0

命令行启动报错为:
Traceback (most recent call last):
File "C:\veighna_studio\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\veighna_studio\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\veighna_studio\lib\site-packages\vnpy\event\engine.py", line 60, in _run
self._process(event)
File "C:\veighna_studio\lib\site-packages\vnpy\event\engine.py", line 73, in _process
[handler(event) for handler in self._handlers[event.type]]
File "C:\veighna_studio\lib\site-packages\vnpy\event\engine.py", line 73, in <listcomp>
[handler(event) for handler in self._handlers[event.type]]
RuntimeError: Internal C++ object (BacktesterManager) already deleted.

快捷方式启动报错为:
Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 276, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\ui\widget.py", line 56, in init
self.init_strategy_settings()
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\ui\widget.py", line 65, in init_strategy_settings
setting: dict = self.backtester_engine.get_default_setting(class_name)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 264, in get_default_setting
return strategy_class.get_class_parameters()
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\template.py", line 59, in get_class_parameters
class_parameters[name] = getattr(cls, name)
AttributeError: type object 'DemoStrategy' has no attribute 'fast_windowslow_window'

Member
avatar
加入于:
帖子: 4544
声望: 276

参数定义中间是不是没加逗号分隔

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

description

没。。不是跑策略时候报错,是点击回测模块就报错了

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

...不好意思自己弄错了 已经解决了

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】