通达信公式背离王副图附实测效果图指标
n:=3;
a1:=forcast(ema(close,5),6);
a2:=forcast(ema(close,8),6);
a3:=forcast(ema(close,11),6);
a4:=forcast(ema(close,14),6);
a5:=forcast(ema(close,17),6);
b:=a1+a2+a3+a4-4*a5;
towerc:=ema(b,2);
b1:forcast(ema(b,3),6),pointdot,colorgreen;
b2:forcast(ema(b,4),6),pointdot,colorgreen;
b3:forcast(ema(b,5),6),pointdot,colorgreen;
b4:forcast(ema(b,6),6),pointdot,colorgreen;
b5:forcast(ema(b,7),6),pointdot,colorgreen;
b6:forcast(ema(b,8),6),pointdot,colorgreen;
b7:forcast(ema(b,9),6),pointdot,colorgreen;
b8:forcast(ema(b,10),6),pointdot,colorgreen;
b9:forcast(ema(b,11),6),pointdot,colorgreen;
b10:forcast(ema(b,12),6),pointdot,colorgreen;
b11:forcast(ema(b,13),6),pointdot,colorgreen;
b12:forcast(ema(b,14),6),pointdot,colorgreen;
b13:=forcast(ema(b,15),6),pointdot,colorgreen;
b14:forcast(ema(b,16),6),pointdot,colorgreen;
b15:forcast(ema(b,17),6),pointdot,colorgreen;
stickline(towerc>=ref(towerc,1),towerc,ref(towerc,1),n,0),colorred;
stickline(towerc<ref(towerc,1),towerc,ref(towerc,1),n,0),colorgreen;
stickline(towerc>=ref(towerc,1),towerc,ref(towerc,1),n,0),colorred;
stickline(towerc>=ref(towerc,1),towerc,ref(towerc,1),n,0),colorred;
stickline(towerc>=ref(towerc,1),towerc,ref(towerc,1),n,0),colorred;
stickline(towerc<ref(towerc,1),towerc,ref(towerc,1),n,0),colorgreen;
stickline(towerc<ref(towerc,1),towerc,ref(towerc,1),n,0),colorgreen;
stickline(towerc<ref(towerc,1),towerc,ref(towerc,1),n,0),colorgreen;
stickline(towerc<ref(towerc,1),towerc,ref(towerc,1),n,0),colorgreen;
bsum:=(b1+b2+b3+b4+b5+b6+b7+b8+b9+b10+b11+b12+b13+b14+b15)/15;
bmax1:=max(max(b1,b2),max(b3,b4));
bmax2:=max(max(b5,b6),max(b7,b8));
bmax3:=max(max(b9,b10),max(b11,b12));
bmax4:=max(max(b13,b14),b15);
bmax:=max(max(bmax1,bmax2),max(bmax3,bmax4));
bmin1:=min(min(b1,b2),min(b3,b4));
bmin2:=min(min(b5,b6),min(b7,b8));
bmin3:=min(min(b9,b10),min(b11,b12));
bmin4:=min(min(b13,b14),b15);
bmin:=min(min(bmin1,bmin2),min(bmin3,bmin4));
bax:=abs(bmax-(towerc+ref(towerc,1))/2);
ban:=abs(bmin-(towerc+ref(towerc,1))/2);
bfin:=if(bax>ban,bmax,bmin);{好公式网-最好的股票公式网站 www.goodgongshi.com}
c1:=bfin-bmax=0 and ref(bfin,1)-ref(bmin,1)=0;
c2:=bfin-bmin=0 and ref(bfin,1)-ref(bmax,1)=0;
bfinal:=if(c1 or c2,(bmax+bmin)/2,bfin),nodraw;
hc:towerc-ref(towerc,1),nodraw;
kc:hc-ref(hc,1),nodraw;{好公式网-最好的股票公式网站 www.goodgongshi.com}
绿柱变大:if(hc<=0 and kc<=0,bfinal,drawnull),pointdot,colorgreen,linethick3;
绿柱变小:if(hc<0 and kc>0,bfinal,drawnull),pointdot,colormagenta,linethick3;
红柱变大:if(hc>0 and kc>=0,bfinal,drawnull),pointdot,colorred,linethick3;
红柱变小:if(hc>0 and kc<0,bfinal,drawnull),pointdot,colorliblue,linethick3;
drawtext_fix(islastbar and hc<=0 and kc<0,1,0,1,'绿柱变大 '),colorwhite;
drawtext_fix(islastbar and hc<=0 and kc>0,1,0,1,'绿柱变小 '),colorwhite;
drawtext_fix(islastbar and hc>=0 and kc>0,1,0,1,'红柱变大 '),colorwhite;
drawtext_fix(islastbar and hc>=0 and kc<0,1,0,1,'红柱变小 '),colorwhite;
sel:=ref(kc,4)>0 and ref(kc,3)>0 and ref(kc,2)<0 and ref(kc,1)<0 and kc<0;
bu:=ref(kc,4)<0 and ref(kc,3)<0 and ref(kc,2)>0 and ref(kc,1)>0 and kc>0;
drawtext(sel,max(towerc,ref(towerc,1)),'降'),colorwhite;
drawtext(bu,min(towerc,ref(towerc,1)),'升'),colorwhite;
上一指标公式:通达信公式筹码监控副图附效果贴图指标下载
下一指标公式:黑马趋势通达信副图无加密附图指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文通达信公式背离王副图附实测效果图指标下载仅供学习研究。