通达信波段背离王指标公式
{使用说明:出现底背离即买入点,出现顶背离即卖出点。当上穿粉色横线时为高抛点,当下穿白线时为低吸点。}
本文指标含有选股公式如下:
LOWV:=EMA(LLV(LOW,34),3);
HIGHV:=EMA(HHV(HIGH,34),3);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=SMA(RSV,8,1);
D:=SMA(K,6,1);
J:3*K-2*D,COLORFF00FF;
J1:MA(J,3);
A1:=BARSLAST(REF(CROSS(J,J1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND J>REF(J,A1+1) AND CROSS(J,J1) AND J<20;
STICKLINE(底背离,0,25,4,0),COLORFF00FF;
DRAWTEXT(底背离>0,30,'底背离'),COLORFFFFFF;
A2:=BARSLAST(REF(CROSS(J1,J),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(J1,A2+1)>J1 AND CROSS(J1,J) AND J>90;
DRAWTEXT(顶背离>0,75,'顶背离'),COLORGREEN;
STICKLINE(顶背离,100,80,4,0),COLOR00FF00;
100;
50;
0;
赞 (0)