摘要: 代码: //获取day日的移动平均值function getEMA(data,day){ var arr = []; arr.push(data[0]); for(var i = 1;i < data.length;i++){ var a = 2/(day + 1); //EMAtoday=α * 阅读全文
posted @ 2020-02-17 00:16 毛会懂 阅读(3189) 评论(0) 推荐(0) 编辑