T1:=IF((DATE<=1341231),1,0);
M5:=EMA(CLOSE,5);
M10:=EMA(M5,10);
VAR1:=EMA(M10,120);
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
买进2:IF(((COUNT((CLOSE0.6) AND (vol>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0);