boll宝塔指标
n:=10;
drawbkbmp(c,'龙1');
{rsi顶底}
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
drawicon(cross(84,rsi) ,h*1.1,5),align1;
drawicon(cross(rsi,11) ,l*0.99,4),align1;
{布林}
中:ma(c,n),colorred,linethick0;
partline(c>=中,中),colorred,linethick1;
partline(c<中,中),colorwhite,linethick1;
上a:中+2.1*std(c,n),color00ffff,linethick0;
stickline(c,上a,上a,4,0),color00ffff,linethick2;
下a:中-2.1*std(c,n),colorgreen,linethick0;
stickline(c,下a,下a,4,0),colorgreen,linethick2;
上b:中+1.3*std(c,n),colorcyan,linethick0;
stickline(c,上b,上b,4,0),colorcyan,linethick1;
下b:中-1.3*std(c,n),colorff00ff,linethick0;
stickline(c,下b,下b,4,0),colorff00ff,linethick1;
{宝塔}
var1:=barscount(c);{宝塔两平底见红}
var2:=(hhv(h,200)-llv(l,200))/40;
stickline(var1/30=floor(var1/30),h+var2,h+var2*4,10,0),colorwhite;
关注?:stickline(var1/30=floor(var1/30),h+var2,h+var2*3,10,1),coloryellow;
drawtext(var1/30=floor(var1/30),h+var2*3,'关注?'),coloryellow;
var3:=ref(c,1);
var4:=ref(c,2);
var5:=ref(c,3);
var6:=ref(c,4);
var7:=hhv(c,4);
var8:=llv(c,4);
var9:=c=var7 and (var3>=var4 or var3>=var5) or var3=var7 and close>=var4 or var4=var7 and var5=var8 and c>=var3 or var5=var7 and c>=var3 and c>=var4;
{stickline(c,h,l,10,0),colorblack};
红持:stickline(var9,var3,c,8,1),colorred;
vara:=c=var7 and var3=var8;
粉变:stickline(vara,var4,c,8,1),colorff00ff;
varb:=c=var8 and (var3<var4 or var3<var5) or var3=var8 and c<var4 or var4=var8 and var3<>var7 and c<var3 or var5=var8 and c<var3 and c<var4;
灰跌:stickline(varb,var3,c,8,0),colorcyan;
varc:=var3=var8 and c>=var4 or var4=var8 and var3<=var5 and var4<var6 and c>=var3;
绿买:stickline(varc,var3,var4,8,0),colorgreen;
vard:=var3=var7 and c<var4 or (var4=var7 and var3>var5 or var5=var7 and var3>var4) and var4>=var6 and c<var3;
蓝抛:stickline(vard,var3,var4*1.01,8,0),colorblue;
sq1:=sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100;
sq2:=sma(max(c-ref(c,1),0),7,1)/sma(abs(c-ref(c,1)),7,1)*100;
cm1:=if(sq1<12,30,0);
cm2:=if(sq2<12,30,0);
超卖一:stickline(cm1,l-0.2,l-0.4,8,1),color0089ff;{超卖一:橙}
超卖二:stickline(cm2,l-0.4,l-0.6,8,0),color00ff00;{超卖二:绿};
{天眼通li_yung0053自用}
a1:=cost(95);
a2:=cost(5);
天眼通:=(a1-a2)*100/(a1+a2);
drawicon(天眼通>ref(天眼通,1), l*0.98,8)align5;
{买入提示}
varv1:=(high+low+open+2*close)/5;
varv2:=ref(varv1,1);
varv3:=sma(max(varv1-varv2,0),10,1)/sma(abs(varv1-varv2),10,1)*100;
hy3:=if(count(varv3<20,5)>=1 and count(varv1=llv(varv1,10),10)>=1 and close>=open*1.038 and vol>ma(vol,5)*1.2,1,0);
drawtext(hy3,low,'▲买入'),coloryellow;
{卖娃}
卖娃: drawicon((filter(cross(79,(sma(max(c-ref(c,1),0),7,1)/sma(abs(c-ref(c,1)),7,1)*100)),4)),h*1.08,2),align4;
{顶底背离}
diff:=ema(close,12) - ema(close,26);
dea:=ema(diff,9);
macd:=2*(diff-dea);
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
drawicon(filter(b1>0,5),l*0.94,10);
drawtext(filter(b1>0,5),l*0.94,'m底'),colorgreen;{macd底背离}
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");
drawicon(filter(b2>0,5),l*0.96,10);
drawtext(filter(b2>0,5),l*0.96,'k底'),coloryellow;{kdj底背离}
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");
drawicon(filter(b3>0,5),l*0.98,10);
drawtext(filter(b3>0,5),l*0.98,'r底'),colorcyan;{rsi底背离}
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
drawicon(filter(d1>0,5),h*1.07,12);
drawtext(filter(d1>0,5),h*1.07,'m顶'),color0066ff;{macd顶背离}
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");
drawicon(filter(d2>0,5),h*1.05,12);
drawtext(filter(d2>0,5),h*1.05,'k顶'),colorred;{kdj顶背离}
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");
drawicon(filter(d3>0,5),h*1.03,12),;
drawtext(filter(d3>0,5),h*1.03,'r顶'),colormagenta,;;{rsi顶背离}
上一指标公式:mabbi主图公式 飞狐mabbi指标 源码
下一指标公式:一年十二倍公式 飞狐指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文BOLL宝塔公式 飞狐指标BOLL指标 源码仅供学习研究。