A1:=H-L; B1:=C-O; C1:=(B1/A1); DX:=V*C1/10000; DX1:EMA(EMA(DX,20),3)*20,COLORYELLOW; DX2:MA(DX1,5),COLORFF00FF; DX3:MA(DX1,10),COLORCYAN; STICKLINE(DX>0,0,DX,2,0),COLORRED; STICKLINE(DXREF(DX2,1) AND DX3>REF(DX3,1); 背离:XG*20; 该背离信号不论在底部或顶部都会出现,如000978桂林旅游在20101214和20110124都出现信号,但前者是顶后者是底不好区分,所以请老师帮忙,将顶背离、底背离分别做一个选股指标,万分感谢!!
爱约股解答:
A1:=H-L;
B1:=C-O;
C1:=(B1/A1);
DX:=V*C1/10000;
DX1:=EMA(EMA(DX,20),3)*20;
DX2:=MA(DX1,5);
底背离:CROSS(DX1,DX2);
A1:=H-L;
B1:=C-O;
C1:=(B1/A1);
DX:=V*C1/10000;
DX1:=EMA(EMA(DX,20),3)*20;
DX2:=MA(DX1,5);
顶背离:CROSS(DX2,DX1);