一条正弦加权移动均线
它有两个参数:
- Period - 计算周期
- Applied price - 用于计算的价格类型
计算:
SineWMA[i]=Sum/Weight, 其中 Sum=Price[i-N+1]*sin(PI*(N)/(N+1))+Price[i-N+2]*sin(PI*(N-1)/(N+1))+…+Price[i]*sin(PI*1/(N+1)) Weight= sin(PI*(N)/(N+1))+ sin(PI*(N-1)/(N+1))+…+ sin(PI*1/(N+1)).
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/20339