N:=20;N1:=7;N2:=69;
M3:=ema(CLOSE,3);
M8:=Ema(CLOSE,8);
M13:=EMA(M8,13);
M62:=EMA(M8,62);
VAR1:=EMA(M13,62);
M81:=EMA(M62,81);
M144:=EMA(VAR1,144);
M250:=EMA(VAR1,250);
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);
VARB:=(2*CLOSE+HIGH+LOW)/4;
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);
VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);
买进:IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND vol>=1.5*MA(VOL,5) AND COUNT(VARE>=VARF,3) AND REF(LOW,1)=LLV(LOW,120),1,0);