n1:=20;
n2:=10;
n3:=5;
aa:=ref(h,n1)=hhv(h,2*n1+1);
qy:=backset(aa,n1+1);
cc:=filter(qy,n1) and h=hhv(h,n1+1);
ddd:=barslast(cc);
gdts:=if(cc,currbarscount,0);
dingbu:=if(ddd,ref(h,ddd),h);{顶部}
dingbuts:=if(ddd,ref(gdts,ddd),gdts);
dingbu1:=ref(dingbu,ddd+1);
gdcs1:=const(dingbuts);
dingbuts1:=ref(dingbuts,ddd+1);
gdcs2:=const(dingbuts1);
dingbu2:=ref(dingbu1,ddd+1);
mm:=if(currbarscount>gdcs2,0,1);
{drawline(currbarscount=gdcs2,h,islastbar,ref(h,gdcs2-1),1),color0055ff,pointdot,linethick2;
drawline(currbarscount=gdcs1,h,islastbar,ref(h,gdcs1-1),1),coloryellow,pointdot,linethick2;}
aa1:=ref(l,n1)=llv(l,2*n1+1);
qy1:=backset(aa1,n1+1);
cc1:=filter(qy1,n1) and l=llv(l,n1+1);
dd1:=barslast(cc1);
ddts:=if(cc1,currbarscount,0);
ydb:=if(dd1,ref(l,dd1),l);
ddts1:=if(dd1,ref(ddts,dd1),ddts);
ddcs1:=const(ddts1);
zdb:=ref(ydb,dd1+1);
ddts2:=ref(ddts1,dd1+1);
ddcs2:=const(ddts2);
{drawline(currbarscount=ddcs2,l,islastbar,ref(l,ddcs2-1),1),color0055ff,pointdot,linethick2;
drawline(currbarscount=ddcs1,l,islastbar,ref(l,ddcs1-1),1),coloryellow,pointdot,linethick2;}
laa:=ref(h,n2)=hhv(h,2*n2+1);
lqy:=backset(laa,n2+1);
lcc:=filter(lqy,n2) and h=hhv(h,n2+1);
lddd:=barslast(lcc);
lgdts:=if(lcc,currbarscount,0);
ldingbu:=if(lddd,ref(h,lddd),h);{顶部}
ldingbuts:=if(lddd,ref(lgdts,lddd),lgdts);
ldingbu1:=ref(ldingbu,lddd+1);
lgdcs1:=const(ldingbuts);
ldingbuts1:=ref(ldingbuts,lddd+1);
lgdcs2:=const(ldingbuts1);
ldingbu2:=ref(ldingbu1,lddd+1);
lmm:=if(currbarscount>lgdcs2,0,1);
{drawline(currbarscount=lgdcs2,h,islastbar,ref(h,lgdcs2-1),1),color0055ff,pointdot;
drawline(currbarscount=lgdcs1,h,islastbar,ref(h,lgdcs1-1),1),coloryellow,pointdot;}
laa1:=ref(l,n2)=llv(l,2*n2+1);
lqy1:=backset(laa1,n2+1);
lcc1:=filter(lqy1,n2) and l=llv(l,n2+1);
ldd1:=barslast(lcc1);
lddts:=if(lcc1,currbarscount,0);
lydb:=if(ldd1,ref(l,ldd1),l);
lddts1:=if(ldd1,ref(lddts,ldd1),lddts);
lddcs1:=const(lddts1);
lzdb:=ref(lydb,ldd1+1);
lddts2:=ref(lddts1,dd1+1);
lddcs2:=const(lddts2);
ddyl2:=drawline(currbarscount=lgdcs2,h,currbarscount=lgdcs1,h,1) colorwhite;
ddzc2:=drawline(currbarscount=lddcs2,l,currbarscount=lddcs1,l,1) colorwhite;
zgstar:=(ddyl2+ddzc2)/2;
zgend:=const((ddyl2+ddzc2)/2);
starday:=if(ddcs2<gdcs2,ddcs2,gdcs2);
llaa:=ref(h,n3)=hhv(h,2*n3+1);
llqy:=backset(llaa,n3+1);
llcc:=filter(llqy,n3) and h=hhv(h,n3+1);
llddd:=barslast(llcc);
llgdts:=if(llcc,currbarscount,0);
lldingbu:=if(llddd,ref(h,llddd),h);{顶部}
lldingbuts:=if(llddd,ref(llgdts,llddd),llgdts);
lldingbu1:=ref(lldingbu,llddd+1);
llgdcs1:=const(lldingbuts);
lldingbuts1:=ref(lldingbuts,llddd+1);
llgdcs2:=const(lldingbuts1);
lldingbu2:=ref(lldingbu1,llddd+1);
llmm:=if(currbarscount>lgdcs2,0,1);
{drawline(currbarscount=llgdcs2,h,islastbar,ref(h,llgdcs2-1),1),color0055ff,pointdot;
drawline(currbarscount=llgdcs1,h,islastbar,ref(h,llgdcs1-1),1),coloryellow,pointdot;}
llaa1:=ref(l,n3)=llv(l,2*n3+1);
llqy1:=backset(llaa1,n3+1);
llcc1:=filter(llqy1,n3) and l=llv(l,n3+1);
lldd1:=barslast(lcc1);
llddts:=if(llcc1,currbarscount,0);
llydb:=if(lldd1,ref(l,lldd1),l);
llddts1:=if(lldd1,ref(llddts,lldd1),lddts);
llddcs1:=const(llddts1);
llzdb:=ref(llydb,lldd1+1);
llddts2:=ref(llddts1,dd1+1);
llddcs2:=const(llddts2);
gdyl3:=drawline(currbarscount=llgdcs2,h,currbarscount=llgdcs1,h,1) coloryellow;
ddzc3:=drawline(currbarscount=llddcs2,l,currbarscount=llddcs1,l,1) coloryellow;
lzgstar:=(gdyl3+ddzc3)/2;
lzgend:=const((gdyl3+ddzc3)/2);
lstarday:=if(llddcs2<llgdcs2,llddcs2,llgdcs2);
gdyl1:=drawline(currbarscount=gdcs2,h,currbarscount=gdcs1,h,1) colorred;
ddzc1:=drawline(currbarscount=ddcs2,l,currbarscount=ddcs1,l,1) colorred;
长线压力:ddzc1+(gdyl1-ddzc1)*0.809,colorred;
长线支撑:ddzc1+(gdyl1-ddzc1)*0.191,colorred;
中线压力:ddzc2+(ddyl2-ddzc2)*0.809,colorgreen;
中线支撑:ddzc2+(ddyl2-ddzc2)*0.191,colorgreen;
短线压力:ddzc3+(gdyl3-ddzc3)*0.809,colorblue;
短线支撑:ddzc3+(gdyl3-ddzc3)*0.191,colorblue;
l中轨:drawline(currbarscount=lstarday,lzgstar,islastbar,lzgend,1),coloryellow;
中轨:drawline(currbarscount=starday,zgstar,islastbar,zgend,1),colorwhite;
长gdyl:drawline(currbarscount=gdcs2,h,currbarscount=gdcs1,h,1) colorred,pointdot;
长ddzc:drawline(currbarscount=ddcs2,l,currbarscount=ddcs1,l,1) colorred,pointdot;
中ddyl:drawline(currbarscount=lgdcs2,h,currbarscount=lgdcs1,h,1) colorwhite,pointdot;
中ddzc:drawline(currbarscount=lddcs2,l,currbarscount=lddcs1,l,1) colorwhite,pointdot;
短gdyl:drawline(currbarscount=llgdcs2,h,currbarscount=llgdcs1,h,1) coloryellow,pointdot;
短ddzc:drawline(currbarscount=llddcs2,l,currbarscount=llddcs1,l,1) coloryellow,pointdot;
上一指标公式:抄底不败副图指标详解 通达信不败源码
下一指标公式:强势整理副图选股指标详解 通达信强势源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主图画线指标详解 通达信源码通达信仅供学习研究。