Loading ...

GetRecords获取的长度为啥是101 EMA 是取数最后一个值吗

Author: teacherMa, Created: 2020-12-07 12:57:09, Updated: 2020-12-07 12:58:31

def main(): records = exchange.GetRecords(PERIOD_H1) Log(“K线根数”,len(records)) Log(“K线”,records) Log(“EMA144”,TA.EMA(records, 144)) Log(“EMA676”,TA.EMA(records, 676)) if records and len(records) > 676: TA.EMA(r, 676) TA.MACD(r, 144, 169, 12)


More

小草 回测K线的长度是逐渐累计的,其实是101