N:=9;
M1:=3;
M2:=3;
M3:=2;
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:=SMA(FASTK,M2,1);
D:=SMA(K,M3,1);
XG:crOSS(K,D) AND K< 20 AND D< 20;
N:=9;
M1:=3;
M2:=3;
M3:=2;
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:=SMA(FASTK,M2,1);
D:=SMA(K,M3,1);
XG:crOSS(K,D) AND K< 20 AND D< 20;