VAR1:=EMA(CLOSE,12)-EMA(CLOSE,150);VAR2:=EMA(VAR1,9);VAR3:=(VAR1-VAR2)*2;VAR4:=VAR3<0 AND VAR3>REF(VAR3,1);VAR5:=REF(VAR3,1)VAR6:=REF(VAR3,2)VAR7:=REF(VAR3,3)XG:VAR6 AND VAR7 AND VAR4 AND VAR5;