炒股软件:请教,相邻两个波段的高点用直线连接,公式怎么编写?通达信的,谢谢

譿珺? 2024-05-20 08:51:56
最佳回答
主图公式:支撑压力射线加黄金分割n:=75;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(**lastbar,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(**lastbar,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(**lastbar,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(**lastbar,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;drawtext(currbarscount=1,高,'高'),colorgreen;drawtext(currbarscount=1,h1,'809'),colorcyan;drawtext(currbarscount=1,h2,'618'),colorgray;drawtext(currbarscount=1,h3,'中'),coloryellow;drawtext(currbarscount=1,h4,'382'),colorlired;drawtext(currbarscount=1,h5,'191'),colormagenta;drawtext(currbarscount=1,低,'低'),colorred;stickline(currbarscount=13,高,高,100,-1),colorgreen;stickline(currbarscount=13,h1,h1,100,-1),colorcyan;stickline(currbarscount=13,h2,h2,100,-1),colorgray;stickline(currbarscount=13,h3,h3,100,-1),coloryellow;stickline(currbarscount=13,h4,h4,100,-1),colorlired;stickline(currbarscount=13,h5,h5,100,-1),colormagenta;stickline(currbarscount=13,低,低,100,-1),colorred;-----------------------------------------------------------------------------{注意:公式画线有未来函数,使用时注意一点)百度知道股票分类管理团队队员为您答复。回答完毕! 20210311
汇率兑换计算器

类似问答
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。