DIF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIF,9);
macd : 2*(DIF-DEA),COLORSTICK;
MacD1: 2*(DIF-DEA);
MACD2:MA(MACD1,3);
压力:MA(REF(HHV(MACD,20),1),2),COLORGRAY;
支撑:MA(REF(LLV(MACD ,10),1),2),COLORGRAY;
{ _最新股票指标公式}
抄底:=crOSS(MACD,支撑)*6,COLORRED,LINETHICK1;
DRAWTEXT(CROSS(MACD,支撑),支撑,'B'),COLORRED;
追涨:=CROSS(MACD,0)*6,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(MACD,0),0,'B'),COLORMAGENTA;
卖点:=CROSS(压力,MACD),COLORGREEN,LINETHICK1;
DRAWTEXT(卖点,压力,'S'),COLORGREEN;