強烈建議增加底背離、頂背離的搜索函數,這兩個極為有用啊,論壇里好多人問怎么搜索頂背離,底背離的帖子,都沒有答案
您好,以下公式僅作為參考:
SHORT:=12;
LONG:=26;
M:=9;
N:=55;
DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
MACD:2*(DIFF-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;