p0:=sma(indexc,34,1);
p1:=(55*p0+34*ref(p0,1)+21*ref(p0,2)+13*ref(p0,3)+8*ref(p0,4)+5*ref(p0,5)
+3*ref(p0,6)+2*ref(p0,7)+ref(p0,8)+ref(p0,9))/143;
p2:=ref(p1,1);
大盘长牛熊:=0.5*(p1+p2);
a0:sma(c,3,1),colorwhite;
a1:=(55*a0+34*ref(a0,1)+21*ref(a0,2)+13*ref(a0,3)+8*ref(a0,4)+5*ref(a0,5)
+3*ref(a0,6)+2*ref(a0,7)+ref(a0,8)+ref(a0,9))/143;
a2:=ref(a1,1);
超短牛熊:0.5*(a1+a2),colorred;
zd0:=sma(c,5,1),colorred;
zd1:=(55*zd0+34*ref(zd0,1)+21*ref(zd0,2)+13*ref(zd0,3)+8*ref(zd0,4)+5*ref(zd0,5)
+3*ref(zd0,6)+2*ref(zd0,7)+ref(zd0,8)+ref(zd0,9))/143;
zd2:=ref(zd1,1);
中短牛熊:0.5*(zd1+zd2),coloryellow;
h0:=sma(c,8,1);
h1:=(55*h0+34*ref(h0,1)+21*ref(h0,2)+13*ref(h0,3)+8*ref(h0,4)+5*ref(h0,5)
+3*ref(h0,6)+2*ref(h0,7)+ref(h0,8)+ref(h0,9))/143;
h2:=ref(h1,1);
短期牛熊:0.5*(h1+h2),colormagenta;
{drawband(h1,rgb(255,255,0),h2,rgb(0,0,255));
stickline(h1>h2,h1,h2,10,0),coloryellow;}
dz0:=sma(c,13,1);
dz1:=(55*dz0+34*ref(dz0,1)+21*ref(dz0,2)+13*ref(dz0,3)+8*ref(dz0,4)+5*ref(dz0,5)
+3*ref(dz0,6)+2*ref(dz0,7)+ref(dz0,8)+ref(dz0,9))/143;
dz2:=ref(dz1,1);
短中牛熊:0.5*(dz1+dz2),colorwhite;
zx0:=sma(c,21,1);
zx1:=(55*zx0+34*ref(zx0,1)+21*ref(zx0,2)+13*ref(zx0,3)+8*ref(zx0,4)+5*ref(zx0,5)
+3*ref(zx0,6)+2*ref(zx0,7)+ref(zx0,8)+ref(zx0,9))/143;
zx2:=ref(zx1,1);
中线牛熊:=0.5*(zx1+zx2),colorgreen;
i0:=sma(c,34,1);
i1:=(55*i0+34*ref(i0,1)+21*ref(i0,2)+13*ref(i0,3)+8*ref(i0,4)+5*ref(i0,5)
+3*ref(i0,6)+2*ref(i0,7)+ref(i0,8)+ref(i0,9))/143;
i2:=ref(i1,1);
中长牛熊:0.5*(i1+i2),colorcyan;
cx0:=sma(c,55,1);
cx1:=(55*cx0+34*ref(cx0,1)+21*ref(cx0,2)+13*ref(cx0,3)+8*ref(cx0,4)+5*ref(cx0,5)
+3*ref(cx0,6)+2*ref(cx0,7)+ref(cx0,8)+ref(cx0,9))/143;
cx2:=ref(cx1,1);
长线牛熊:0.5*(cx1+cx2),colorblue;
cc0:=sma(c,89,1);
cc1:=(55*cc0+34*ref(cc0,1)+21*ref(cc0,2)+13*ref(cc0,3)+8*ref(cc0,4)+5*ref(cc0,5)
+3*ref(cc0,6)+2*ref(cc0,7)+ref(cc0,8)+ref(cc0,9))/143;
cc2:=ref(cc1,1);
超长牛熊:0.5*(cc1+cc2),colorgreen,linethick2;
tc0:=sma(c,144,1);
tc1:=(55*tc0+34*ref(tc0,1)+21*ref(tc0,2)+13*ref(tc0,3)+8*ref(tc0,4)+5*ref(tc0,5)
+3*ref(tc0,6)+2*ref(tc0,7)+ref(tc0,8)+ref(tc0,9))/143;
tc2:=ref(tc1,1);
特长牛熊:0.5*(tc1+tc2),colormagenta,linethick2;
sc0:=sma(c,233,1);
sc1:=(55*sc0+34*ref(sc0,1)+21*ref(sc0,2)+13*ref(sc0,3)+8*ref(sc0,4)+5*ref(sc0,5)
+3*ref(sc0,6)+2*ref(sc0,7)+ref(sc0,8)+ref(sc0,9))/143;
sc2:=ref(sc1,1);
特牛熊:0.5*(sc1+sc2),colormagenta,linethick2;
{drawband(i1,rgb(255,0,0),i2,rgb(0,255,0));
stickline(i1>i2,i1,i2,10,0),colorred;}
{差:100*(短期牛熊-长期牛熊)/长期牛熊,colormagenta,nodraw;};
{笔底分型 选股 预警 确保向下笔成立后的底分型}
v00:= high<ref(high,1) and low<ref(low,1);
v01:= high<ref(high,1) and low>ref(low,1);
v02:= high>ref(high,1) and low<ref(low,1);
v03:= high>ref(high,1) and low>ref(low,1);
v04:= ref(high,2) < high and ref(low,2) < low
and ref(high,2) > ref(high,1) and ref(low,2) < ref(low,1);
v1:= count(v00,6)>=3 and count(v01 or v02,5)=0 and llvbars(low,6) = 1 and hhvbars(high,6) >= 5 and v03;
v2:= count(v00,7)>=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 2 and hhvbars(high,7) >= 6 and v04;
v3:= count(v00,7)>=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 1 and hhvbars(high,7) >= 6 and v03;
v4:= count(v00,8)>=3 and count(v01 or v02,7)<=2 and llvbars(low,8) = 2 and hhvbars(high,8) >= 7 and v04;
v5:= count(v00,8)>=3 and count(v01 or v02,7)<=2 and llvbars(low,8) = 1 and hhvbars(high,8) >= 7 and v03;
v6:= count(v00,9)>=3 and count(v01 or v02,8)<=3 and llvbars(low,9) = 2 and hhvbars(high,9) >= 8 and v04;
v7:= count(v00,9)>=3 and count(v01 or v02,8)<=3 and llvbars(low,9) = 1 and hhvbars(high,9) >= 8 and v03;
v8:= count(v00,10)>=3 and count(v01 or v02,9)<=4 and llvbars(low,10) = 2 and hhvbars(high,10) >= 9 and v04;
v9:= count(v00,10)>=3 and count(v01 or v02,9)<=4 and llvbars(low,10) = 1 and hhvbars(high,10) >= 9 and v03;
v10:= count(v00,11)>=3 and count(v01 or v02,10)<=5 and llvbars(low,11) = 2 and hhvbars(high,11) >= 10 and v04;
xg:= v1 or v2 or v3 or v4 or v5 or v6 or v7 or v8 or v9 or v10;
drawtext(filter(xg=1,5),l*0.998,'底'),coloryellow;
{笔顶分型 选股 预警 确保向上笔成立后的顶分型}
hv00:= high>ref(high,1) and low>ref(low,1);
hv01:= high<ref(high,1) and low>ref(low,1);
hv02:= high>ref(high,1) and low<ref(low,1);
hv03:= high<ref(high,1) and low<ref(low,1);
hv04:= ref(high,2) > high and ref(low,2) > low and ref(high,2) > ref(high,1) and ref(low,2) < ref(low,1);
hv1:= count(hv00,6)>=3 and count(hv01 or hv02,5)=0 and hhvbars(high,6) = 1 and llvbars(low,6) >= 5 and hv03;
hv2:= count(hv00,7)>=3 and count(hv01 or hv02,6)=1 and hhvbars(high,7) = 2 and llvbars(low,7) >= 6 and hv04;
hv3:= count(hv00,7)>=3 and count(hv01 or hv02,6)=1 and hhvbars(high,7) = 1 and llvbars(low,7) >= 6 and hv03;
hv4:= count(hv00,8)>=3 and count(hv01 or hv02,7)<=2 and hhvbars(high,8) = 2 and llvbars(low,8) >= 7 and hv04;
hv5:= count(hv00,8)>=3 and count(hv01 or hv02,7)<=2 and hhvbars(high,8) = 1 and llvbars(low,8) >= 7 and hv03;
hv6:= count(hv00,9)>=3 and count(hv01 or hv02,8)<=3 and hhvbars(high,9) = 2 and llvbars(low,9) >= 8 and hv04;
hv7:= count(hv00,9)>=3 and count(hv01 or hv02,8)<=3 and hhvbars(high,9) = 1 and llvbars(low,9) >= 8 and hv03;
hv8:= count(hv00,10)>=3 and count(hv01 or hv02,9)<=4 and hhvbars(high,10) = 2 and llvbars(low,10) >= 9 and hv04;
hv9:= count(hv00,10)>=3 and count(hv01 or hv02,9)<=4 and hhvbars(high,10) = 1 and llvbars(low,10) >= 9 and hv03;
hv10:= count(hv00,11)>=3 and count(hv01 or hv02,10)<=5 and hhvbars(high,11) = 2 and llvbars(low,11) >= 10 and hv04;
hxg:=hv1 or hv2 or hv3 or hv4 or hv5 or hv6 or hv7 or hv8 or hv9 or hv10;
{drawtext(filter(hxg=1,3),h*1.01,'顶'),colorgreen;};
上一指标公式:好牛(通达信、附图、副图、源码)指标下载 通达信贴图
下一指标公式:短线极品老师原创的主力集散线选股指标下载 通达信公式选股
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文飞翔趋势主图-趋势和压力与支撑全都一目了然指标下载 通达信了然飞翔仅供学习研究。