通达信综合乖离指标公式
2020/8/23 18:40:19
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
A1:=EMA(DIFF,5)*100;
A2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
动能A:=A2;
动能B:=A1;
DRAWBAND(动能B<动能A,RGB(180,50,0),动能B>动能A,RGB(0,50,180));
STICKLINE(A2>0 AND A2>=REF(A2,1),A2,0,3,0),COLOR0000F2;
STICKLINE(A2>0 AND A2<REF(A2,1),A2,0,3,1),COLOR0000F2;
STICKLINE(A2<0 AND A2<REF(A2,1),A2,0,3,0),COLOR008000;
STICKLINE(A2<0 AND A2>=REF(A2,1),A2,0,3,1),COLOR008000;
持币:动能A<动能B,COLORFFFFFF;
持股:动能A>动能B,COLORRED;
底部:STICKLINE(CROSS(BB,9),0,10,3,0),COLORFF00FF;
STICKLINE(CROSS(BB,9),10,20,3,0),COLOR00FFFF;
STICKLINE(CROSS(BB,9),20,30,3,0),COLORRED;
DRAWICON(底部,1,28);
DRAWTEXT(底部,-20,'底部'),COLOR00FFFF;
投 股票网 www. tou18.cn
股市公式下载推荐