0
Follow
0
Followers
我在回测配置里设置时间为2020-12-15到2020-12-17这个范围,想获取期间的KDJ值。
当我使用代码
records = _C(exchange.GetRecords)
Log(records)
但是获取到的结果是从2020-12-12 22:00:00到2020-12-15 00:00:00,下标是101,设定的开始时间成了返回结果的结束时间。
我是新手,不知是不是用错了函数,我只是想获取设定时间范围内的KDJ和RSI值来进行策略判断,求大神帮助,谢谢!
Related Recommendations
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (1)
结束时间是当前策略运行到的时间,你可以试试下面的,等一分钟log一次
while True:
records = _C(exchange.GetRecords)
Log(records)
Sleep(60*1000)
6 years ago
- 1