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

Traceback (most recent call last):
File "C:\veighna_studio\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\veighna_studio\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 177, in run_backtesting
engine.add_strategy(
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 144, in add_strategy
self.strategy = strategy_class(
File "C:\Users\12594\strategies\测试回测.py", line 30, in init
super().init(cta_engine,strategy_name,vt_symbol,setting)
NameError: name 'strategy_name' is not defined

Member
avatar
加入于:
帖子: 19
声望: 1

Traceback (most recent call last):
File "C:\veighna_studio\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\veighna_studio\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 177, in run_backtesting
engine.add_strategy(
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 144, in add_strategy
self.strategy = strategy_class(
File "C:\Users\12594\strategies\测试回测.py", line 32, in init
super().init(cta_engine,strategy_name,vt_symbol,setting)
NameError: name 'strategy_name' is not defined

Member
avatar
加入于:
帖子: 19
声望: 1

已纠正,直接复制的在自带策略的init后面的参数。

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

沪公网安备 31011502017034号

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