九毛八公式指标 公式模块: 求各位老师帮忙编个macd顶背离选股公式,小弟先在这谢谢各位老师了! 解答如下: SHORT:=12; LONG:=26; M:=9; N:=55; DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA:EMA(DIFF,M); MacD:2*(%&&&&&%-DEA), COLORSTICK; 底背离:LLV(L,N)=L AND NOT(LLV(MACD,N)=MACD),COLORFF00FF,LINETHICK0; DRAWTEXT(底背离,MACD,'底背离'),COLOR00FFFF; 顶背离:HHV(H,N)=H AND NOT(HHV(MACD,N)=MACD),COLORFFFFFF,LINETHICK0; DRAWTEXT(顶背离,MACD,'顶背离'),COLOR00FF00;