DIF:=EMA(CLOSE,10)-EMA(CLOSE,30); DEA:=EMA(DIF,2); RG:=10*(DIF-DEA); MA5:=MA(C,5); MA10:=MA(C,10); CROSS(MA5,MA10) AND RG>REF(RG,1);