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);
买进1:IF(((COUNT((CLOSE0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0);