顶低背离集结号
{j顶低集结}
drawgbklast(c>0,strip(rgb(0,0,60),rgb(0,0,0),0));
80,dotline;20,dotline;
j9:ema("kdj.j"(9,3,3),5) ,color0000ff,linethick2;
j18:ema("kdj.j"(18,3,3),5) ,color00ffff,dotline;
j27:ema("kdj.j"(27,3,3),5) ,color00ff00,dotline;
j36:ema("kdj.j"(36,3,3),5) ,color0077ff,dotline;
j45:ema("kdj.j"(45,3,3),5) ,color00ffcc,linethick2;
a级顶:=j9>80 and j18>80 and j27>80 and j36>80 and j45>80;
b级顶:=(j9>80 or j18>80) and (j27>80 or j36>80 or j45>80);
a级低:=j9<5 and j18<5 and j27<5 and j36<5 and j45<5;
b级低:=j9<10 and j18<20 and (j27<10 or j36<10 or j45<10);
if(a级顶,90,100),color0077ff,linethick3,layer2;
if(b级顶 ,80,100),color00ff00,linethick2,layer0;
if(a级低,10,0),color00ff00,linethick2,layer0;
if(b级低,20,0),colorff9900,linethick2,layer2;
fillrgn(if(a级顶,90,100),90),colorff2200,layer5;;
fillrgn(if(b级顶,80,100),80),colorff9900,layer6;;
fillrgn(100,80),color000000,layer7;;
fillrgn(10,20,10<20,rgb(0,40,60)),layer7;
fillrgn(0,10,0<10,rgb(0,60,0)),layer7;
选股a:a级低,linethick0;
{低部}
dibu:= "kdj.k"(9,3,3)<15 and "kdj.d"(9,3,3)<15 and "kdj.k"(18,3,3)<15 and "kdj.d"(18,3,3)<15
and "kdj.k"(27,3,3)<20 and "kdj.d"(27,3,3)<20 and "kdj.d"(36,3,3)<20 and "kdj.d"(54,3,3)<20;
stickline(dibu=1,30,20,1,0),colorff00ff,layer5;
stickline(dibu=1,20,10,2,0),coloryellow,layer5;
stickline(dibu=1,10,0,8,0),colorff8000,linethick2,layer5;
选股b:dibu,linethick0;
{大盘kdj}
drsv:=(indexc-llv(indexl,27))/(hhv(indexh,27)-llv(indexl,27))*100;
dk:=sma(drsv,3,1);
dd:=sma(dk,3,1);
dj:ema((3*dk-2*dd),5),color00ffff;
partline(dj,(dj>ref(dj,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),pointdot,linethick6,layer1;
{macd}
dif:ema(close,12)-ema(close,26),linethick0;
dea:=ema(dif,9);
var1:=hhv(dea,53);
var2:=llv(dea,55);
var3:=dea-(dif-dea);
up:=if(dif>var1 and dea=var1,max(llv(var1,10),var3),var1);
dn:=if(dif<var2 and dea=var2,min(hhv(var2,10),var3),var2);
partline(105,dif>up,rgb(255,0,0)),linethick5,layer4;
partline(104,dif>up,rgb(255,120,0)),linethick5,layer5;
partline(103,dif>up,rgb(255,200,0)),linethick5,layer6;
partline(-3,dif<dn,rgb(0,130,100)),linethick5,layer4;
partline(-4,dif<dn,rgb(0,220,0)),linethick6,layer5;
{kdj周金叉死叉}
周k:"kdj.k#week"(9,2,5),color0000ff,linethick0,layer3;
周d:"kdj.d#week"(9,2,5),color00ff00,linethick0;
drawtext(cross(周k,周d),30,'j周金叉'),align1,color00ffff,linethick1;
drawtext(cross(周d,周k),70,'j周死叉'),align1,color0077ff,linethick1;
kdb:=barslast(ref(cross(周k,周d),1));
kddb:=ref(wma(c,5),kdb+1)>wma(c,5) and ref(周k,kdb+1)<周k and cross(周k,周d);
k底背:=if(filter(kddb>0,5),1,0);
drawtext(k底背=1,15,'j周底背'),color00ffff,linethick1;
kdd:=barslast(ref(cross(周d,周k),1));
k顶背:=ref(wma(c,5),kdd+1)<wma(c,5) and ref(周k,kdd+1)>周k and cross(周d,周k);
drawtext(filter(k顶背>0,5),80,'j周顶背'),color0077ff,linethick1;
{顶底背离}
{1.macd}
a1:=barslast(ref(cross("macd.diff","macd.dea"),1));
b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)<"macd.diff" and cross("macd.diff","macd.dea");
drawtext(b1>0,-2,'m底背'),color00ffff,linethick1;{macd底背离};
c1:=barslast(ref(cross("macd.dea","macd.diff"),1));
d1:=ref(c,c1+1)<c and ref("macd.diff",c1+1)>"macd.diff" and cross("macd.dea","macd.diff");
drawtext(d1>0,105,'m顶背'),color00ff00,linethick1;{macd顶背离};
{2.kdj}
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(b2,5,'j9底背'),color00ffff,linethick1;{kdj底背离};
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
drawtext(d2>0,80,'j9顶背'),color0077ff,linethick1;{kdj顶背离};
{3.rsi}
a3:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1",a3+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(b3>0,24,'r底背'),color00ffff,linethick1;{rsi底背离}
c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
drawtext(d3>0,95,'r顶背'),color0077ff,linethick1;{rsi顶背离};
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文顶低背离集结号公式附实测图下载 大智慧指标背离顶低源码附图仅供学习研究。