Var1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<-30;
Var2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-27;
Var3:=Var1 AND Var2;
Var4:=Var1 AND Var2 AND COUNT(Var3,2)=1 AND DATE>940101 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));
Var5:=DMA(EMA(CLOSE,8),SUM(vol,9)/2.8/CAPITAL);
Var6:=(CLOSE-Var5)/Var5*100;
Var7:=REF(Var6,1)<-42 AND Var6>REF(Var6,1) AND REF(Var6,1)<REF(Var6,2) AND Var6-REF(Var6,1)>1.8;
Var4 OR Var7;