【短线主图】
用法:
红持股 绿持币
见黄进 见白出
压力线上有争夺!
请用6.12的朋友到股软区下刘老总同学提供的tcalc.rar补丁
{短线主图 n=6}
下档线:=(((close - llv(low,13)) / (hhv(high,13) - llv(low,13))) * 100);
rrrsv:=sma(下档线,3,1);
kkk:=sma(rrrsv,3,1);
ddddd:=((3 * rrrsv) - (2 * kkk));
jj12:=(((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100);
rsv24:=sma(jj12,3,1);
k24:=sma(rsv24,3,1);
d24:=((3 * rsv24) - (2 * k24));
压力:if(cross(d24,ddddd),high,ref(high,barslast(cross(d24,ddddd)))),colorffffff;
底部:llv(high,30),color00ff00;
aa:=ref(h,n)=hhv(h,2*n+1); aa1:=ref(l,n)=llv(l,2*n+1);
qy:=backset(aa,n+1); qy1:=backset(aa1,n+1);
cc:=filter(qy,n) and h=hhv(h,n+1); cc1:=filter(qy1,n) and l=llv(l,n+1);
ddd:=barslast(cc); dd1:=barslast(cc1);
gdts:=if(cc,currbarscount,0); ddts:=if(cc1,currbarscount,0);
dingbuts:=if(ddd,ref(gdts,ddd),gdts); ddts1:=if(dd1,ref(ddts,dd1),ddts);
gdcs1:=const(dingbuts); ddcs1:=const(ddts1);
gdcs13:=const(ref(high,gdcs1-1)); ddcs13:=const(ref(l,ddcs1-1));
dingbuts1:=ref(dingbuts,ddd+1); ddts2:=ref(ddts1,dd1+1);
gdcs2:=const(dingbuts1); ddcs2:=const(ddts2);
gdcs23:=const(ref(high,dingbuts1-1)); ddcs23:=const(ref(l,ddts2-1));
xg1:=backset(islastbar,gdcs1); xd1:=backset(islastbar,ddcs1);
xg2:=backset(islastbar,dingbuts1); xd2:=backset(islastbar,ddts2);
xdd:=if(ddcs13<=ddcs23,xd1,xd2);
m:=intpart(3*n/5);
aaa:=ref(h,m)=hhv(h,2*m+1);
qyy:=backset(aaa,m+1);
ccc:=filter(qyy,m) and h=hhv(h,m+1);
dddd:=barslast(ccc),nodraw;
gdtss:=if(ccc,currbarscount,0);
dingbutss:=if(dddd,ref(gdtss,dddd),gdtss);
gdcs11:=const(dingbutss);
dingbuts11:=ref(dingbutss,dddd+1);
gdcs22:=const(dingbuts11);
aa11:=ref(l,m)=llv(l,2*m+1);
qy11:=backset(aa11,m+1);
cc11:=filter(qy11,m) and l=llv(l,m+1);
dd11:=barslast(cc11);
ddtss:=if(cc11,currbarscount,0);
ddts11:=if(dd11,ref(ddtss,dd11),ddtss);
ddcs11:=const(ddts11);
ddts22:=ref(ddts11,dd11+1);
ddcs22:=const(ddts22);
hh1:= ref(h,gdcs1-1),nodraw;
hh2:= ref(h,gdcs2-1),nodraw;
hh11:= ref(h,gdcs11-1),nodraw;
hh22:= ref(h,gdcs22-1),nodraw;
ghh1:=max(max(ref(h,gdcs1-1),ref(h,gdcs2-1)),max(ref(h,gdcs11-1),ref(h,gdcs22-1))),nodraw;
dll1:=min(min(ref(l,ddcs1-1),ref(l,ddcs2-1)),min(ref(l,ddcs11-1),ref(l,ddcs22-1))),nodraw;
ghh:=max(ghh1,hhv(h,10));
dll:=min(dll1,llv(l,10));
dx1:=(ref(h,gdcs1-1)-ref(h,gdcs2-1))/(gdcs2-gdcs1),nodraw;
dx2:=(ref(h,gdcs11-1)-ref(h,gdcs22-1))/(gdcs22-gdcs11),nodraw;
ggaa:=dx1>0 and (ref(h,(gdcs1-1))+dx1*gdcs1)>ghh*1.05,nodraw;
ggab:=dx1<0 and (ref(h,(gdcs1-1))+dx1*gdcs1)<dll*0.95,nodraw;
ddx1:=if(ggaa or ggab,0,1),nodraw;
ggba:=dx2>0 and (ref(h,(gdcs11-1))+dx2*gdcs11)>ghh*1.05,nodraw;
ggbb:=dx2<0 and (ref(h,(gdcs11-1))+dx2*gdcs11)<dll*0.95,nodraw;
dddx1:=if(ggba or ggbb,0,1),nodraw;
lx1:=(ref(l,ddcs1-1)-ref(l,ddcs2-1))/(ddcs2-ddcs1),nodraw;
lx2:=(ref(l,ddcs11-1)-ref(l,ddcs22-1))/(ddcs22-ddcs11),nodraw;
ddaa:=lx1<0 and (ref(l,(ddcs1-1))+lx1*ddcs1)<dll*0.95,nodraw;
ddab:=lx1>0 and (ref(l,(ddcs1-1))+lx1*ddcs1)>ghh*1.05,nodraw;
llx1:=if(ddaa or ddab,0,1);
ddba:=lx2<0 and (ref(l,(ddcs11-1))+lx2*ddcs11)<dll*0.95,nodraw;
ddbb:=lx2>0 and (ref(l,(ddcs11-1))+lx2*ddcs11)>ghh*1.05,nodraw;
lllx1:=if(ddba or ddbb,0,1),nodraw;
高压力:drawline(currbarscount=gdcs2,h,currbarscount=gdcs1,h,ddx1),coloryellow,linethick1;
低支撑:drawline(currbarscount=ddcs2,l,currbarscount=ddcs1,l,llx1),coloryellow,linethick1;
drawline(currbarscount=gdcs22 ,h,currbarscount=gdcs11,h,dddx1),colorred,linethick1;
drawline(currbarscount=ddcs22 ,l,currbarscount=ddcs11,l,lllx1),colorred,linethick1;
as:=(h+(h-(l-(h-l)))-llv(l,12))/(hhv(h+(h-l),12)-llv(l,12));
as1:=sma(as,12,1);
as2:=sma(as1,12,1);
as3:=3*as1-2*as2 ;
as4:=2*as3-0.5;
as5:=c*(1-(as4-as2)/30);
aaa1:=30*as5+29*ref(as5 ,1 )+28*ref(as5 ,2 )+27*ref(as5 ,3 )+26*ref(as5 ,4 )+25*ref(as5 ,5 )
+24*ref(as5 ,6 )+23*ref(as5 ,7 )+22*ref(as5 ,8 )+21*ref(as5 ,9 )+20*ref(as5 ,10 )
+19*ref(as5 ,11 )+18*ref(as5 ,12 )+17*ref(as5 ,13 )+16*ref(as5 ,14 )+15*ref(as5 ,15 )
+14*ref(as5 ,16 )+13*ref(as5 ,17 )+12*ref(as5 ,18 )+11*ref(as5 ,19 )+10*ref(as5 ,20 )
+9*ref(as5 ,21 )+8*ref(as5 ,22 )+7*ref(as5 ,23 )+6*ref(as5 ,24 )+5*ref(as5 ,25 )
+4*ref(as5 ,26 )+3*ref(as5 ,27 )+2*ref(as5 ,28 )+ref(as5 ,29 );
as51:=aaa1/465;
生命线◆:(3*as51+2*ref(as51,2)+ref(as51,1))/6,colora6a9ff,pointdot,linethick5;
b1:=ref(close,1);
b2:=ref(close,2);
b3:=ref(close,3);
b4:=ref(close,4);
cmax:=max(max(max(close,b1),b2),b3);
cmin:=min(min(min(close,b1),b2),b3);
持股:=(close=cmax and (b1>=b2 or b1>=b3)) or ((b1=cmax and (b2=cmin or b3=cmin)) and close>=b2) or
(b2=cmax and b3=cmin and close>=b1) or (b3=cmax and close>=b1 and close>=b2);
stickline(持股,b1,close,3.5,0),color000099;
变盘:=close=cmax and b1=cmin;
stickline(变盘,b2,close,3.5,0),color0099ef;
下跌:=(close=cmin and (b1<b2 or b1<b3)) or ((b1=cmin and (b2=cmax or b3=cmax)) and close<b2) or
(b2=cmin and b3=cmax and close<b1) or (b3=cmin and close<b1 and close<b2);
stickline(下跌,b1,close,3.5,0),color009900;
stickline(b1=cmax and close=cmin,b2,close,3.5,0),color009900;
买入:=(b1=cmin and close>=b2) or ((b2=cmin and b1<=b3) or
(b3=cmin and b1<=b2) and b2<b4 and close>=b1);
stickline(买入,b1,b2,3.5,0),color00ffff;
抛售:=(b1=cmax and close<b2) or ((b2=cmax and b1>b3) or
(b3=cmax and b1>b2) and b2>=b4 and close<b1);
stickline(抛售,b1,b2,3.5,0),colorffffff;
stickline(c>=o,c,h,0,1),colorred;
stickline(c>=o,o,l,0,1),colorred;
stickline(c<o,c,l,0,1),colorgreen;
stickline(c<o,o,h,0,1),colorgreen;
stickline(持股 or 买入,o,c,1.5,0),colorred;
stickline(下跌 or 抛售,o,c,1.5,0),colorgreen;
stickline(c>0,o,c,0,0),colorffffff;
wr:=-100*(hhv(high,28)-close)/(hhv(high,28)-llv(low,28));
drawicon(filter(cross(wr,(0 - 81)),10),b1,13);
drawicon(filter(cross((0 -19),wr),10),h*1.02,15);
drawtext(filter(cross(wr,(0 - 81)),21),l*0.99,' w&r'),colorred;
drawtext(filter(cross(0 -19,wr),21),h*1.01,' w&r'),colorgreen;
上一指标公式:日月同辉周日KDJ同图副图指标详解 通达信源码周日
下一指标公式:成交量的趋势拐点指标详解 通达信成交量趋势
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文短线主图及用法主图指标详解 通达信源码主图仅供学习研究。