vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 20
声望: 0

"燃油1909: 触发异常已停止
Traceback (most recent call last):
File ""D:\GP\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py"", line 560, in call_strategy_func
func()
File ""D:\GP\vnstudio\lib\site-packages\vnpy\app\cta_strategy\strategies\turtle_signal_strategy.py"", line 51, in on_init
self.load_bar(20)
File ""D:\GP\vnstudio\lib\site-packages\vnpy\app\cta_strategy\template.py"", line 229, in load_bar
self.cta_engine.load_bar(self.vt_symbol, days, interval, callback)
File ""D:\GP\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py"", line 511, in load_bar
symbol, exchange = extract_vt_symbol(vt_symbol)
File ""D:\GP\vnstudio\lib\site-packages\vnpy\trader\utility.py"", line 20, in extract_vt_symbol
symbol, exchange_str = vt_symbol.split(""."")
ValueError: not enough values to unpack (expected 2, got 1)
"

Member
avatar
加入于:
帖子: 58
声望: 7

vt_symbol = "fu1910.SHFE"

Member
avatar
加入于:
帖子: 20
声望: 0

谢谢

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