Newcomer's Question. GetRecords obtained K-line data and the chart of the retest and the actual data are inconsistent.

Author: jeffreyhsu, Created: 2017-07-09 18:15:00, Updated: 2017-07-09 18:17:43

使用talib.GetRecords获取历史k线数据,发现回测时获得的结果和绘制的图表以及同期的真实K线指标三者都不一样

records = exchange.GetRecords(PERIOD_H1)
Log('records:', records[-1])

The settings of the retest, the option is Okcoin cash新人问题。GetRecords获得的K线数据和回测的图表以及真实数据都不一致

Graphs drawn during the review:新人问题。GetRecords获得的K线数据和回测的图表以及真实数据都不一致

The logs printed the last entry, dated July 9 at 0:00.新人问题。GetRecords获得的K线数据和回测的图表以及真实数据都不一致

The real history of Okcoin:新人问题。GetRecords获得的K线数据和回测的图表以及真实数据都不一致

And if you look at the graph, all three of them have very different data, and the volume of transactions is very different, and log is 0.0827272727272727273 and how is this possible?

Please tell me what the reason is, thank you.


More

Inventors quantify - small dreamsrecords[-1] is the last column of the K-line data. The data changes over time, so the result is an unfinished bar. talib.GetRecords determines whether this can be accessed to K-line data >_