Var1:=COST(10)*0;
Var2:=(EMA(CLOSE,4)+EMA(CLOSE,8)+EMA(CLOSE,16))/3;
Var3:=(EMA(CLOSE,8.8)+EMA(CLOSE,17.6)+EMA(CLOSE,35.2))/3;
Var4:=(EMA(CLOSE,22.4)+EMA(CLOSE,44.8)+EMA(CLOSE,89.6))/3;
Var5:=(Var2+Var3+Var4)/3;
Var6:=EMA(Var5,10);
Var7:=crOSS(CLOSE,Var6);
Var8:=CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND vol>REF(VOL,1);
Var9:=IF(Var2>Var3,Var2,Var3);
VarA:=IF(Var3>Var4,Var3,Var4);
VarB:=IF(Var9>VarA,Var9,VarA);
VarC:=IF(Var2<Var3,Var2,Var3);
VarD:=IF(Var3<Var4,Var3,Var4);
VarE:=IF(VarC<VarD,VarC,VarD);
VarF:=(VarB-VarE)/MA(CLOSE,4)<=0.05;
Var10:=COUNT(Var7,10)=1 AND Var8 AND VarF;
ENTERLONG: Var10 AND REF(BArslAST(Var10),1)>8 OR BARSSINCE(Var10)=0;