N:=80;M1:=3;M2:=3;M:=21;
RSV:=(HHV(H,N)-C)/(HHV(H,N)-LLV(L,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1),COLORCYAN;
RSV1:=((LLV(H,M)-C)/(LLV(H,M)-HHV(L,M)))*100;
K1:=SMA(RSV1,M,1),COLORRED;
XG:K<REF(K,1) AND K1>=REF(K1,1) AND K>80 AND REF(K1,1)<REF(K1,2) AND K1<45;