IF(DD,分水嶺,DRAWNULL),COLOR00FF00,LINETHICK2;
IF(S,分水嶺,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4;
DRAWICON(CROSS(分水嶺,操作線),分水嶺-0.1,1);{買入紅箭頭}
A1:=BARSLAST(REF(CROSS(“MACD.DIF”,“MACD.DEA”),1));
B1:=REF(C,A1+1)》C AND REF(“MACD.DIF”,A1+1)《“MACD.DIF” AND CROSS(“MACD.DIF”,“MACD.DEA”);
DRAWTEXT(B1》0,L-0.02,‘★M’),COLOR00FFFF;{MACD底背離}
A2:=BARSLAST(REF(CROSS(“KDJ.K”,“KDJ.D”),1));
B2:=REF(C,A2+1)》C AND REF(“KDJ.K”,A2+1)《“KDJ.K” AND CROSS(“KDJ.K”,“KDJ.D”);
DRAWTEXT(B2,L-0.10,‘◎K’),COLORFF00FF;{KDJ底背離}
A3:=BARSLAST(REF(CROSS(“RSI.RSI1”,“RSI.RSI2”),1));
B3:=REF(C,A3+1)》C AND REF(“RSI.RSI1”,A3+1)《“RSI.RSI1” AND CROSS(“RSI.RSI1”,“RSI.RSI2”);
(南方財富網(wǎng)SOUTHMONEY.COM)