MA1:=MA(CLOSE,3);
MA2:=MA(CLOSE,25);
MA3:=MA(CLOSE,60);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XG:crOSS(J,D) AND CROSS(J,K) AND J<20 AND MA2>MA3 AND MA1<MA2 AND CCI<-80;