Type/to search
0
Follow
0
Followers
Comment obtenir un tableau de prix au lieu d'un tableau d'enregistrements en Python
Help
Created 2019-07-10 15:23:46  
 1
 1685

J'ai vu un exemple où l'on peut obtenir un tableau de Record via exchange.GetRecords ((Period)). Mais je veux obtenir un tableau de prix, par exemple, un tableau d'ouverture des 20 dernières lignes de K, un tableau de fermeture des 20 dernières lignes de K, puis faire quelques calculs avec numpy sur cet tableau, comment faire ?

Related Recommendations
Comment
All comments (1)

    在API 文档中 https://www.fmz.com/api#talib库里面的函数指标

    import talib def main(): records = exchange.GetRecords() cci = talib.CCI(records.High, records.Low, records.Close, 14) # 14 这个参数 可以 缺省。 Log(cci)
    7 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)