Var0:=(C-ref(C,3))/ma(C,21);
Var1:=MA((C-ref(C,3))/C,7);
Var2:=REF(H,1)*1.1;
Var3:=H*1.1;
Var4:=(Var3*VOL+Var2*(CAPITAL-VOL))/CAPITAL;
Var5:=REF(LOW,1)*0.9;
Var6:=LOW*0.9;
Var7:=(Var6*VOL+Var5*(CAPITAL-VOL))/CAPITAL;
Var8:=EMA(Var7,34);
Var9:=EMA(Var4,34);
VarA:=Var9-2;
VarB:=IF(C<1.049*Var8,VarA,Var9);
VarB=VarA and cross(Var0,Var1) ;