trade_strategy icon indicating copy to clipboard operation
trade_strategy copied to clipboard

用backtrader实现一些交易策略的回测。

Results 3 trade_strategy issues
Sort by recently updated
recently updated
newest added

self.H = bt.ind.Highest(self.datas[0].high, period = self.p.T) self.L = bt.ind.Highest(self.datas[0].high, period = self.p.T)

请问 您跑的环境 Python版本是多少?我在win10, py 3.8.5的conda环境尝试运行出了些错误。dbg_print获取到的是一个timestamp的日期,做len处理抛exception了。是程序的bug吗?还是由于编译环境不同造成的问题?谢谢指教! ![image](https://user-images.githubusercontent.com/1082616/145936765-589c8806-a0da-4468-af3a-5aad694974fd.png)