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

Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 192, in run_backtesting
engine.run_backtesting()
File "D:\veighna_studio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 219, in run_backtesting
self.strategy.on_init()
File "C:\Users\73175\strategies\Trendline_strategy.py", line 49, in on_init
self.load_bar(10)
File "D:\veighna_studio\lib\site-packages\vnpy_ctastrategy\template.py", line 315, in load_bar
callback(bar)
File "C:\Users\73175\strategies\Trendline_strategy.py", line 77, in on_bar
self.bg15.update_bar(bar)
File "D:\veighna_studio\lib\site-packages\vnpy\trader\utility.py", line 277, in update_bar
self.update_bar_minute_window(bar)
File "D:\veighna_studio\lib\site-packages\vnpy\trader\utility.py", line 316, in update_bar_minute_window
self.on_window_bar(self.window_bar)
File "C:\Users\73175\strategies\Trendline_strategy.py", line 124, in on_15min_bar
var2 = numpy.flipud(var1)
File "<__array_function__ internals>", line 180, in flipud
File "D:\veighna_studio\lib\site-packages\numpy\lib\twodim_base.py", line 154, in flipud
raise ValueError("Input must be >= 1-d.")
ValueError: Input must be >= 1-d.

description

Member
avatar
加入于:
帖子: 1638
声望: 119

这个报错看输出内容应该和数据无关,建议查下var1这个数组的长度是否少了

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

沪公网安备 31011502017034号

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