通达信【最强势能抄底】副图指标 配合乖离介入 源码
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
QTM1:=EMA(DIFF,5)*100;
QTM2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
动能A:=QTM2,COLOR00FFFF,LINETHICK2;
动能B:=QTM1,COLORFFFF00,LINETHICK2;
DRAWBAND(动能A,RGB(200,0,200),动能B,RGB(200,200,200));
STICKLINE(QTM2>0,0,QTM2,0.5,0),COLORRED;
STICKLINE(QTM2<0,0,QTM2,0.5,1),COLORGREEN;
QTMA:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
BB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
QTMA1:=STICKLINE(动能A<动能B,0,-3,2,0);
HWXBB1:=STICKLINE(动能A>动能B,0,3,2,0);
持币:QTMA1,COLOR00FF00;{www.goodgongshi.com}
持股:HWXBB1,COLORRED;
抄底:STICKLINE(CROSS(HWXBB,9),0,10,1.7,0),COLORFF00FF;
STICKLINE(CROSS(HWXBB,9),10,20,1.5,0),COLOR00FFFF;
STICKLINE(CROSS(HWXBB,9),20,30,1,0),COLORRED;
DRAWTEXT(CROSS(HWXBB,9),30,'抄底'),COLOR00FFFF;
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:MA(BIAS,3),COLORFFFF00,LINETHICK0;
底1:IF(乖离<-18,12,0),COLORFF00FF,LINETHICK2;
底2:IF(乖离<-12,10,0), COLOR0000CC,LINETHICK2;
底3:IF(乖离<-6,8,0),COLORFFFF00,LINETHICK2;
底4:IF(乖离<0,6,0),COLOR00FFFF,LINETHICK2;