Var1:=1;
Var2:=REF(CLOSE,1);
Var3:=SMA(MAX(CLOSE-Var2,0),6,1)/SMA(ABS(CLOSE-Var2),6,1)*100;
Var4:=1.1*CLOSE;
Var5:=0.9*CLOSE;
Var6:=100*(WINNER(Var4)-WINNER(Var5));
Var7:=EMA(100-Var6,1)*Var1;
Var8:=Var7;
Var9:=EMA(Var7,3);
VarA:=MA(Var7,9);
VarB:=VarA;
VarC:=MA(VarA,9);
VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VarE:=EMA(VarD,4)*Var1;
VarF:=MA(VarD,9);
Var10:=VarF;
Var11:=MA(VarF,9);
XZ1: (Var9+VarE)/2;
XZ2: (VarB+Var10)/2;
XZ3: (VarC+Var11)/2;