DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); XG:CROSS(REF(DEA,1),REF(DIFF,1)) AND CROSS(DIFF,DEA);