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)
小草 回测K线的长度是逐渐累计的,其实是101