W:=(C-MA(C,30))/MA(C,30)*100;W2:=W<REF(W,1);
W1:=crOSS(0,(C-MA(C,5))/MA(C,5)*100);
W3:=MA(C,10)>REF(MA(C,10),1);W8:=C>REF(C,3);
W4:=FILTER(W1 AND W2 AND W3,10);
W5:=(2*CLOSE+HIGH+LOW)/4;W7:=SMA(C,6.5,1);
W6:=MA(EMA((W5-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5),1);
Q:=REF(W4,2) AND CROSS(C,EMA(CLOSE,5)) AND W8;
Q1:=W6>REF(W6,1) AND REF(W6,1)<REF(W6,2);
Q2:=W7>REF(W7,1) AND REF(W7,1)<REF(W7,2);
XG:Q AND Q1 AND Q2;