布林画线主图
{布林画线【主图】}
input: k(2,0,2),n(10,1,255);
bbi:(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4,pointdot,colorffffff;
bbi2:bbi+3*std(bbi,10),color0000aa,pointdot;
bbi3:bbi-3*std(bbi,10),color00ff00,pointdot;
xx2:=ema(ema((close+low+high)/3,3),23);
xx3:=ref(xx2,1);
partline(xx2,xx2>xx3,rgb(255,0,0),xx2<xx3,rgb(0,255,0)),linethick2;
b1:=ma(close,1);
b2:=sma(sma(sma(b1,2,1),2,1),2,1) ;
sma2:=ma(b2,3) ;
fillrgn(b2,sma2,b2>sma2,rgb(255,0,0),b2<sma2,rgb(0,255,0));
var9q:=close=hhv(close,4) and (ref(close,1)>=ref(close,2) or ref(close,1)>=ref(close,3)) or ref(close,1)=hhv(close,4) and close>=ref(close,2) or ref(close,2)=hhv(close,4) and ref(close,3)=llv(close,4) and close>=ref(close,1) or ref(close,3)=hhv(close,4) and close>=ref(close,1) and close>=ref(close,2);
红持:var9q,linethick0,color0000ff;
varaq:=close=hhv(close,4) and ref(close,1)=llv(close,4);
粉变:varaq,linethick0,colorff99ff;
varbq:=close=llv(close,4) and (ref(close,1)<ref(close,2) or ref(close,1)<ref(close,3)) or ref(close,1)=llv(close,4) and close<ref(close,2) or ref(close,2)=llv(close,4) and ref(close,1)<>hhv(close,4) and close<ref(close,1) or ref(close,3)=llv(close,4) and close<ref(close,1) and close<ref(close,2);
灰跌:varbq,linethick0,color888888;
varcq:=ref(close,1)=llv(close,4) and close>=ref(close,2) or ref(close,2)=llv(close,4) and ref(close,1)<=ref(close,3) and ref(close,2)<ref(close,4) and close>=ref(close,1);
绿买:varcq,linethick0,color00ff00;
vardq:=ref(close,1)=hhv(close,4) and close<ref(close,2) or (ref(close,2)=hhv(close,4) and ref(close,1)>ref(close,3) or ref(close,3)=hhv(close,4) and ref(close,1)>ref(close,2)) and ref(close,2)>=ref(close,4) and close<ref(close,1);
蓝抛:vardq,linethick0,colorff9900;
stickline(close>open,open,low,0.5,0),color0000ff;
stickline(close>open,close,high,0.5,0),color0000ff;
stickline(open>=close,close,low,0.5,0),color00ff00;
stickline(open>=close,open,high,0.5,0),color00ff00;
stickline(open>=close,close,open,8,0),colorff7700;
stickline(open>=close,close,open,6,0),colorff9900;
stickline(open>=close,close,open,5,0),colorffbb00;
stickline(open>=close,close,open,4,0),colorffcc00;
stickline(open>=close,close,open,3,0),colorffdd00;
stickline(open>=close,close,open,2,0),colorffee00;
stickline(open>=close,close,open,1,0),colorffff00;
stickline(close>open,close,open,8,0),color000055;
stickline(close>open,close,open,6,0),color000066;
stickline(close>open,close,open,5,0),color000077;
stickline(close>open,close,open,4,0),color000099;
stickline(close>open,close,open,3,0),color0000bb;
stickline(close>open,close,open,2,0),color0000dd;
stickline(close>open,close,open,1,0),color0000ff;
stickline(var9q,close,(open+close)/2,8,0),color000077;
stickline(var9q,close,(open+close)/2,6,0),color000088;
stickline(var9q,close,(open+close)/2,5,0),color0000aa;
stickline(var9q,close,(open+close)/2,4,0),color0000cc;
stickline(var9q,close,(open+close)/2,2,0),color0000ff;
stickline(var9q,close,(open+close)/2,0,0),colorffffff;
stickline(varaq,close,(open+close)/2,8,0),colorff11ff;
stickline(varaq,close,(open+close)/2,6,0),colorff33ff;
stickline(varaq,close,(open+close)/2,5,0),colorff55ff;
stickline(varaq,close,(open+close)/2,4,0),colorff77ff;
stickline(varaq,close,(open+close)/2,3,0),colorff99ff;
stickline(varaq,close,(open+close)/2,2,0),colorffbbff;
stickline(varaq,close,(open+close)/2,1,0),colorffddff;
stickline(varbq,close,(open+close)/2,8,0),color333333;
stickline(varbq,close,(open+close)/2,6,0),color555555;
stickline(varbq,close,(open+close)/2,5,0),color777777;
stickline(varbq,close,(open+close)/2,4,0),color999999;
stickline(varbq,close,(open+close)/2,3,0),colorbbbbbb;
stickline(varbq,close,(open+close)/2,2,0),colordddddd;
stickline(varbq,close,(open+close)/2,1,0),colorffffff;
stickline(varcq,open,(open+close)/2,8,0),color003300;
stickline(varcq,open,(open+close)/2,6,0),color005500;
stickline(varcq,open,(open+close)/2,5,0),color007700;
stickline(varcq,open,(open+close)/2,4,0),color009900;
stickline(varcq,open,(open+close)/2,3,0),color00bb00;
stickline(varcq,open,(open+close)/2,2,0),color00dd00;
stickline(varcq,open,(open+close)/2,1,0),color00ff00;
stickline(vardq,open,(open+close)/2,8,0),colorff1100;
stickline(vardq,open,(open+close)/2,6,0),colorff3300;
stickline(vardq,open,(open+close)/2,5,0),colorff5500;
stickline(vardq,open,(open+close)/2,4,0),colorff7700;
stickline(vardq,open,(open+close)/2,3,0),colorff9900;
stickline(vardq,open,(open+close)/2,2,0),colorffbb00;
stickline(vardq,open,(open+close)/2,1,0),colorffdd00;
wn:=3;{原码 n:=3;}
wa1:=ref(h,wn)=hhv(h,2*wn+1); wb1:=filter(wa1,wn); wc1:=backset(wb1,wn+1); wd1:=filter(wc1,wn);{高点}
wa2:=ref(l,wn)=llv(l,2*wn+1); wb2:=filter(wa2,wn); wc2:=backset(wb2,wn+1); wd2:=filter(wc2,wn);{低点}
we1:=(ref(llv(l,2*wn),1)+ref(hhv(h,2*wn),1))/2; we2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
wh1:=(wd1 and not(wd2 and we1>=we2)) or dispstatus=2 or barscount(c)=1;
wl1:=(wd2 and not(wd1 and we1<we2)); wh2:=wd1 and not(wd2 and we1>=we2);
wx1:=ref(barslast(wh1),1)+1; wf1:=backset(wh1 and count(wl1,wx1)>0,llvbars(if(wl1,l,10000),wx1));
wg1:=wf1>ref(wf1,1); wi1:=backset(wg1,2); wld:=wi1>ref(wi1,1);{过滤后低点}
wl2:=wld or dispstatus=2 or barscount(c)=1;
wx2:=ref(barslast(wl2),1)+1; wf2:=backset(wl2 and count(wh2,wx2)>0,hhvbars(if(wh2,h,0),wx2));
wg2:=wf2>ref(wf2,1); wi2:=backset(wg2,2); whd:=wi2>ref(wi2,1);{过滤后高点}
wr1:=backset(dispstatus=2,barslast(whd)+1); ws1:=wr1>ref(wr1,1); {前一高}
wt1:=backset(dispstatus=2,barslast(wld)+1); wu1:=wt1>ref(wt1,1); {前一低}
wr2:=backset(ws1,ref(barslast(whd),1)+2); ws2:=wr2>ref(wr2,1); {前二高}
wt2:=backset(wu1,ref(barslast(wld),1)+2); wu2:=wt2>ref(wt2,1); {前二低}
wt3:=backset(wu2,ref(barslast(wld),1)+2); wu3:=wt3>ref(wt3,1); {前三低}
wt4:=backset(wu3,ref(barslast(wld),1)+2); wu4:=wt4>ref(wt4,1); {前四低}
wr3:=backset(ws2,ref(barslast(whd),1)+2); ws3:=wr3>ref(wr3,1); {前三高}
wr4:=backset(ws3,ref(barslast(whd),1)+2); ws4:=wr4>ref(wr4,1); {前四高}
drawline(k=2 and ws2,h,k=2 and ws1,h,1),color008888; {★压力1:}
drawline(k=2 and wu2,l,k=2 and wu1,l,1),pointdot,color008888;{★支撑1:}
drawline(k=2 and ws3,h,k=2 and ws2,h,1),color888000; {★压力2:}
drawline(k=2 and wu3,l,k=2 and wu2,l,1),pointdot,color888000;{★支撑2:}
drawline(k=2 and ws4,h,k=2 and ws3,h,1),color0000cc;{★压力3:}
drawline(k=2 and wu4,l,k=2 and wu3,l,1),pointdot,color0000cc;{★支撑3:};
底:=sum(ma(close,10),9)/11.114;
drawtext(cross(low,底) and ref(底,1)>ref(high,1) or cross(high,底),0.85*close,'---铁底'),color00ff00;
x1:=(3*close+high+low+open)/6;
x2:=ema(x1,10);
x3:=ref(x2,1);
x4:=(ref(high,1)+ref(low,1))/2;
x5:=ma(close,21)+2*std(close,21);
x6:=ref(close,1);
x7:=(sma(max(close-x6,0),7,1))/(sma(abs(close-x6),7,1))*100;
x8:=cross(79,x7);
x9:=filter(x8,4);
wz1:=pow(ma(close,5),2)+ma(close,5);
wz2:=pow(ma(low,5),2)+ma(low,5);
wz3:=pow(ma(high,5),2)+ma(high,5);
wz4:=(wz1-llv(wz2,9))/(hhv(wz3,9)-llv(wz2,9))*150+65;
dk:=sma(wz4,3,1)*1.5;
dd:=sma(dk,3,1);
dj:=3*dk-2*dd;
wz5:=ema(close,12)-ema(close,26);
wz6:=ema(wz5,9);
wz7:=2*(wz5-wz6);
wz8:=ref(wz7,1);
wz9:=cross(wz8,wz7) and wz8>0;
var1t:=ema(close,8);
var2t:=ema(var1t,20);
var3t:=cross(var1t,var2t);
var4t:=var1t<ma(close,120);
var5t:=(hhv(high,36)-close)/(hhv(high,36)-llv(low,36))*100;
var6t:=sma(var5t,5,1);
var7t:=sma(var6t,8,1);
var8t:=cross(var6t,var7t) and var7t<20;
var9t:=close>llv(close,60)+0.3*llv(close,60) and var8t;
vara:=if(close>1000,var8t,var9t);
起步:=var3t and var4t;
逃遁:=vara;
xl1:=ema(close,10)/100;
xl2:=ma((xl1-ref(xl1,10))/ref(xl1,10),3)*100;
xl3:=ma(xl2,3);
xl4:=sma((close-llv(low,9))/(hhv(high,9)-llv(low,9))*100,3,1);
drawtext(if(cross(3*xl4-2*sma(xl4,3,1),8),87,0) and x2>x3,low-0.1,'←反弹'),color0000ff;
drawtext(if(cross((var1t-llv(var1t,4))/(hhv(var1t,4)-llv(var1t,4))*4*25,87.5) and var1t<40,87,0) and x2>x3,low-0.2,'←短买'),color0000aa;
drawtext(if(cross(2*(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26)-(ema(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26),2)))*5.8,0.47),low,0) and x2>x3,low-0.4,'←加仓'),colorff5ed8;
drawtext(cross(x4,x5),high*1.01,'←减'),colorb4ff00;
drawtext(filter((wz9 and dj>250) or x9 ,5),high*1.02,'←跑'),colorbcff8b;
stickline(起步>0,high,low,0.8,0),color00ffff;
stickline(起步>0,open,close,5,0),color00ffff;
drawtext(逃遁>0,high*1.04,'●←逃'),color7fffd6;
x1p:=(c+l+h)/3;
bb13:=atan(ema(x1p,13)-ref(ema(x1p,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1p,13)>ref(ema(x1p,8),1),10),ema8,'∠45上升'),colorwhite;
var3aa:=if((close>ref(close,1)),88,0);
var4aa:=if(((close)/(ref(close,1))>1.05) and ((high)/(close)<1.01) and (var3aa>0),91,0);
drawtext(filter((var4aa>90),45),(low)*0.97,'★大胆搏 '),color00ffff;
l23:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
l24:=(high+low+close)/3;
l25:=(l24-ma(l24,14))/(0.015*avedev(l24,14));
l26:=(l24-ma(l24,70))/(0.015*avedev(l24,70));
l27:=if(l25>=150 and l25<200 and l26>=150 and l26<200,10,0);
l28:=if(l25<=-150 and l25>-200 and l26<=-150 and l26>-200,-10,l27);
l29:=100-abs((close-ma(close,13))/ma(close,13)*100);
l30:=if(l29<90,l29,100);
l31:=if(l23>0,l23,0);
xl1:=(if(l28>=200 and l25>=150,15,if(l26<=-200 and l25<=-150,-15,l28)))+60;
xl2:=l31>48 and xl1>60 and l30<100;
drawtext(xl2 and count(xl2,30)=1,l,'大笔买入'),colorff00ff;
var3td:=100-3*sma((close-llv(low,42))/(hhv(high,42)-llv(low,42))*100,20,1)+2*sma(sma((close-llv(low,42))/(hhv(high,42)-llv(low,42))*100,20,1),15,1);
var4td:=100-3*sma((open-llv(low,42))/(hhv(high,42)-llv(low,42))*100,20,1)+2*sma(sma((open-llv(low,42))/(hhv(high,42)-llv(low,42))*100,20,1),15,1);
var2td:=var3td<ref(var4td,1) and vol>ref(vol,1) and close>ref(close,1);
drawtext(var2td and count(var2td,30)=1,l*0.93,'大资金进场'),colorff00ff;
drawtextrel(408.5,980.5,stklabel+stkname+' 流通股:'+numtostrn(finance2(37),0)+'万'),color1dffff;
drawtextabs(2,4,'市盈率:'+dynainfo(39)),color9dffff;
drawtextabs(110,4,'市净率:'+c/finance2(4)),color9dffff;
drawtextabs(218,4,'最新收益:'+finance2(3)+'元 '),color9dffff;
drawtextabs(326,4,'莸利比例:'+winner(c )*100),color9dffff;
drawtextabs(434,4,'主营收入同比增长:'+finance2(11)+'% '),color9dffff;
drawtextabs(588,4,'净利润同比增长:'+finance2(10)+'% '),color9dffff;
drawtextabs(2,17,'板块名称:'+bkname),color9dffff;
drawtextabs(688,17,'评级:'+extrastring('评级')),color9dffff;
{量能饱和}
sat:=if((amount/c)/(hhv(amount,20)/hhv(c,20))*100>100,100,(amount/c)/(hhv(amount,20)/hhv(c,20))*100);
drawtextrel(12,5,'量能饱和度:'+numtostrn(sat,0)),linethick3,color8000ff;
上一指标公式:主力透视-副图公式下载 大智慧透视
下一指标公式:分时看盘一主图三副图FNC格式公式下载 大智慧一主图格式
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文布林画线主图公式下载 大智慧画线布林仅供学习研究。