VAR1:=EMA(C,30)*1.09;
VAR2:=(HIGH+LOW+CLOSE)/3;
VAR3:=(VAR2-MA(VAR2,38))*1000/(15*AVEDEV(VAR2,38));
XG:REF(EVERY(C< VAR1,10) AND EVERY(MA(C,60)>MA(C,120),4),1) AND C>VAR1 AND MA(C,60)>MA(C,120) AND V/REF(V,1)>1.2 AND REF(C,1)/REF(C,2)< 1.08 AND REF(C,2)/REF(C,13)< 1.07 AND C>REF(HHV(H,30),1) AND CAPITAL< 20000000 AND MA(C,20)/MA(C,250)< 1.4 AND VAR3>140;