自动画线压力支撑
该公式包含未来函数:zig
该公式包含未来函数:backset
生命线:ema(((slope(close,21) * 20) + close),45),coloryellow,linethick2;
if(c>=生命线,生命线,drawnull),coloryellow,linethick2;
if(c<生命线,生命线,drawnull),colorblue,linethick2;
highn:=10;lown:=10;highdisplay:=0;lowdisplay:=0;zgdisplay:=0;madisplay:=0;
aa:=ref(h,highn)=hhv(h,2*highn+1);
qy:=backset(aa,highn+1);
cc:=filter(qy,highn) and h=hhv(h,highn+1);
drawicon(cc,h*1.005,2);
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,currbarscount=gdcs1,h,1) colorff00ff,linethick1;
drawline(currbarscount=gdcs2,h,islastbar,ref(h,gdcs2-1),1),color0055ff,pointdot;
drawline(currbarscount=gdcs1,h,islastbar,ref(h,gdcs1-1),1),coloryellow,pointdot;
aa1:=ref(l,lown)=llv(l,2*lown+1);
qy1:=backset(aa1,lown+1);
cc1:=filter(qy1,lown) and l=llv(l,lown+1);
drawicon(cc1,l*0.995,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,currbarscount=ddcs1,l,1) colorff00ff,linethick1;
zgstar:=(高压+低支)/2;
zgend:=const((高压+低支)/2);
starday:=if(ddcs2<gdcs2,ddcs2,gdcs2);
中轨:drawline(currbarscount=starday,zgstar,islastbar,zgend,1),colorff00ff,linethick1;
drawline(currbarscount=ddcs1,l,islastbar,ref(l,ddcs1-1),1),colormagenta,pointdot,;
drawline(currbarscount=ddcs2,l,islastbar,ref(l,ddcs2-1),1),colorcyan,pointdot;
n:=14;{出现买字在线上买,生命线走平或开始向上翘}
k:=n/2;{出现卖字下线卖,生命线走平或向下拐头}
mak:ma(close,k),colorred,linethick1;
man:ma(close,n),colorff0000,linethick1;
dtpl:=ma(c,n)>ma(c,n*1.5) and ma(c,n*1.5)>ma(c,n*3) and ma(c,3)>ma(c,n*6);
选择均线:=n,pointdot,coloryellow;
强弱天数:=k,pointdot,colorff00ff;
连续走强:=count(c>ma(c,n),k)=k;
zqsj:=barslast(连续走强);
{stickline(连续走强 ,0 ,k*0.3 ,5 ,1 ),coloryellow;}
下穿:=cross(ma(c,n),c);
gl:=ma(c,n/2)/ma(c,n*2)>=1.05;
买跌:=(下穿 and zqsj<=3 and dtpl and gl)*n,color00ff00,linethick2;
连续走弱:=count(c<ma(c,n),k)=k;
zrsj:=barslast(连续走弱);
{stickline(连续走弱 ,0 ,k*-0.3 ,5 ,1 ),color00ff00;}
上穿:=cross(c,ma(c,n));
买涨:=(上穿 and zrsj<=3)*k,colorff00ff,linethick2;
{以下设置显示方式:}
drawtext(买涨>0 ,l*0.991 , '买'),coloryellow,linethick1;
stickline(买涨>0,h,l,0,1),colorf00ff0,linethick2;
stickline(买涨>0,o,c,2,0),colorf00ff0,linethick2;
drawtext(买跌>0 ,l*0.991 , '跌'),color00ff00,linethick1;
stickline(买跌>0 ,h,l,0,1),color00ff00,linethick2;
stickline(买跌>0 ,o,c,2,0),color00ff00,linethick2;
v1:=ma(high,30)*1.10;
v2:=ma(high,3)*1.02;
v3:=ma(low,3)*0.98;
v4:=ma(low,30)*0.90;
pl5:=zig(3,5);
en1:=zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2) and ref(zig(3,5),2)<=ref(zig(3,5),3);
ex1:=zig(3,5)=ref(zig(3,5),2) and ref(zig(3,5),2)>=ref(zig(3,5),3);
pl10:=zig(3,10);
en2:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<=ref(zig(3,10),2) and ref(zig(3,10),2)<=ref(zig(3,10),3);
ex2:=zig(3,10)=ref(zig(3,10),2) and ref(zig(3,10),2)>=ref(zig(3,10),3);
pl20:=zig(3,20);
en3:=zig(3,20)>ref(zig(3,20),1) and ref(zig(3,20),1)<=ref(zig(3,20),2) and ref(zig(3,20),2)<=ref(zig(3,20),3);
ex3:=zig(3,20)=ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
pl40:=zig(3,40);
走强1:=barslast(pl5<ref(pl5,1));
走弱1:=barslast(pl5>ref(pl5,1));
走强2:=barslast(pl10<ref(pl10,1));
走弱2:=barslast(pl10>ref(pl10,1));
走强3:=barslast(pl20<ref(pl20,1));
走弱3:=barslast(pl20>ref(pl20,1));
ztjz5:=if(pl10>ref(pl10,1),count(en1,走强2),0);
ztjd5:=if(pl10>ref(pl10,1),count(ex1,走强2),0);
dtjz5:=if(pl10<ref(pl10,1),count(en1,走弱2),0);
dtjd5:=if(pl10<ref(pl10,1),count(ex1,走弱2),0);
ztjz10:=if(pl20>ref(pl20,1),count(en2,走强3),0);
ztjd10:=if(pl20>ref(pl20,1),count(ex2,走强3),0);
dtjz10:=if(pl20<ref(pl20,1),count(en2,走弱3),0);
dtjd10:=if(pl20<ref(pl20,1),count(ex2,走弱3),0);
drawtext(en1 and dtjz5=1,l*0.98,'a'),colorffff00;
drawtext(ex1 and dtjd5=2,h*1.02,'b'),colorffff00;
drawtext(en2 and ztjz5=1,l*0.96,'c买'),colorffff00;
drawtext(ex1 and pl10>ref(pl10,1) and ztjd5=1,h*1.01,'⑴'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=2,l*0.99,'⑵'),color0000ff;
drawtext(ex1 and pl10>ref(pl10,1) and ztjz5=2,h*1.01,'⑶'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=3,l*0.99,'⑷'),color0000ff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.01,'⑸'),color0000ff;
drawtext(en2 and dtjz10=1,l*0.95,'1短'),colorff6000;
drawtext(ex2 and dtjd10=2,h*1.04,'2'),colorff6000;
drawtext(en3 and ztjz10=1,l*0.94,'3买'),colorff6000;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.03,'一卖'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=2,l*0.98,'二补'),linethick3,color00ffff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2) and ex2,h*1.03,'三清'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=3,l*0.95,'四持'),linethick3,color00ffff;
上一指标公式:主力进场和主力洗盘优化指标下载 通达信源码进场
下一指标公式:底背离指标下载 通达信底背离
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自动画线压力支撑指标下载 通达信压力画线仅供学习研究。