本指标根据背离abc指标改编。
说明:由红绿相间的组成的k线,代表股价是处在多头行情还是空头行情。
在指标的底位出现的m(绿),k(紫),r(蓝),d(黄)及三角形分别是macd,kdj,rsi,dmi的顶底背离提示,它们有不同的颜色显示,向上三角形为顶背离,向下三角形为底背离,而非买卖点的提示,但对买卖操作具有非常重要的参考意义。
买点参考:本指标提供了压力与支撑方案,在低位有支撑且k线是红色,可跟进。低位出现红三角也是买点参考。
卖点参考:在高位出现k线变绿且出现压力提示,清仓。高位出现的倒三角或倒梯型也是减仓的信号,但是只要有支撑提示存在,这些信号多数为无效信号。
请配合大盘,均线,成交量和其它指标使用。
trr := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd := high-ref(high,1);
ld := ref(low,1)-low;
pdm:= sum(if(hd>0 and hd>ld,hd,0),14);
mdm:= sum(if(ld>0 and ld>hd,ld,0),14);
pdi:= pdm*100/trr;
mdi:= mdm*100/trr;
a1:=barslast(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(c,a1+1)>c and ref("macd.diff"(12,26,9),a1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
d1:=ref(c,c1+1)<c and ref("macd.diff"(12,26,9),c1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
c4:=barslast(ref(cross(mdi,pdi),1));
d4:=ref(c,c+1)<c and ref(mdi,c4+1)>mdi and cross(mdi,pdi);
a4:=barslast(ref(cross(pdi,mdi),1));
b4:=ref(c,a4+1)>c and ref(pdi,a4+1)<pdi and cross(pdi,mdi);
//绘图
//macd底背
macd底背:if(b1>0,-50,0),color00ff00;
stickline(b1>0,-30,-40,9,0),color00ff00;
drawtext(b1>0,-35,'m'),colorffffff;
//macd顶背
macd顶背:if(d1>0,50,0),color00ff00;
stickline(d1>0,30,40,9,0),color00ff00;
drawtext(d1>0,35,'m'),colorffffff;
//kdj底背
kdj底背:if(b2>0,-50,0),colorff00ff;
stickline(b2>0,-10,-20,9,0),colorffcc66;
drawtext(b2>0,-15,'k'),colorffffff;
//kdj顶背
kdj顶背:if(d2>0,50,0),colorff00ff;
stickline(d2>0,10,20,9,0),colorffcc66;
drawtext(d2>0,15,'k'),colorffffff;
//rsi底背
rsi底背:if(b3>0,-50,0),coloryellow;
stickline(b3>0,-20,-30,9,0),coloryellow;
drawtext(b3>0,-25,'r'),colorffffff;
//rsi顶背
rsi顶背:if(d3>0,50,0),coloryellow;
stickline(d3>0,20,30,9,0),coloryellow;
drawtext(d3>0,25,'r'),colorffffff;
//dmi底背
dmi底背:if(b4>0,-50,0),colorblue;
stickline(b4>0,0,-10,9,0),colorblue;
drawtext(b4>0,-5,'d'),colorffffff;
//dmi顶背
stickline(d4>0,0,10,9,0),colorblue;
dmi顶背:if(d4>0,10,0),colorblue;
drawtext(d4>0,5,'d'),colorffffff;
你:=ma(close,1);
老:=(low+high+close)/3;
板:= ma(老,5);
好:= hhv(板,10);
急卖:if(hhv((你<好),5),100,50),colorcyan;
短卖:if(hhv((你<好),10),100,50),colorcyan;
老板:= ma(老,5);
买卖:=llv(老板,10);
短买:if(llv((你<买卖),10),50,0),colorred;
买点:if(llv((你<买卖),10),1,0);
卖点:if(hhv((你<好),10),1,0);//www.goodgongshi.com
td:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),5);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=(sum(if(((hd > 0) and (hd > ld)),hd,0),5) );
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),5);
神偷线:=(((dmp ) * 100) / td);
辅助线:=((dmm * 100) / td);
动向趋势线:=(ma(((abs((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
adxr:=((动向趋势线 + ref(动向趋势线,3)) / 2);
var1:=ma(low,1);
var2:=ma(high,2);
var3:=ma(close,2);
var7:=ref(var3,1);
【强弱】:=((sma(max((var3 - var7),0),5,1) / sma(abs((var3 - var7)),5,1)) * 100);
支撑位:if((ema(close,15)-ref(ema(close,15),1))/ref(ema(close,15),1)*100>=0,ref(ema(close,15),barslast(cross((ema(close,15)-ref(ema(close,15),1))/ref(ema(close,15),1)*100,0))+1),drawnull),colorred,linethick1;
阻力位:if((ema(close,15)-ref(ema(close,15),1))/ref(ema(close,15),1)*100<0,ref(ema(close,15),barslast(cross(0,(ema(close,15)-ref(ema(close,15),1))/ref(ema(close,15),1)*100))+1),drawnull),colorgreen,linethick1;
var2:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;
var3:=sma(sma(var2,3,1),3,1)/30;
var4:=ema(var3,5);
var5:=3*var3-2*var4;
aa:=cross(var5,var3) and var3<2.1 and c>o;
var6:=(2*close+high+low)/4;
var7:=llv(low,13);
var8:=hhv(high,13);
var9:=ema((var6-var7)/(var8-var7)*100,13);
vara:=ema(0.667*ref(var9,1)+0.333*var9,2);
stickline(var9>vara,var9,vara,3,0), colormagenta;
stickline(var9<=vara,var9,vara,3,0), coloryellow;
stickline(aa,0,10,3,0),colorblue;
var2:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;
var3:=sma(sma(var2,3,1),3,1)/30;
var4:=ema(var3,5);
var5:=3*var3-2*var4;
aa:=cross(var5,var3) and var3<2.1 and c>o;
var6:=(2*close+high+low)/4;
var7:=llv(low,13);
var8:=hhv(high,13);
var9:=ema((var6-var7)/(var8-var7)*100,13);
vara:=ema(0.667*ref(var9,1)+0.333*var9,2);
stickline(var9>vara,var9,vara,8,0), colormagenta;
stickline(var9<=vara,var9,vara,8,0), colorgreen;
stickline(aa,0,10,10,0),colorblue;
上一指标公式:庖丁解牛传说指标公式详解 同花顺庖丁解牛
下一指标公式:庖丁解牛经典指标公式详解 同花顺庖丁解牛
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MKRD背离指标公式详解 同花顺背离仅供学习研究。