多指数共振钝化背离结构源码下载:
n:=10;
m:=16;
sqx:=(c-ma(close,13))*100;
dif:=ema(ma(sqx,7),1),colorwhite;
dea:=ema(dif,7),coloryellow;
dif2:100*(ema(close,12)-ema(close,26));
dea2:ema(dif2,9);
macd:=(dif-dea)*2,colorstick;
stickline(macd>0 and macd>ref(macd,1),macd,0,0.1,0),colorred;
stickline(macd>0 and macd<ref(macd,1),macd,0,0.1,0),color00ffff;
死叉:=cross(dea2,dif2);
n1:=barslast(死叉);
n2:=ref(barslast(死叉),n1+1);
n3:=ref(barslast(死叉),n2+n1+2);
stickline(macd<0 and macd<ref(macd,1),macd,0,0.1,0),colorffff00;
stickline(macd<0 and macd>ref(macd,1),macd,0,0.1,0),colorff00a9;
cl1:=llv(c,n1+1);
difl1:=llv(dif2,n1+1);
rsv:=((close-llv(low,21))/(hhv(high,21)-llv(low,21)))*247.2-123.6;
k:sma(sma( rsv,3,1),3,1),colorwhite;
d:ma(ema(k,3),3),coloryellow;//www.goodgongshi.com
j:3*k-2*d,colormagenta;
cl2:=ref(cl1,n1+1);
difl2:=ref(difl1,n1+1);
cl3:=ref(cl2,n1+1);
difl3:=ref(difl2,n1+1);
a11:=barslast(ref(cross(dif,dea),1));
pdifl2:=if(difl2>0,intpart(log(difl2))-1,intpart(log(-difl2))-1);
mdifl2:=intpart(difl2/pow(10,pdifl2));
b1:=ref(c,a11+1)>c and ref(dif,a11+1)<dif and cross(dif,dea);
a12:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a12+1)>c and ref("kdj.k",
a12+1)<"kdj.k" and cross("kdj.k","kdj.d");
a13:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
pdifl3:=if(difl3>0,intpart(log(difl3))-1,intpart(log(-difl3))-1);
mdifl3:=intpart(difl3/pow(10,pdifl3));
b3:=ref(c,a13+1)>c and ref("rsi.rsi1",
a13+1)<"rsi.rsi1"and cross("rsi.rsi1","rsi.rsi2");
c1:=barslast(ref(cross(dea,dif),1));
d1:=ref(c,c1+1)<c and ref(dif,c1+1)>dif and cross(dea,dif);
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
mdifb2:=intpart(dif2/pow(10,pdifl2));
mdifb3:=intpart(dif2/pow(10,pdifl3));
d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
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");
直接底背离:=(cl1<cl2 ) and (mdifb2>mdifl2) and
(macd<0 and ref(macd,1)<0) and mdifb2<=ref(mdifb2,1);
隔峰底背离:=(cl1<cl3 and cl3<cl2 ) and (mdifb3>mdifl3)
and (macd<0 and ref(macd,1)<0) and mdifb3<=ref(mdifb3,1);
macd底背:if(b1>0,50,0),linethick2,colorred;
kdj底背:if(b2>0,65,0),linethick2,colorff00ff;
b:=(直接底背离 or 隔峰底背离);
bg:=((mdifb2>ref(mdifb2,1))*ref(直接底背离,1))
or ((mdifb3>ref(mdifb3,1))*ref(隔峰底背离,1));
底背离消失:=(ref(直接底背离,1) and difl1<=difl2 )
or (ref(隔峰底背离,1) and difl1<=difl3);
rsi底背:if(b3>0,80,0),linethick2,coloryellow;
macd顶背:if(d1>0,-50,0),linethick2,color00ff00;
stickline(b or bg,dif2,dea2,8,0),colorred;
drawtext((b and count(b,2)=1),(dif2*1.5),'钝化'),coloryellow;
kdj顶背:if(d2>0,-65,0),linethick2,colorffcc66;
rsi顶背:if(d3>0,-80,0),linethick2,colorwhite;
drawtext(filter(底背离消失,10),(dif2+macd),'底背离消失'),colormagenta;
stickline(bg,0,(dif2+dea2),5,0), colorred;
上一指标公式:看准黑马好快趋势主图下载
下一指标公式:仓位的验证性因子分析下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文多指数共振钝化背离结构下载仅供学习研究。