将(趋势背离选股)指标改成顶、底背离选股指标
2020/4/20 19:07:15
公式编写说明:
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都出现信号,但前者是顶后者是底不好区分,所以请老师帮忙,将顶背离、底背离分别做一个选股指标,万分感谢!!
公式源码回答:
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);
投股 票网 www.tou18. cn
股市公式下载推荐