初始化策略没有问题,启动策略后报错:
1234: 触发异常已停止
Traceback (most recent call last):
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 446, in call_strategy_func
func(params)
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\strategies\MyTest_strategy.py", line 42, in on_tick
self.buy(tick.last_price + 1, self.fixed_size)
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\template.py", line 142, in buy
return self.send_order(CtaOrderType.BUY, price, volume, stop)
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\template.py", line 174, in send_order
self, order_type, price, volume, stop
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 370, in send_order
return self.send_limit_order(strategy, order_type, price, volume)
File "D:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 278, in send_limit_order
volume=volume,
TypeError: init() got an unexpected keyword argument 'dierction'
请各位大佬帮忙看看 感激不尽^^
code text here
```