以下是通达信背驰主图指标(无源码的请下载附件导入)
上轨:MA(REF(HHV(C,30),1),2),COLORLIRED,LINETHICK2;
下轨:MA(REF(LLV(C,30),1),2),COLORCD6C32,LINETHICK2;
QS:=IF(C>REF(C,1),(2*CLOSE+2*HIGH+OPEN+LOW)/6,(2*OPEN+2*LOW+CLOSE+HIGH)/6);
中轨:=SMA(C,3,1);
趋势: SMA(中轨,3,1),COLORCYAN;
短线:MA(SMA(QS,5,1),3),COLOR60A9B9,LINETHICK2;
中线:=MA(SMA(QS,21,1),8);
长线:MA(SMA(QS,60,1),11),POINTDOT,COLORFFFFFF,LINETHICK3;
IF(中线<REF(中线,1),中线,DRAWNULL),COLORFF0000,CROSSDOT,LINETHICK1;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
BIAS1 :=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
BIAS2 :=(CLOSE-MA(CLOSE,1))/MA(CLOSE,1)*100;
DRAWICON(CROSS(BIAS1,BIAS2),L,17);
825466803.jpg
|