DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);macd:=(DIF-DEA)*2;BUYY:=crOSS(DIF,DEA) AND MacD>0;上指:BUYY;