VAR1:=vol>=REF(VOL,1)*1.91;
VAR2:=VOL>REF(HHV(VOL,100),1);
VAR3:=VAR1 OR VAR2;
VAR4:=C/REF(C,1)>1.095 AND C=H;
VAR5:=EMA(EMA(EMA(EMA(MA(MA(MA(SUM(MA(CLOSE,60)/1,1),1),1),1),5),5),12),13)*1.01;
VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR7:=bbi+3*STD(BBI,10);
VAR8:=BBI-3*STD(BBI,10);
VAR9:=L<=VAR6 AND C>=VAR6;
VAR10:=L<=VAR7 AND C>=VAR7;
VAR11:=L<=VAR8 AND C>=VAR8;
VAR12:=VAR9+VAR10+VAR11>=2;
VAR13:=LLV(LOW,21);
VAR14:=HHV(HIGH,21);
VAR15:=EMA((CLOSE-VAR13)/(VAR14-VAR13)*100,6);
VAR16:=EMA(0.667*REF(VAR15,1)+0.333*VAR15,2);
VAR17:=LONGcrOSS(VAR15,VAR16,0.1);
VAR18:=REF(VAR4,1) AND REF(VAR1,1) AND VAR1 AND Abs(C/REF(C,1)-1)<=0.06;
VAR19:=REF(COUNT(VAR18,20)=1,1);
VAR20:=BARSLAST(VAR18);
VAR21:=LLV(C,VAR20)>=(REF(C,VAR20+1)+REF(O,VAR20+1))/2 AND HHV(C,VAR20)<=REF(C,VAR20+1)*1.15;
VA1:=REF(COUNT(ABS(C/REF(C,1)-1)>0.05,VAR20)<1,1);
VA2:=COUNT(MA(C,5)>VAR5,VAR20)<=3;
XG:VA1 AND VA2 AND VAR19 AND VAR21 AND VAR3+VAR12+VAR17>=2;