VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSEC AND REF(“KDJ.K”,BARSLAST(REF(CROSS(“KDJ.K”,”KDJ.D”),1))+1)C AND REF(“RSI.RSI1”,BARSLAST(REF(CROSS(“RSI.RSI1″,”RSI.RSI2”),1))+1)0,L-0.18,’◆R’),COLOR0000FF;{RSI底背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“MACD.DEA”,”MACD.DIF”),1))+1)“MACD.DIF” AND CROSS(“MACD.DEA”,”MACD.DIF”)>0,H+0.16,’★M’),COLOR00FF00;{MACD顶背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“KDJ.D”,”KDJ.K”),1))+1)“KDJ.K” AND CROSS(“KDJ.D”,”KDJ.K”)>0,H+0.08,’◎K’),COLORFFFFCC;{KDJ顶背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“RSI.RSI2″,”RSI.RSI1”),1))+1)“RSI.RSI1” AND CROSS(“RSI.RSI2″,”RSI.RSI1”)>0,H+0.04,’◆R’),COLORFF9900;{RSI顶背离};
【股票入门与技巧】【通达信】顶底背离2指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。