RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1),COLORWHITE; D:SMA(K,3,1),COLORYELLOW; J:3*K-2*D,COLORYELLOW; 金叉:IF(SUM(CROSS(K,D)AND D<23,15)>=2 AND CROSS(K,D)AND C>O,10,0),COLORFFFF00; 加仓:IF(J>D,J,DRAWNULL),COLORRED,LINETHICK1; 减仓:IF(J<D,J,DRAWNULL),COLORGREEN,LINETHICK1; DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50)); STICKLINE((J>100 AND K>=60),100,J,1,1),COLORYELLOW; STICKLINE(K>92,100,K,1,1),COLORGREEN; STICKLINE((J<=0 AND K<=30),0,J,1,1),COLORYELLOW; STICKLINE(K<=9,0,K,1,1),COLORRED; A1:=BARSLAST(REF(CROSS(J,K),1)); 底背:=REF(CLOSE,A1+1)>CLOSE AND J>REF(J,A1+1) AND CROSS(J,K); 底:DRAWLINE(A1=0,D,底背,D,0),COLORRED,POINTDOT; DRAWTEXT(底背,D,'底B'),COLORRED; A2:=BARSLAST(REF(CROSS(K,J),1)); 顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(J,A2+1)>J AND CROSS(K,J); 顶:DRAWLINE(A2=0,D,顶背,D,0),COLORBLUE,POINTDOT; DRAWTEXT(顶背,D,'顶B'),COLORBLUE; 压力线:DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1),COLORBLUE; DRAWTEXT(CURRBARSCOUNT=60,60,'弱势建仓莫着急'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=55,45,'看到红了找背离'),COLORRED; DRAWTEXT(CURRBARSCOUNT=50,30,'强势变黄不要卖'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=45,15,'黄走绿来才走开'),COLORBLUE;
|