所属地区:drawtext_fix(1,0,0,0,'地区:'),coloryellow;
drawtext_fix(1,0.05,0,0,dyblock),coloryellow;
所属行业:drawtext_fix(1,0,0.08,0,'行业:'),coloryellow;
drawtext_fix(1,0.05,0.08,0,hyblock),coloryellow;
所属概念:drawtext_fix(1,0,0.16,0,'概念:'),coloryellow;
drawtext_fix(1,0.05,0.16,0,gnblock),coloryellow;
所属风格:drawtext_fix(1,0,0.24,0,'风格:'),coloryellow;
drawtext_fix(1,0.05,0.24,0,fgblock),coloryellow;
上市日期:=const(daytodate((datetoday(date)-finance(42))))+19000000,nodraw;
drawtext_fix(1,0,0.32,0,'上市日期:'),coloryellow;
drawnumber_fix(1,0.05,0.32,0,上市日期),coloryellow;
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;{高低点出现在同一k线上时可作取舍};
h1:=(d1 and not(d2 and e1>=e2)) or islastbar or barscount(close)=1;
h2:=d1 and not(d2 and e1>=e2);
l1:=d2 and not(d1 and e1=e2);
x1:=ref(barslast(h1),1)+1; aa:=llvbars(if(l1,low,10000),x1); bb:=if(aa,aa,x1); f1:=backset(h1 and count(l1,x1)>0,bb);
g1:=f1>ref(f1,1); i1:=backset(g1,2); ld:=i1>ref(i1,1);{过滤后低点};
l2:=ld or islastbar or barscount(close)=1;
x2:=ref(barslast(l2),1)+1; f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,high,0),x2));
g2:=f2>ref(f2,1); i2:=backset(g2,2); hd:=i2>ref(i2,1);{过滤后高点};
drawline(ld,l,hd,h,0),colorgray,linethick1;
drawline(hd,h,ld,l,0),colorgray,linethick1;
j1:=backset(islastbar,min(barslast(hd),barslast(ld))+1); j2:=j1>ref(j1,1);
drawline(j2,if(hd,h,l),islastbar,if(barslast(hd)>barslast(ld),h,l),0),colorgray,linethick1;
a3:=h; b3:=ref(h,ref(barslast(hd),1)+1)>ref(h,ref(barslast(hd),1)+2+ref(barslast(hd),ref(barslast(hd),1)+2));
d3:=a3 and b3 and hd; e3:=backset(d3,ref(barslast(hd),1)+2); hh:=e3>ref(e3,1);{找出全部长期高点};
a4:=l>ref(l,ref(barslast(ld),1)+1);
b4:=ref(l,ref(barslast(ld),1)+1); d4:=a4 and b4 and ld; e4:=backset(d4,ref(barslast(ld),1)+2); ll:=e4>ref(e4,1);{找出全部长期低点};
drawicon(hh,h,2);drawicon(ll,l,1);
h3:=hh or islastbar or barscount(c)=1; {后面进行过滤,方法同前。只是不用考虑高低点出现在同一k线};
x3:=ref(barslast(h3),1)+1; f3:=backset(h3 and count(ll,x3)>0,llvbars(if(ll,l,pow(10,20)),x3));
g3:=f3>ref(f3,1); i3:=backset(g3,2); lz:=i3>ref(i3,1); {长期低点,也可供引用};
l4:=lz or islastbar or barscount(c)=1;
x4:=ref(barslast(l4),1)+1; f4:=backset(l4 and count(hh,x4)>0,hhvbars(if(hh,h,-pow(10,20)),x4));
g4:=f4>ref(f4,1); i4:=backset(g4,2); hz:=i4>ref(i4,1);{长期高点,也可供引用};
drawline(hz,h,lz,l,0),color550088,linethick1;
drawline(lz,l,hz,h,0),color550088,linethick1;{长期连线};
k1:=backset(islastbar,min(barslast(hz),barslast(lz))+1); k2:=k1>ref(k1,1);
drawline(k2,if(hz,h,l),islastbar,c,0),color550088,linethick1; {最后的长期连线,连在收盘价上};
uu:=backset(islastbar,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
drawline(xx,l,vv,l,1),color6666ff;
uu2:=backset(islastbar,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
drawline(xx2,h,vv2,h,1),color6666ff;
前一低:ref(l,barslast(vv)),color99ff66,pointdot,linethick4;
前二低:ref(l,barslast(xx)),coloryellow,crossdot;
前一高:ref(h,barslast(vv2)),color99ff66,pointdot,linethick4;
前二高:ref(h,barslast(xx2)),coloryellow,crossdot;
短高:=ref(h,barslast(vv2));
短低:=ref(l,barslast(vv));
短比:(c-短低)/(短高-短低),linethick0,nodraw;
{以下语句为三角形部分}
底:ref(l,barslast(vv)),colorred,linethick2;
顶:ref(h,barslast(vv2)),colorgreen,linethick2;
{下跌三角形:蓝色三角形画完介入}
stickline(vv,顶,底,0.1,0),colorff6633,linethick3;
drawline(vv2,h,vv,l,0),colorff6633,linethick3;{斜}
drawline(vv2,h,vv,顶,0),colorff6633,linethick3;
{上涨三角形:红色三角形画完出局}
stickline(vv2 ,顶,底,0.1,0),colorred,linethick3;
drawline(vv,l,vv2,h,0),colorred,linethick3;{斜}
drawline(vv,l,vv2,底,0),colorred,linethick3;
{涨停变黄颜色}
stickline(c>1.095*ref(c,1),c,o,2.5,0),coloryellow;
{跌停变白颜色}
stickline(c<0.905*ref(c,1),c,o,2.5,0),colorgreen;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文班长划线主图 通达信班长源码仅供学习研究。