Type/to search
0
Follow
1
Followers
Exchange.GetRecords erhält Datenproblem
Help
Created 2021-12-05 13:46:31  
 5
 1147

Der Code
var records = exchanges[0].GetRecords(PERIOD_H1);
Log ((("Die erste k-Zeile ist, Time:", _D(records[0].Time), "Open:", records[0].Open, "High:", records[0].High)
Log ((("Die zweite k-Liniendaten sind, Time:", _D(records[1].Time),"Close:", records[1].Close)
Log: "Aktuelle K-Linie: "Aktualisiert", Time: "Aktualisiert"_D(records[records.length-1].Time), "Open:", records[records.length-1].Open, "High:", records[records.length-1].High)
Log: "Die letzte K-Leitung, Zeit:",_D(records[records.length-2].Time),"Close:", records[1].Close)
f img
Rückgabe wie folgt:
Bitte, die Uhrzeit ist nicht aktuell, und die Daten stimmen nicht mit den Daten der K-Leitung auf dem Fernseher überein.

Ich danke Ihnen.

Related Recommendations
Comment
All comments (5)

    时间是差8个小时 搞明白了。。。。。。。。。。
    数据不一致是什么原因呢?

    5 years ago

    您好,请给出完整的问题场景。目前给出的信息,看不出任何问题。

    5 years ago

    img img
    梦总 上一根k线 代码读出来的close 是 4168 ,TV上 上一根K线的收盘价是4198.33;;读的数据不一样哈。

    5 years ago

    你这个对比,TV和FMZ上都是获取的OKEX的数据么?时间有差别,差别8个小时,可能是时间戳换算时根据时区设置不同换算的不同而已。你对比时间,不要对比可读时间,对比时间戳,或者你在FMZ上打印时间戳,然后换算成UTC时间, 再和TV上的某根BAR的时间对比。

    5 years ago

    收到 我看下 学习了

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)