通达信【SMI】STOCHASTIC MOMENTUM INDEX

[复制链接]
查看43 | 回复0 | 2022-7-24 07:40:37 | 显示全部楼层 |阅读模式

{STOCHASTIC MOMENTUM INDEX W. KASE FILTER 李季峰改编}
PK:=100*(EMA(EMA(C-(0.5*(HHV(H,13)+LLV(L,13))),25),2)/
(0.5*EMA(EMA(HHV(H,13)-LLV(L,13),25),2)));
PER1:=30;
MN:=SMA(PK,PER1,1);
SD:=STD(PK,PER1);
VAL1:=IF(MN+(1.33*SD)>2.08,MN+(1.33*SD),2.08);
VAL2:=IF(MN-(1.33*SD)<-1.92,MN-(1.33*SD),-1.92);
LN1:IF(REF(PK,1)>=0 AND PK>0,VAL1,IF(REF(PK,1)<=0 AND
PK<0,VAL2,0));
STICKLINE(PK<REF(PK,1),PK,0,0,0),COLORGREEN;
STICKLINE(PK>REF(PK,1),PK,0,0,0),COLORRED;
SIGNAL:SMA(PK,5,1);

10155329.jpg

10155329.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则