C1:=BARSLAST(REF(CROSS(“MACD.DEA”,“MACD.DIF”),1));
D1:=REF(C,C1+1)《C AND REF(“MACD.DIF”,C1+1)》“MACD.DIF” AND CROSS(“MACD.DEA”,“MACD.DIF”);
DRAWTEXT(D1》0,H+0.16,‘M頂背離’),COLOR00FF00;
C2:=BARSLAST(REF(CROSS(“KDJ.D”,“KDJ.K”),1));
D2:=REF(C,C2+1)《C AND REF(“KDJ.K”,C2+1)》“KDJ.K” AND CROSS(“KDJ.D”,“KDJ.K”);
DRAWTEXT(D2》0,H+0.08,‘K頂背離’),COLORFFFFCC;
C3:=BARSLAST(REF(CROSS(“RSI.RSI2”,“RSI.RSI1”),1));
D3:=REF(C,C3+1)《C AND REF(“RSI.RSI1”,C3+1)》“RSI.RSI1” AND CROSS(“RSI.RSI2”,“RSI.RSI1”);
DRAWTEXT(D3》0,H+0.04,‘R頂背離’),COLORFF9900;
(南方財富網(wǎng)SOUTHMONEY.COM)