0
Follow
1
Followers
var ma = TA.MA(records, 15,'high')
Log(ma)
ma = TA.MA(records, 15)
Log(ma)
Então, por que esses dois MAs retornam os mesmos valores, e não deveria o primeiro ser a média do preço máximo e o segundo a média do preço de fechamento?
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 (8)
var records = exchange.GetRecords(PERIOD_H1)
Log("第一根k线数据为,Time:", records[0].Time, "Open:", records[0].Open, "High:", records[0].High)
Log("第二根k线数据为,Time:", records[1].Time ,"Close:", records[1].Close)
Log("当前K线(最新)", records[records.length-1], "上一根K线", records[records.length-2])
records是这么求得 怎么改呢?
5 years ago
- 1
