黄金分割线多了些,但会用还是有参考意义的。
分割线密集带,是重点关注的地方,
参数默认:n:20;ur:14;lr:20。
使用中必须调整参数来适合具体的股票。
{变异boll-m}
mid:ma(c,n),color0000a8,linethick2;
vart1:=pow((c-mid),2);
vart2:=ma(vart1,n);
vart3:=sqrt(vart2);
up1:mid+0.809*vart3,colorgreen;
up2:mid+1.809*vart3,colorligray;
lo1:mid-0.809*vart3,coloryellow;
lo2:mid-1.809*vart3,colorwhite;
{黄金分割}
tc1:=if(h=hhv(h,8*ur),h,drawnull);
tc2:=const(barslast(tc1=h))+1;
upper:=const(if(tc2=1,h,ref(h,tc2-1)));
bc1:=if(l=llv(l,8*lr),l,drawnull);
bc2:=const(barslast(bc1=l))+1;
lower:=const(if(bc2=1,l,ref(l,bc2-1)));
lp:=currbarscount<=bc2 and l=lower;{低点定位}
hp:=currbarscount<=tc2 and h=upper;{高点定位}
stickline(lp,l*0.992,l,13,0),colorff00ff;
stickline(hp,h,h*1.005,13,0),color00ff00;
x1:if(currbarscount<=max(bc2,tc2),upper,drawnull),color89615f;
x2:if(currbarscount<=max(bc2,tc2),lower,drawnull),color89615f;
x3:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.146,lower+(upper-lower)*0.146),drawnull),color89615f;
x4:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.191,lower+(upper-lower)*0.191),drawnull),color89615f;
x5:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.236,lower+(upper-lower)*0.236),drawnull),color89615f;
x6:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.382,lower+(upper-lower)*0.382),drawnull),color89615f;
x7:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.5,lower+(upper-lower)*0.5),drawnull),color89615f;
x8:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.618,lower+(upper-lower)*0.618),drawnull),color89615f;
x9:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.764,lower+(upper-lower)*0.764),drawnull),color89615f;
x10:if(currbarscount<=max(bc2,tc2),if(bc2>tc2,upper-(upper-lower)*0.809,lower+(upper-lower)*0.809),drawnull),color89615f;
drawtext(currbarscount=min(bc2,tc2)+8,x1,'upper');
drawtext(currbarscount=min(bc2,tc2)+8,x2,'lower');
drawtext(currbarscount=min(bc2,tc2)+8,x3,'0.146');
drawtext(currbarscount=min(bc2,tc2)+8,x4,'0.191');
drawtext(currbarscount=min(bc2,tc2)+8,x5,'0.236');
drawtext(currbarscount=min(bc2,tc2)+8,x6,'0.382');
drawtext(currbarscount=min(bc2,tc2)+8,x7,'0.5');
drawtext(currbarscount=min(bc2,tc2)+8,x8,'0.618');
drawtext(currbarscount=min(bc2,tc2)+8,x9,'0.764');
drawtext(currbarscount=min(bc2,tc2)+8,x10,'0.809');
{底部确认}
cb1:=const(if(tc2>bc2,lower,llv(l,tc2)));
cb2:=const(barslast(l=cb1));
cb3:=const(ref(barslast(o>c),cb2)+cb2);
cb4:=if(cb1<upper-(upper-lower)*0.52,const(if(cb2=0 and o>c,c,ref(c,cb3))),drawnull);
cb5:=if(capital=0 and bc2>tc2,cb4,drawnull);
参考线:if(capital=0 and bc2>tc2and currbarscount<=intpart(cb2+(tc2-cb2)*0.382) and currbarscount>cb2,cb4,drawnull);
drawtext(currbarscount=intpart(cb2+(tc2-cb2)*0.382),参考线,'参考线');
确底线:参考线*1.06;
drawtext(currbarscount=intpart(cb2+(tc2-cb2)*0.382),确底线,'确底线');
确防线:确底线*1.06;
drawtext(currbarscount=intpart(cb2+(tc2-cb2)*0.382),确防线,'确防线');
{提醒语}
drawtext(currbarscount=tc2-8 and cb5>0,upper-(upper-lower)*0.091,'■确底线仅仅适用于指数'),color3171d0;
drawtext(currbarscount=tc2-8 and cb5>0,upper-(upper-lower)*0.151,'■请确认已跌去前一波大行情涨幅的百分之52以上'),color3171d0;
drawtext(currbarscount=tc2-8 and cb5>0,upper-(upper-lower)*0.208,'■跌幅不够百分之52仅仅作为反弹看待而不是新底'),color3171d0;
上一指标公式:主力强势买卖及选股指标下载 通达信强势选股
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用之四或许有点用指标下载 通达信之四指标仅供学习研究。