RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趨勢J1:3*K-2*D,COLORRED;
趨勢J2:EMA(K,3),LINETHICK1;
IF(趨勢J1>=REF(趨勢J1,1),趨勢J1,DRAWNULL),COLORRED,LINETHICK2;
IF(趨勢J1< REF(趨勢J1,1),趨勢J1,DRAWNULL),COLORBLUE,LINETHICK2;
Bbias := (CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
搶反彈:= IF(crOSS(K,D) AND bbiAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;
DRAWICON(搶反彈=80,趨勢J2-0.005,1);
底部動態(tài):EMA(IF(L<= LLV(L,40),SMA(Abs(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,COLORRED,LINETHICK2;
DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1),COLOR00FF00;
V1:=AMOUNT/vol/100;
V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
V3:=SUM(AMOUNT,7)/V1/100;
V4:=DMA(V2,VOL/V3);
V5:=(CLOSE-V4)/V4*100;
V6:=MA(V5,20)+STD(V5,20);
BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
STICKLINE(REF(BIAS21,1)>=5 AND CROSS(V6,V5) AND REF('kdj.J'(34,3,3),1)>80 AND REF('kdJ.J'(9,3,3),1)>80,90,85,5,0),COLOR00FF00;