通达信综合乖离指标(源码)
2015-01-26 22:55:00来源:本站整理浏览:318
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指标(源码)
- 下一篇公式:通达信紫钻战法主图指标(源码)