DIF:=EMA(CLOSE,5)-EMA(CLOSE,10);
DEA:=EMA(DIF,5);
macd:=(DIF-DEA)*2*60;
MacD12:=REF(MACD/2,BArslAST(MACD=HHV(MACD,12)));
MACD50:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,50)));
大行情:NOT(REF(MACD12,1)=REF(MACD50,1)) AND MACD12=MACD50;
DIF:=EMA(CLOSE,5)-EMA(CLOSE,10);
DEA:=EMA(DIF,5);
macd:=(DIF-DEA)*2*60;
MacD12:=REF(MACD/2,BArslAST(MACD=HHV(MACD,12)));
MACD50:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,50)));
大行情:NOT(REF(MACD12,1)=REF(MACD50,1)) AND MACD12=MACD50;