DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA),COLORRED;
MacD120:=REF(MACD/2,BArslAST(MACD=HHV(MACD,120))),COLORA67D3D,LINETHICK1;
MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORYELLOW,LINETHICK2;
大行情:NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;