N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
BB:=MA("KDJ.J#WEEK"(9,M1,M2) ,5);
抄底:STICKLINE(CROSS(J,REF(J,1))AND BB-REF(BB,1)>0.2AND J<60 AND BB<50,38,0,3,0) ,COLORRED;
DRAWTEXT(IF(CROSS(J,REF(J,1))AND BB-REF(BB,1)>0.2AND J<60 AND BB<50 ,50,0),38,'抄底'),COLORWHITE ;
追击:STICKLINE(CROSS(BB,REF(BB,1))AND J-REF(J,1)>10 ,38,0,3,0) ,COLORRED;
DRAWTEXT(IF(CROSS(BB,REF(BB,1))AND J-REF(J,1)>10 ,50,0),38,'追击'),COLORWHITE;
上一篇:慎重地介绍一条线--主图动量线 下一篇:通达信秘密买点源码副图