RSV:=(C-LLV (LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:K*3-D*2;
IF(K D,K,D),COLORRED;
收获:=K 80 AND REF(K,1) 80 AND REF(K,2)
建仓:=K 20 AND REF(K,1) 20 AND REF(K,2)
清仓:=K 80 AND REF(K,1)
加仓:=K 20 AND REF(K,1)
STICKLINE(收获,110,120,2,0),COLORYELLOW;
STICKLINE(建仓,-10,0,2,0),COLORGREEN;
STICKLINE(清仓,110,120,2,0),COLORMAGENTA;
STICKLINE(加仓,-10,0,2,0),COLORRED;
KD乖离:(K-D),NODRAW;
STICKLINE(KD乖离 0,K,D,1,0),COLORRED;