布林宝塔线操盘手主图指标公式
用于主图,k线变红为多头,对应持股,k线灰绿色为空头,对应持币。
本指标无未来函数。放心使用。
mid : ma(close,20);
upper: mid + 2*std(close,20);
lower: mid - 2*std(close,20);
b1:=ref(c,1);b2:=ref(c,2);
ss:=if(c>ref(c,1) and ref(c,1)>=ref(c,2),1,if(c<ref(c,1)
and ref(c,1)<=ref(c,2),-1,if(c>ref(c,2)
and ref(c,2)>ref(c,1),2,if(c<ref(c,2)
and ref(c,2)<ref(c,1),-2,0))));
sm:=if(ref(ss,1)<>0,ref(ss,1),if(ref(ss,2)<>0,ref(ss,2),if(ref(ss,3)<>0,ref(ss,3),
if(ref(ss,5)<>0,ref(ss,5),if(ref(ss,6)<>0,ref(ss,6),if(ref(ss,7)<>0,ref(ss,7),0))))));
stickline(ss=1 or sm>=1 and ss=0,b1,c,7,1),colorred;
stickline(ss=-1 or sm<=-1 and ss=0,b1,c,7,0),colorgreen;
stickline(ss=2,b2,c,7,1),colorred;
stickline(ss=-2,b2,c,7,0),colorgreen;
stickline((ss=-1 or ss=-2) and sm>0,b2,b1,7,1),colorred;
stickline((ss=1 or ss=2) and sm<0,b2,b1,7,0),colorgreen;
mtm:=c-ref(c,1);//www.goodgongshi.com
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
yxf:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
蓝:if(filter(yxf=1,5),20,0),colorliblue,linethick3;
红: if(filter(yxf=1,5),10,0),colorred,linethick2;
黄: if(filter(yxf=1,5),5,0),coloryellow,linethick1;
var1:=(high+low+open+close)/4;
生命线: ma(3*var1-2*sma(var1,2,1),12),,;
var2:=if(var1<生命线,var1,生命线);
var3:=2*ema(llv(var1,7),10)-var1;
b:ema(c,2),color000000;
s:ema(slope(c,21)*20+c,42),pointdot,color000000;
sel:=cross(s,b);
stickline(b>=s,low,high,0.1,0),colorred;
stickline(b>=s,close,open,10,0),color0000aa;
stickline(b>=s,close,open,3,0),color0000cc;
stickline(b>=s,close,open,2,0),color0000dd;
stickline(b>=s,close,open,1,0),color0000ff;
stickline(b<s,low,high,0.1,0),colorffff00;
stickline(b<s,close,open,10,0),coloraaaa00;
stickline(b<s,close,open,4,0),coloreeee00;
stickline(b<s,close,open,3,0),colorcccc00;
stickline(b<s,close,open,2,0),colordddd00;
stickline(b<s,close,open,1,0),coloreeee00;
stickline(cross(b,s) or cross(s,b),open,close,3.5,0),coloryellow;
lc:=ref(close,1);
rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) * 100);
tr1:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),10);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr1);
mdi:=((dmm * 100) / tr1);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
av:=(rsi5 + adx);
dxr:=(((adx + ref(adx,5)) / 2) + rsi5);
wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));
newvol:=(rsi5 - wr10);
阶段底部:=(av + newvol);
出击:cross(阶段底部,0);
dif3:=ema(close,12)-ema(close,26);
dea3:=ema(dif3,9);
macd3 := 2*(dif3-dea3);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
止跌:macd3>ref(macd3,1) and ref(macd3,2)>=ref(macd3,1) and j<50 and c>ref(c,1) and c>o and j>ref(j,1);
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
yxf:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
蓝:if(filter(yxf=1,5),20,0),colorliblue,linethick3;
红: if(filter(yxf=1,5),10,0),colorred,linethick2;
黄: if(filter(yxf=1,5),5,0),coloryellow,linethick1;
a3:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
a4:=sma(a3,3,1);
a5:=sma(a4,3,1);
a6:=3*a4-2*a5;
a7:=c-ref(c,1);
a8:=100*ema(ema(a7,6),6)/ema(ema(abs(a7),6),6);
买:=llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2));
drawtext(filter(买=1,5),low-0.05,'↖买'),coloryellow;
stickline(买,open,close,2,0),coloryellow;
var2:=(ref(high,1)+ref(low,1))/2;
var3:=ma(close,21)+2*std(close,21);
drawicon(cross(var2,var3),high*1.035,2);
drawtext(cross(var2,var3),high*1.02,'卖出'), colorgreen;
var4:=ref(close,1);
var5:=sma(max(close-var4,0),7,1)/sma(abs(close-var4),7,1)*100;
var6:=cross(79,var5);
var7:=filter(var6,4);
drawicon(var7,high*1.035,2);
drawtext(var7,high*1.02,'卖出'), colorgreen;
stickline(c>1.095*ref(c,1),o,c,8,0),coloryellow;
n:=3;
l0:=0.00;
l1:=abs(l-ref(l,1))<=l0;
l2:=abs(l-ref(l,2))<=l0;
l3:=abs(l-ref(l,3))<=l0;
l4:=abs(l-ref(l,4))<=l0;
l5:=abs(l-ref(l,5))<=l0;
精准线首次:=l1 or l2 or l3 or l4 or l5;
精准左:=filter(精准线首次,n) ;
天数:=barslast(精准左);
lts:=ref(l,天数);
精准右:=abs(l-lts)<=l0;
stickline(精准左,l,l,50,-1),color8080ff;
g1:=abs(h-ref(h,1))<=l0;
g2:=abs(h-ref(h,2))<=l0;
g3:=abs(h-ref(h,3))<=l0;
g4:=abs(h-ref(h,4))<=l0;
g5:=abs(h-ref(h,5))<=l0;
g6:=abs(h-ref(h,6))<=l0;
g7:=abs(h-ref(h,7))<=l0;
g8:=abs(h-ref(h,8))<=l0;
精准线1首次:=g1 or g2 or g3 or g4 or g5 or g6 or g7 or g8;
精准左1:=filter(精准线1首次,n) ;
天数1:=barslast(精准左1);
gts:=ref(l,天数1);
精准右1:=abs(h-lts)<=l0;
stickline(精准左1,h,h,50,-1),color00ff00;
上一指标公式:超短先知指标公式详解 同花顺超短
下一指标公式:收口布林主图指标公式详解 同花顺收口
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文布林宝塔操盘手指标公式详解 同花顺操盘手布林仅供学习研究。