TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
VAR2:=CLOSE*VOL;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,15);
VAR1:=1.06*VAR3;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
xg:REF(CROSS(C,VAR1) OR CROSS(C,BBI),1)
AND REF(COUNT(REF((C-REF(C,1))/REF(C,1)*100>9.9,1),13)=0,1)
AND BARSLAST(CCI<N)<=13 AND REF(C/REF(C,1)>1.096 AND C=H,1)
AND O>REF(C,1)*1.015 AND O<REF(C,1)*1.065 AND DYNAINFO(8)<>0;