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

运行时报错,
File "C:\ProgramData\Anaconda3\lib\site-packages\vnpy\app\cta_strategy\backtesting.py", line 225, in load_data
total_delta = self.end - self.start
TypeError: unsupported operand type(s) for -: 'str' and 'str'

指向如下代码,文件backtesting.py line:225,下边的最后一行

    # Load 30 days of data each time and allow for progress update
    progress_delta = timedelta(days=30)
    total_delta = self.end - self.start

跟python的小版本有关系?

Administrator
avatar
加入于:
帖子: 1672
声望: 80

这是两个字段类型错误的问题,请更新下最新的VNStudio-2.0.5试试吧

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