DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27); DEA:=EMA(DIFF,9); macd:=2*(DIFF-DEA); crOSS(DIFF,DEA) AND DIFF<-0.1;