DRAWTEXT(B3》0,L-0.18,‘◆R’),COLOR0000FF;{RSI底背離}
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;{MACD頂背離}
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;{KDJ頂背離}
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;{RSI頂背離};
(南方財富網(wǎng)SOUTHMONEY.COM)