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

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 276, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\ui\widget.py", line 41, in init
self.cta_engine.init_engine()
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 118, in init_engine
self.load_strategy_data()
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 835, in load_strategy_data
self.strategy_data = load_json(self.data_filename)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\utility.py", line 105, in load_json
data: dict = json.load(f)
File "C:\veighna_studio\lib\json__init.py", line 293, in load
return loads(fp.read(),
File "C:\veighna_studio\lib\json\
init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\veighna_studio\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\veighna_studio\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 54 column 25 (char 1245)

Member
avatar
加入于:
帖子: 726
声望: 38

策略缓存的json文件被破坏了,删除下c:\users\administrator.vntrader\cta_strategy_开头的几个文件,然后重启试试

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

沪公网安备 31011502017034号

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