Var0:=Sma((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)),3,1);
Var1:=SMA(Var0,3,1)*100;
Var2:=MA(Var1,7);
XG:IF(Var2>REF(Var2, 1) and REF(Var2, 1)<REF(Var2, 2) and ref(c,BArslAST(REF(Var2, 1)>REF(Var2, 2) ))>1.4*c,1,0);
Var0:=Sma((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)),3,1);
Var1:=SMA(Var0,3,1)*100;
Var2:=MA(Var1,7);
XG:IF(Var2>REF(Var2, 1) and REF(Var2, 1)<REF(Var2, 2) and ref(c,BArslAST(REF(Var2, 1)>REF(Var2, 2) ))>1.4*c,1,0);