RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;Y1:SMA(RSV1,3,1);Y2:SMA(Y1,6,1);STICKLINE(Y1>Y2,Y1,Y2,6/3,0),COLOR0000FF;STICKLINE(Y1<=Y2,Y1,Y2,6/3,0),COLORGREEN;STICKLINE((Y1>Y2 AND ABS(Y1-Y2)<ABS(REF(Y1,1)-REF(Y2,1))),Y1,Y2,9/3,0),COLORFFFF00;STICKLINE((Y1>Y2 AND ABS(Y1-Y2)<ABS(REF(Y1,1)-REF(Y2,1)) AND Y1>REF(Y1,1)),Y1,Y2,9/3,0),COLORBROWN;STICKLINE((Y1<Y2 AND ABS(Y1-Y2)<ABS(REF(Y1,1)-REF(Y2,1))),Y1,Y2,9/3,0),COLORLIRED;STICKLINE((Y1<Y2 AND ABS(Y1-Y2)<ABS(REF(Y1,1)-REF(Y2,1)) AND Y1<REF(Y1,1)),Y1,Y2,9/3,0),COLOR00FF00;RSV2:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;Y3:SMA(RSV2,5,1),COLORYELLOW,LINETHICK2;Y4:SMA(Y3,10,1),COLORLIBLUE,LINETHICK2;STICKLINE(Y3>Y4,Y3,Y4,1/3,0),COLORFF00FF;STICKLINE(Y3<=Y4,Y3,Y4,1/3,0),COLORBLUE;LC:=REF(CLOSE,1);TEMP1:=MAX(CLOSE-LC,0);TEMP2:=ABS(CLOSE-LC);A:SMA(TEMP1,10,1)/SMA(TEMP2,10,1)*100,COLORBLACK,LINETHICK2;底:18;中:50;顶:85;STICKLINE(A>中,A,中,2/3,0),COLORYELLOW;STICKLINE(A<中,A,中,2/3,0),COLORLIGRAY;金叉1:=CROSS(Y1,Y2);STICKLINE(金叉1,顶,中,1/3,0),COLORRED;死叉1:=CROSS(Y2,Y1);STICKLINE(死叉1,顶,中,1/3,0),COLORGREEN;金叉2:=CROSS(Y3,Y4);STICKLINE(金叉2,中,底,1/3,0),COLORFF00FF;死叉2:=CROSS(Y4,Y3);STICKLINE(死叉2,中,底,1/3,0),COLORBLUE;