将(趋势背离选股)指标改成顶、底背离选股指标
-
相关简介:编写要求: 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(DX0,0,DX,2,0),COLORRED; STICKLINE(DX0,0,DX,2,0),COLORGREEN; XG:=CROSS(DX2,DX3) AND DX2REF(DX2,1)
-
文章来源:股海网作者:股海网发布时间:2015-06-09浏览次数:
编写要求:
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(DX<0,0,DX,2,0),COLORGREEN; XG:=CROSS(DX2,DX3) AND DX2>REF(DX2,1) AND DX3>REF(DX3,1); 背离:XG*20; 该背离信号不论在底部或顶部都会出现,如000978桂林旅游在20101214和20110124都出现信号,但前者是顶后者是底不好区分,所以请老师帮忙,将顶背离、底背离分别做一个选股指标,万分感谢!!
www.guhai.com.cn股海网解答:
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);
上一篇:OBV半年新高且MACD零上金叉的预警
下一篇:取得两条均线金叉的角度大小