我无法导入 zipline.transforms 模块
>>> from zipline.transforms import batch_transform
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'zipline.transforms'
免责声明:我目前是 Zipline 的维护者。
我猜您看到此错误的原因是因为该特定模块不久前被删除(假设您使用的是 zipline 1.0.0 或更高版本)。如果你想做类似的事情transforms
你需要打电话data.history()
获取您的定价数据,并调用 numpy/pandas 函数,例如.avg()
or .std()
,或使用talib
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)