drawgbk(o>c,rgb(0,50,50),rgb(66,0,0),0,'01',0);
n:=13;do:=150612;da:=150826;db:=151117;dc:=160108;
{黄金分割}
高:if (high>peak(1,n,1),hhv(high,n),peak(1,n,1))linethick2,colorblue;{最高价}
低:if (low<trough(2,n,1),llv(low,n),trough(2,n,1))linethick2,colormagenta;{最低价}
f0.191:(高-低)*0.191+低,dotline,colormagenta;
f0.382:(高-低)*0.382+低,dotline,colorcyan;
f0.500:(高-低)*0.500+低,dotline,colorwhite;
f0.618:(高-低)*0.618+低,dotline,colorcyan;
f0.809:(高-低)*0.809+低,dotline,coloryellow;
{三角背景}
趋势下:drawline(h=hhv(h,n),h,l=llv(l,n),l,0)linethick2,colorgreen;
sx:=ref(趋势下,1)<趋势下;
ss:=drawline(sx,趋势下,ref(sx,1),ref(趋势下,1),1);
drawband(ss,rgb(0,0,160),趋势下,rgb(0,0,0));
趋势上:drawline(l=llv(l,n),l,h=hhv(h,n),h,0)linethick2,colormagenta;
jx:=ref(趋势上,1)>趋势上;
jj:=drawline(jx,趋势上,ref(jx,1),ref(趋势上,1),1);
drawband(jj,rgb(0,0,0),趋势上,rgb(180,0,180));
drawkline(high,open,low,close) ;
{大资金流向}
超b:=l2_amo(0,2)/10000.0;
大b:=l2_amo(1,2)/10000.0;
中b:=l2_amo(2,2)/10000.0;
小b:=l2_amo(3,2)/10000.0;
超s:=l2_amo(0,3)/10000.0;
大s:=l2_amo(1,3)/10000.0;
中s:=l2_amo(2,3)/10000.0;
小s:=l2_amo(3,3)/10000.0;
大资金流向:(超b+大b)-(超s+大s)coloryellow,nodraw;
drawkline(high,open,low,close) ;
stickline(大资金流向<0,o,c,2,0),colorff3300;
stickline(大资金流向<0,o,c,1.2,0),colorff6600;
stickline(大资金流向<0,o,c,0.5,0),colorff9900;
stickline(大资金流向>0,o,c,2,0),color0066ff;
stickline(大资金流向>0,o,c,1.2,0),color099fff;
stickline(大资金流向>0,o,c,0.5,0),color00ffff;
{}
tl:=1000000+da;
th:=1000000+db;
tc:=1000000+dc;
to:=1000000+do;
al:=if(refdate(close,tl)>refdate(close,th),refdate(high,tl),refdate(low,tl));
bh:=if(refdate(close,tl)>refdate(close,th),refdate(low,th),refdate(high,th));
czf:=if(refdate(close,tl)>refdate(close,th),refdate(high,tc),refdate(low,tc));
djb:=if(refdate(close,tl)>refdate(close,th),refdate(low,to),refdate(high,to));
op:=bh-al+czf;
cop:=0.618*(bh-al)+czf;
xop:=if((1.618*(bh-al)+czf)<0,op,1.618*(bh-al)+czf);
today:=date;
stickline(date=tc,czf,xop,0,-1),coloryellow;
drawline(date=tc,cop,date=today,cop,1),dotline,coloryellow;
drawline(date=tc,op,date=today,op,1),dotline,coloryellow;
drawline(date=tc,xop,date=today,xop,1),dotline,coloryellow;
drawtext(date=tc,cop*1.003,'(cop=0.618)'),coloryellow;
drawtext(date=tc,op*1.003,'(op=1.000)'),coloryellow;
drawtext(date=tc,xop*1.003,'(xop=1.618)'),coloryellow;
drawnumber(date=tc,cop,cop),coloryellow;
drawnumber(date=tc,op,op),coloryellow;
drawnumber(date=tc,xop,xop),coloryellow;
drawline(date=to,djb,date=tl,al,0)circledot,colorgreen;
drawline(date=tl,al,date=th,bh,0)linethick2,coloryellow;
drawline(date=th,bh,date=tc,czf,0)linethick2,colorcyan;
{区间涨跌}{}
↑:=troughbars(2,n,1);
↓:=peakbars(1,n,1);
涨%:=if(↑<↓,(c/低-1)*100,ref((c/低-1)*100,↓));
跌%:=if(↓<↑,(c/高-1)*100,ref((c/高-1)*100,↑));
drawnumber(↑=0,低*0.99,abs(高-低)),colorgreen;
drawnumber(↓=0,高*1.02,abs(高-低)),colorred;
zhsj:=if(↓<↑,backset(islastbar,↓),if(↑<↓,backset(islastbar,↑),0));
drawtext(↓<↑ and cross(zhsj,0.1),高*1.004,'本 高'),colorgreen;
drawtext(↓<↑ and cross(zhsj,0.1),低*1.004,'本 低'),colorred;
drawtext(↓<↑ and cross(zhsj,0.1),f0.191*1.003,'80.9%'),coloryellow;
drawtext(↓<↑ and cross(zhsj,0.1),f0.382*1.003,'61.8%'),colorcyan;
drawtext(↓<↑ and cross(zhsj,0.1),f0.500*1.003,'50.0%'),colorwhite;
drawtext(↓<↑ and cross(zhsj,0.1),f0.618*1.003,'38.2%'),colorgreen;
drawtext(↓<↑ and cross(zhsj,0.1),f0.809*1.003,'19.1%'),colorred;
drawnumber(↓<↑ and cross(zhsj,0.1),高,高)colorgreen;
drawnumber(↓<↑ and cross(zhsj,0.1),f0.191,f0.191)coloryellow;
drawnumber(↓<↑ and cross(zhsj,0.1),f0.382,f0.382)colorcyan;
drawnumber(↓<↑ and cross(zhsj,0.1),f0.500,f0.500)colorgreen;
drawnumber(↓<↑ and cross(zhsj,0.1),f0.618,f0.618)colorcyan;
drawnumber(↓<↑ and cross(zhsj,0.1),f0.809,f0.809)colormagenta;
drawnumber(↓<↑ and cross(zhsj,0.1),低,低)colorred;
drawtext(↓>↑ and cross(zhsj,0.1),高*1.003,'前 高'),colorgreen;
drawtext(↓>↑ and cross(zhsj,0.1),低*1.003,'前 低'),colorred;
drawtext(↓>↑ and cross(zhsj,0.1),f0.191*1.003,'19.1%'),colorred;
drawtext(↓>↑ and cross(zhsj,0.1),f0.382*1.003,'38.2%'),colorgreen;
drawtext(↓>↑ and cross(zhsj,0.1),f0.500*1.003,'50.0%'),colorwhite;
drawtext(↓>↑ and cross(zhsj,0.1),f0.618*1.003,'61.8%'),colorcyan;
drawtext(↓>↑ and cross(zhsj,0.1),f0.809*1.003,'80.9%'),coloryellow;
drawnumber(↓>↑ and cross(zhsj,0.1),高,高)colorgreen;
drawnumber(↓>↑ and cross(zhsj,0.1),f0.809,f0.809)coloryellow;
drawnumber(↓>↑ and cross(zhsj,0.1),f0.618,f0.618)colorcyan;
drawnumber(↓>↑ and cross(zhsj,0.1),f0.500,f0.500)colorgreen;
drawnumber(↓>↑ and cross(zhsj,0.1),f0.382,f0.382)colorcyan;
drawnumber(↓>↑ and cross(zhsj,0.1),f0.191,f0.191)colormagenta;
drawnumber(↓>↑ and cross(zhsj,0.1),低,低)colorred;
上一指标公式:黄金ENE轨道主图无未来公式下载 通达信源码未来
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文三浪主图公式下载 通达信三浪主图仅供学习研究。