n:=6000;
高:=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;
h7:=高-(高-低)*0.236;
stickline(currbarscount=8,高,高,0,1),colorgreen;
stickline(currbarscount=8,h1,h1,0,1),colorcyan;
stickline(currbarscount=8,h2,h2,0,1),colorcccccc;
drawtext(currbarscount=10,高,' 1.000'),colorgreen;
drawtext(currbarscount=10,h1,'0.809'),colorcyan;
drawtext(currbarscount=10,h2,' 0.618'),colorffffff;
drawtext(currbarscount=10,h3,' 0.500'),coloryellow;
drawtext(currbarscount=10,h4,' 0.382'),colorlired;
drawtext(currbarscount=10,h6,' 0.236'),colorgreen;
drawtext(currbarscount=10,h5,' 0.191'),colormagenta;
drawtext(currbarscount=10,h7,' 0.764'),colorred;
drawtext(currbarscount=10,低,' 0.000'),colorred;
stickline(currbarscount=8,h3,h3,0,1),coloryellow;
stickline(currbarscount=8,h4,h4,0,1),colorlired;
stickline(currbarscount=8,h6,h6,0,1),colorgreen;
stickline(currbarscount=8,h5,h5,0,1),colormagenta;
stickline(currbarscount=8,低,低,0,1),colorred;
stickline(currbarscount=8,h7,h7,0,1),colorred;
drawtext(currbarscount=50,高*0.99,con2str(高,2)),colorgreen;
drawtext(currbarscount=50,h1,con2str(h1,2)),colorcyan;
drawtext(currbarscount=50,h2,con2str(h2,2)),colorffffff;
drawtext(currbarscount=50,h3,con2str(h3,2)),coloryellow;
drawtext(currbarscount=50,h6,con2str(h6,2)),colorgreen;
drawtext(currbarscount=50,h4,con2str(h4,2)),colorlired;
drawtext(currbarscount=50,h5,con2str(h5,2)),colormagenta;
drawtext(currbarscount=50,h7,con2str(h7,2)),colorred;
drawtext(currbarscount=50,低*1.01,con2str(低,2)),colorred;
hday:=800;lday:=800;调点:=3;角度:=100;
curr:=currbarscount;
tch:=const(findhigh(h,0,hday*10,1));
gtt:=const(barslast(tch=h))+1;
sx跌h:=const(if(gtt=1,h,ref(h,gtt-1)));
bcl:=const(findlow(l,0,lday*10,1));
dtt:=const(barslast(bcl=l))+1;
sx涨l:=const(if(dtt=1,l,ref(l,dtt-1)));
涨点:=barssince(backset(islastbar,barslast(l=sx涨l)+1));
跌点:=barssince(backset(islastbar,barslast(h=sx跌h)+1));
最低:=if(调点=1,跌点,if(调点=2,涨点,if(调点=3,涨点,跌点)));
l斜率:=角度/if(c<300,1000,10);
最高:=if(调点=1,跌点,if(调点=2,涨点,if(调点=3,跌点,涨点)));
h斜率:=角度/if(c<300,1000,10);
im68:=((sx跌h-sx涨l)/6-(sx跌h-sx涨l)/8);
gh跌x:=sx跌h+(sx跌h-sx涨l)/8;
dl涨x:=sx涨l-(sx跌h-sx涨l)/8;
gtht:=if(dtt>gtt,dtt,gtt);
{黄金分割}
x000:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.000,drawnull),dotline,color556600;
drawtext(curr=gtht,(x000)*1.001,strcat(' 0.000 ',con2str(x000,2))),colorf5cceb;
x191:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.191,drawnull),dotline,color556600;
drawtext(curr=gtht,(x191)*1.001,strcat(' 0.191 ',con2str(x191,2))),colorf5cceb;
x236:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.236,drawnull),dotline,color556600;
drawtext(curr=gtht,(x236)*1.001,strcat(' 0.236 ',con2str(x236,2))),colorf5cceb;
x382:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.382,drawnull),dotline,color556600;
drawtext(curr=gtht,(x382)*1.001,strcat(' 0.382 ',con2str(x382,2))),colorf5cceb;
x500:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.500,drawnull),dotline,color556600;
drawtext(curr=gtht,(x500)*1.001,strcat(' 0.500 ',con2str(x500,2))),colorf5cceb;
x618:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.618,drawnull),dotline,color556600;
drawtext(curr=gtht,(x618)*1.001,strcat(' 0.618 ',con2str(x618,2))),colorf5cceb;
x764:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.764,drawnull),dotline,color556600;
drawtext(curr=gtht,(x764)*1.001,strcat(' 0.764 ',con2str(x764,2))),colorf5cceb;
x809:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.809,drawnull),dotline,color556600;
drawtext(curr=gtht,(x809)*1.001,strcat(' 0.809 ',con2str(x809,2))),colorf5cceb;
x1:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*1.000,drawnull),dotline,color556600;
drawtext(curr=gtht,(x1)*1.001,strcat(' 1.000. ',con2str(x1,2))),colorf5cceb;
上一指标公式:斐波那契周期角度线详解 通达信角度通达信
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文双向黄金分割指标详解 通达信双向指标仅供学习研究。