变速均线指标 (源码)
2012-12-24 09:53:00来源:本站整理浏览:288
T:=20;N:=2;M:=30;
DIRECTION:=CLOSE-REF(CLOSE,T);
VOLATILITY:=SUM(ABS(CLOSE-REF(CLOSE,1)),T);
ER:=SUM(ABS(DIRECTION/VOLATILITY),1);
FastC:=2/(N+1);
SlowC:=2/(M+1);
Smooth:=ER*(FastC-SlowC)+slowC;
SE:=Smooth*Smooth;
YY:=REF(Close,1)+SE*(Close-Ref(Close,1));
AA:=IF(SUM(1,0)=T+1,YY,0);
BB:=BARSLAST(AA>0);
CC:=REF(Close,BB);
AMA:REF(CC,1)+SE*(Close-REF(CC,1));
- 上一篇公式:云端超跌共振指标 (源码)
- 下一篇公式:跟庄吃肉指标 (源码)