14:27:36 Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 225, in run_backtesting
self.callback(data)
File "C:\Users\Administrator\strategies\测试.py", line 138, in on_bar
am.update_bar(bar)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\utility.py", line 483, in update_bar
self.close_array[-1] = bar.close_price
AttributeError: 'TickData' object has no attribute 'close_price'
14:27:36 开始计算逐日盯市盈亏
14:27:36 成交记录为空,无法计算
14:27:36 开始计算策略统计指标
14:27:36 策略统计指标计算完成
有写了推送tick合成
# K线合成器:从Tick合成分钟K线用
self.bg = BarGenerator(self.on_bar)
self.am = ArrayManager()#创建容器
self.bg.update_tick(tick)