R:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
BD:=SMA(R,2,1);
bs:=SMA(BD,2,1);
J1:=3*BD-2*BS;
RSV:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
B:=SMA(RSV,3,1),LINETHICK2;
B1:=SMA(B,3,1),LINETHICK2;
J:=3*B-2*B1,COLORD2FFFF,LINETHICK2;
XG:crOSS(B<20 AND J>REF(J,1) AND REF(BD<20,1),0.5);