n:=1000;p:=5;p1:=10;{n为多少天内的高低值参数,我以自已的初始k线根数定义。p1、p2为短、长支撑压力取点参数}
a1:=ref(h,p)=hhv(h,2*p+1);
b1:=filter(a1,p);
c1:=backset(b1,p+1);
d1:=filter(c1,p);
e1:=backset(islastbar,barslast(d1)+1);
f1:=e1>ref(e1,1);
短压:drawline(d1,h,f1,h,1),colorcyan;
a2:=ref(l,p)=llv(l,2*p+1);
b2:=filter(a2,p);
c2:=backset(b2,p+1);
d2:=filter(c2,p);
e2:=backset(islastbar,barslast(d2)+1);
f2:=e2>ref(e2,1);
短支:drawline(d2,l,f2,l,1),colorlired;
aa1:=ref(h,p1)=hhv(h,2*p1+1);
bb1:=filter(aa1,p1);
cc1:=backset(bb1,p1+1);
dd1:=filter(cc1,p1);
ee1:=backset(islastbar,barslast(dd1)+1);
ff1:=ee1>ref(ee1,1);
长压:drawline(dd1,h,ff1,h,1),colorgreen;
aa2:=ref(l,p1)=llv(l,2*p1+1);
bb2:=filter(aa2,p1);
cc2:=backset(bb2,p1+1);
dd2:=filter(cc2,p1);
ee2:=backset(islastbar,barslast(dd2)+1);
ff2:=ee2>ref(ee2,1);
长支:drawline(dd2,l,ff2,l,1),colorred;
stickline(c>=o,c,o,3,0),color000045;
stickline(c>=o,c,o,2.5,0),color000065;
stickline(c>=o,c,o,2,0),color000085;
stickline(c>=o,c,o,1.5,0),color0000a5;
stickline(c>=o,c,o,1,0),color0000c5;
stickline(c>=o,c,o,0.5,0),color0000e5;
stickline(c>=o,h,l,0,0),color0000f5;
stickline(c<o,c,o,3,0),color353500;
stickline(c<o,c,o,2.5,0),color454500;
stickline(c<o,c,o,2,0),color555500;
stickline(c<o,c,o,1.5,0),color656500;
stickline(c<o,c,o,1,0),color757500;
stickline(c<o,c,o,0.5,0),color858500;
stickline(c<o,h,l,0,0),color959500;
高:=refdate(hhv(h,n),date);
低:=refdate(llv(l,n),date);
h1:=高-(高-低)*0.191;
h2:=高-(高-低)*0.382;
h3:=高-(高-低)*0.5;
h4:=高-(高-低)*0.618;
h5:=高-(高-低)*0.809;
h6:=高-(高-低)*0.764;
stickline(currbarscount=13,高,高,100,1),colorgreen;
stickline(currbarscount=13,h1,h1,100,1),colorcyan;
stickline(currbarscount=13,h2,h2,100,1),colorcccccc;
drawtext(currbarscount=1,高,' 高'),colorgreen;
drawtext(currbarscount=1,h1,'0.809'),colorcyan;
drawtext(currbarscount=1,h2,' 0.618'),colorffffff;
drawtext(currbarscount=1,h3,' 中'),coloryellow;
drawtext(currbarscount=1,h4,' 0.382'),colorlired;
drawtext(currbarscount=1,h6,' 0.236'),colorlired;
drawtext(currbarscount=1,h5,' 0.191'),colormagenta;
drawtext(currbarscount=1,低,' 低'),colorred;
stickline(currbarscount=13,h3,h3,100,1),coloryellow;
stickline(currbarscount=13,h4,h4,100,1),colorlired;
stickline(currbarscount=13,h6,h6,100,1),colorlired;
stickline(currbarscount=13,h5,h5,100,1),colormagenta;
stickline(currbarscount=13,低,低,100,1),colorred;
drawtext(currbarscount=25,高*0.99,con2str(高,2)),colorgreen;
drawtext(currbarscount=25,h1,con2str(h1,2)),colorcyan;
drawtext(currbarscount=25,h2,con2str(h2,2)),colorffffff;
drawtext(currbarscount=25,h3,con2str(h3,2)),coloryellow;
drawtext(currbarscount=25,h6,con2str(h6,2)),coloryellow;
drawtext(currbarscount=25,h4,con2str(h4,2)),colorlired;
drawtext(currbarscount=25,h5,con2str(h5,2)),colormagenta;
drawtext(currbarscount=25,低*1.01,con2str(低,2)),colorred;
上一指标公式:黄金分割加上角度线详解 通达信黄金分割
下一指标公式:点石成金量学看盘系统主图十四详解 通达信看盘系统
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文可以调整的显示价位的黄金分割主图指标详解 通达信价位指标仅供学习研究。