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

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\ui\widget.py", line 124, in load_data
datetime_format
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 137, in load
datetime_format=datetime_format,
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 79, in load_by_handle
dt = datetime.strptime(item[datetime_head], datetime_format)
File "C:\vnstudio\lib_strptime.py", line 577, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "C:\vnstudio\lib_strptime.py", line 359, in _strptime
(data_string, format))
ValueError: time data '2010/4/19 9:20' does not match format '%Y-%m-%d %H:%M:%S'。。。。怎么下载导入数据啊

Administrator
avatar
加入于:
帖子: 2146
声望: 99

CsvLoader加载数据时,对话框底部的数据格式改为

%Y/%m/%d %H:%M
Member
avatar
加入于:
帖子: 14
声望: 0

谢谢。。。。请问下我导入的是5min的。。。回测选项是1min,day,hour,,,怎么办呢

Administrator
avatar
加入于:
帖子: 2146
声望: 99

选你导入进去的那个数据库了,可以正常运行。但是不建议这么做,还是用1分钟数据比较好

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

导入1min数据后。。。点历史回测一直不出来回测结果是怎么回事

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