L40:=MA(C,40);
L60:=MA(C,60);
VAR1:=CLOSE/L40*100<78;
VAR2:=CLOSE/L60*100<74;
VAR3:=HIGH>(LOW*1.051);
VAR4:=VAR3 AND COUNT(VAR3,5)>1;
VAR5:=CLOSE/HHV(HIGH,BARSCOUNT(CLOSE>0))*100;
DJH:=IF((REF(C,13)-CLOSE)/REF(C,13)*100*VAR2>15
AND SUM(VOL/CAPITAL,13)*100<18 AND VOL/CAPITAL*100<2.5
AND (REF(C,1)-CLOSE)/REF(C,1)*100<8 AND VAR5<=50 AND VAR4
AND (VAR1 OR VAR2),1,0);
XG:FILTER(DJH,6);