自己写的策略,在组合策略策略模块运行时报错如下,有哪位知道如何解决吗? 在utility的PortfolioBarGenerator类中的确没有初始化定义self.interval
wefa: 触发异常已停止
Traceback (most recent call last):
File "D:\vnpy-2.7.0\vnpy\app\portfolio_strategy\engine.py", line 331, in call_strategy_func
func(params)
File "D:\vnpy-2.7.0\vnpy\app\portfolio_strategy\strategies\trend__strategy.py", line 104, in on_tick
self.pbg.update_tick(tick)
File "D:\vnpy-2.7.0\vnpy\app\portfolio_strategy\utility.py", line 36, in update_tick
interval=self.interval,
AttributeError: 'PortfolioBarGenerator' object has no attribute 'interval'