0
Follow
1
Followers
代码
var records = exchanges[0].GetRecords(PERIOD_H1);
Log("第一根k线数据为,Time:", _D(records[0].Time), "Open:", records[0].Open, "High:", records[0].High)
Log("第二根k线数据为,Time:", _D(records[1].Time),"Close:", records[1].Close)
Log("当前K线(最新),Time:", _D(records[records.length-1].Time), "Open:", records[records.length-1].Open, "High:", records[records.length-1].High)
Log("上一根K线,Time:", _D(records[records.length-2].Time),"Close:", records[1].Close)
f 
返回结果如上
请问 时间也不是最新时间啊,并且 数据和 TV上的K线数据不一致啊。。。TV数据源已经连接OKEX
谢谢
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 (5)
- 1


