通达信综合乖离指标公式

通达信实用的抄底指标公式

通达信综合乖离指标公式:

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;

通达信适合学缠的MACD指标公式