{长中短期中枢线05}
a1:=ref(high,3)=hhv(high,2*3+1);
b1:=filter(a1,3);
c1:=backset(b1,3+1);
d1:=filter(c1,3);
a2:=ref(low,3)=llv(low,2*3+1);
b2:=filter(a2,3);
c2:=backset(b2,3+1);
d2:=filter(c2,3);
e1:=(ref(llv(low,2*3),1)+ref(hhv(high,2*3),1))/2;
e2:=(high+low)/2;
h1:=d1 and not(d2 and e1>=e2) or barstatus=2 or barscount(close)=1;
l1:=d2 and not(d1 and e1=e2);
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,low,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);
l2:=ld or barstatus=2 or barscount(close)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h1,x2)>0,hhvbars(if(h1,high,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);
drawline(ld,low,hd,high,0),pointdot,linethick1,colorffffff;
drawline(hd,high,ld,low,0),pointdot,linethick1,colorffffff;
平均线:ma(close,mm),linethick2;
partline(平均线>ref(平均线,1),平均线),linethick2,colorff;
drawicon(cross(zig(3,10),ref(zig(3,10),1)),low*0.9998,4);
drawicon(cross(ref(zig(3,10),1),zig(3,10)),high*1.0002,5);
var1:=if(date<1089999991020,1,100);
ty:=close*var1;
hd:=filter(backset(filter(ref(ty,n1n)=hhv(ty,2*n1n+1),n1n),n1n+1),n1n);
ld:=filter(backset(filter(ref(ty,n1n)=llv(ty,2*n1n+1),n1n),n1n+1),n1n);
a:=ref(close,barslast(hd))*var1;
b:=ref(close,barslast(ld))*var1;
t1:=barslast(hd)<barslast(ld) and not(hd);
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:=if(t1,a,a);
波浪底:=if(t2,b,b);
长期中枢线a:drawsl(islastbar,波浪顶,0,0,1),linethick2,colorffff;
长期中枢线b:drawsl(islastbar,波浪底,0,0,1),linethick2,colorffff;
中枢c1:=(abs(波浪顶-波浪底))/2;
中枢c:=波浪顶-中枢c1;
长期618线:drawsl(islastbar,中枢c,0,0,1),pointdot,colorffff;
ty2:=close*var1;
hd2:=filter(backset(filter(ref(ty2,n12)=hhv(ty2,2*n12+1),n12),n12+1),n12);
ld2:=filter(backset(filter(ref(ty2,n12)=llv(ty2,2*n12+1),n12),n12+1),n12);
a2:=ref(close,barslast(hd2));
b2:=ref(close,barslast(ld2));
t12:=barslast(hd2)<barslast(ld2) and not(hd2);
t22:=barslast(hd2)>barslast(ld2) and not(ld2);
波浪顶2:=if(t12,a2,a2);
波浪底2:=if(t22,b2,b2);
短期中枢线a:drawsl(islastbar,波浪顶2,0,0,1),linedash,color80ff00;
短期中枢线b:drawsl(islastbar,波浪底2,0,0,1),linedash,color80ff00;
ty2:=close*var1;
hd3:=filter(backset(filter(ref(ty2,n13)=hhv(ty2,2*n13+1),n13),n13+1),n13);
ld3:=filter(backset(filter(ref(ty2,n13)=llv(ty2,2*n13+1),n13),n13+1),n13);
a3:=ref(close,barslast(hd3));
b3:=ref(close,barslast(ld3));
t13:=barslast(hd3)<barslast(ld3) and not(hd3);
t23:=barslast(hd3)>barslast(ld3) and not(ld3);
波浪顶3:=if(t13,a3,a3);
波浪底3:=if(t23,b3,b3);
中期中枢线a:drawsl(islastbar,波浪顶3,0,0,1),colorff;
中期中枢线b:drawsl(islastbar,波浪底3,0,0,1),colorff;
wx:=ma(close,0);
c1:=ref(close,1);
c2:=hhv(c1,2);
c3:=llv(c1,1);
et:=hhv(c1,2);
et1:=ref(et,1);
xb:=llv(c1,1);
xb1:=ref(xb,1);
m:=barslast(close<xb and c1>=xb1);
m11:=ref(m,1);
n9:=barslast(close>et and c1<=et1);
n1:=ref(n9,1);
m21:=(barslast(m-n9>0 and m11<=n1))+1;
n2:=(barslast(n9-m>0 and n1<=m11))+1;
et2:=hhv(et,m21);
xb2:=llv(xb,n2);
a:=if(m-n9>0 and m11<=n1,1,if(n9-m>0 and n1<=m11,0,2));
h1:=if(m-n9>0,close,et2);
h2:=if(a=1,close,c2);
h3:=if(m-n9<0,close,xb2);
h4:=if(a=1,close,xb2);
h5:=if(m-n9>0 or a=1,close,h3);
h6:=ref(h5,1);
h8:=h5>h6;
h9:=h4=ref(h4,1) and ref(h4,1)<ref(h4,2) and h5>ref(h5,2);
h10:=h2=ref(h2,1) and h4=ref(h4,1) and h5=ref(h5,2);
w:=(h8 or h9 or h10)*p;
t9:=h5<h6 and h5<ref(h5,2);
t10:=h4=ref(h4,1) and h5<ref(h5,2);
t11:=h3>ref(h3,1) and h5<ref(h5,1);
t12:=h5=ref(h5,1) and h3=h4;
t13:=h2=ref(h2,1) and h2=h5;
tw:=(t9 or t10 or t11 or t12 or t13)*p;
bbp:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
stickline(islastbar and w,h5*1.025,h5*0.99,0.5,0),shift1,colorff;
stickline(islastbar and w,h5*1.02,h5,8,0),shift1,color8899;
stickline(islastbar and w,h5*1.02,h5,8,0),shift1,color8899;
stickline(islastbar and w,h5*1.02,h5,7,0),shift1,color1199aa;
stickline(islastbar and w,h5*1.02,h5,6,0),shift1,color22aabb;
stickline(islastbar and w,h5*1.02,h5,5,0),shift1,color33bbcc;
stickline(islastbar and w,h5*1.02,h5,4,0),shift1,color44ccdd;
stickline(islastbar and w,h5*1.02,h5,3,0),shift1,color55ddee;
stickline(islastbar and w,h5*1.02,h5,2,0),shift1,color66eeee;
stickline(islastbar and w,h5*1.02,h5,1,0),shift1,color77ffee;
stickline(islastbar and tw,(h5+h4)/1.96,(h5+h3)/2.05,0.5,0),shift1,colorff8800;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,8,0),shift1,color8800;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,8,0),shift1,color8800;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,7,0),shift1,color9900;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,6,0),shift1,coloraa00;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,5,0),shift1,colorbb00;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,4,0),shift1,colorcc00;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,3,0),shift1,colordd00;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,2,0),shift1,coloree00;
stickline(islastbar and tw,(h5+h4)/1.99,(h5+h3)/2.03,1,0),shift1,colorff00;
上一指标公式:压力支撑线公式 飞狐支撑指标 源码
下一指标公式:分时叠加大盘线RSI公式 飞狐大盘RSI指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文长中短期中枢线05公式 飞狐中短期指标 源码仅供学习研究。