P1:=5;
P2:=4;
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
K:=EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2);
D:=EMA(0.667*REF(K,1)+0.333*K,2);
XG:K<=25 AND crOSS(K,D);
P1:=5;
P2:=4;
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
K:=EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2);
D:=EMA(0.667*REF(K,1)+0.333*K,2);
XG:K<=25 AND crOSS(K,D);