DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
TJ:=V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND C>REF(C,1) AND EF(C,1)>REF(C,2) AND EF(C,2)>REF(C,3) ;
TJ1:=CROSS(DIF,DEA) AND TJ;
TJ2:=REF(CROSS(DIF,DEA),1) AND TJ;
TJ3:=REF(CROSS(DIF,DEA),2) AND TJ;
XG:TJ1 OR TJ2 OR TJ3;