参数
n1 1300 5
m1 1100010
g 1 1005
ma5:ma(close,5);
ma10:ma(close,10);
ma20:=ma(close,20);
ma30:ma(close,30),linethick2;
ma60:ma(close,60),colorred,linethick2;
ma144:ma(close,144),color9f5f9f;
{金差价}
{ad:=ma(c,n1)-ma(c,m1);
bd:=backset(1,ma(c,n1)/n1-backset(1,ma(c,m1)))/m1;
价差:ad/bd/n1,nodraw;
价:=ad/bd/n1,nodraw;
叉价价:(价-dynainfo(7))*(-1),nodraw;
ma5叉:(价-ma(c,n1))*(-1),colorred,nodraw;}
{5、10周均线}
zrr:=(year-1992)*365+intpart((year-1989)/4)+if(month<=2,day+(month-1)*31,day+
intpart(13*(month+1)/5)-7+(month-1)*28+if(intpart(year/4)=year/4,1,0)),nodraw;
t:=barslast(zrr-ref(zrr,1)>weekday-ref(weekday,1))+1,nodraw;
t1:=ref(t,t)+t,nodraw;
t2:=ref(t,t1)+t1,nodraw;
t3:=ref(t,t2)+t2,nodraw;
t4:=ref(t,t3)+t3,nodraw;
t5:=ref(t,t4)+t4,nodraw;
t6:=ref(t,t5)+t5,nodraw;
t7:=ref(t,t6)+t6,nodraw;
t8:=ref(t,t7)+t7,nodraw;
周5:=(ref(close,t)+ref(close,t1)+ref(close,t2)+ref(close,t3)+close)/5,colore6e8fa,linethick2;
周10:=(ref(close,t)+ref(close,t1)+ref(close,t2)+ref(close,t3)+ref(close,t4)+
ref(close,t5)+ref(close,t6)+ref(close,t7)+ref(close,t8)
+close)/10,colorblue,linethick2;
日跌:= l*0.99,nodraw,colorff00ff;
周跌:= l*0.94,nodraw,colorff00ff;
{支撑压力}
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.02,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.98,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;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
{量能平台}
g21:=30;
t112:=const(hhvbars(v,g21));
t122:if(currbarscount<=g21+7,const(if(t112=0,h,ref(h,t112))),drawnull);
if(currbarscount=t112+1,t122,drawnull),circledot;
drawtext(islastbar,t122,' 30天量能平台');
{w:=10;
tw1:=const(hhvbars(v,w));
tw0:if(currbarscount<=w+7,const(if(tw1=0,c,ref(c,tw1))),drawnull);}
{if(currbarscount=tw1+1,tw0,drawnull),circledot;}
{drawtext(islastbar,tw0,' 10量能平台');}
{mw:=10;
mw1:=const(llvbars(v,mw));
mw0:if(currbarscount<=mw+7,const(if(mw1=0,o,ref(o,mw1))),drawnull);
if(currbarscount=mw1+1,mw0,drawnull),circledot;}
{drawtext(islastbar,mw0,' 地量反量能平台');}
下档线:=(((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));
aab:=ref(h,g)=hhv(h,2*g+1);aab1:=ref(l,g)=llv(l,2*g+1);
qyb:=backset(aab,g+1);qyb1:=backset(aab1,g+1);
ccb:=filter(qyb,g) and h=hhv(h,g+1);ccb1:=filter(qyb1,g) and l=llv(l,g+1);
dddb:=barslast(ccb);ddb1:=barslast(ccb1);
gdtsb:=if(ccb,currbarscount,0);ddtsb:=if(ccb1,currbarscount,0);
dingbutsb:=if(dddb,ref(gdtsb,dddb),gdtsb);ddtsb1:=if(ddb1,ref(ddtsb,ddb1),ddtsb);
gdcsb1:=const(dingbutsb);ddcsb1:=const(ddtsb1);
gdcs13:=const(ref(high,gdcsb1-1));ddcs13:=const(ref(l,ddcsb1-1));
dingbutsb1:=ref(dingbutsb,dddb+1);ddtsb2:=ref(ddtsb1,ddb1+1);
gdcsb2:=const(dingbutsb1);ddcsb2:=const(ddtsb2);
gdcs23:=const(ref(high,dingbutsb1-1));ddcs23:=const(ref(l,ddtsb2-1));
xg1:=backset(islastbar,gdcsb1);xd1:=backset(islastbar,ddcsb1);
xg2:=backset(islastbar,dingbutsb1);xd2:=backset(islastbar,ddtsb2);
xdd:=if(ddcs13<=ddcs23,xd1,xd2);
m:=intpart(3*g/5);
aaaa:=ref(h,m)=hhv(h,2*m+1);
qyy:=backset(aaaa,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,gdcsb1-1),nodraw;
hh2:= ref(h,gdcsb2-1),nodraw;
hh11:= ref(h,gdcs11-1),nodraw;
hh22:= ref(h,gdcs22-1),nodraw;
ghh1:=max(max(ref(h,gdcsb1-1),ref(h,gdcsb2-1)),max(ref(h,gdcs11-1),ref(h,gdcs22-1))),nodraw;
dll1:=min(min(ref(l,ddcsb1-1),ref(l,ddcsb2-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,gdcsb1-1)-ref(h,gdcsb2-1))/(gdcsb2-gdcsb1),nodraw;
dx2:=(ref(h,gdcs11-1)-ref(h,gdcs22-1))/(gdcs22-gdcs11),nodraw;
ggaa:=dx1>0 and (ref(h,(gdcsb1-1))+dx1*gdcsb1)>ghh*1.05,nodraw;
ggab:=dx1<0 and (ref(h,(gdcsb1-1))+dx1*gdcsb1)<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,ddcsb1-1)-ref(l,ddcsb2-1))/(ddcsb2-ddcsb1),nodraw;
lx2:=(ref(l,ddcs11-1)-ref(l,ddcs22-1))/(ddcs22-ddcs11),nodraw;
ddaa:=lx1<0 and (ref(l,(ddcsb1-1))+lx1*ddcsb1)<dll*0.95,nodraw;
ddab:=lx1>0 and (ref(l,(ddcsb1-1))+lx1*ddcsb1)>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=gdcsb2,h,currbarscount=gdcsb1,h,ddx1),coloryellow,linethick1;
低支撑:drawline(currbarscount=ddcsb2,l,currbarscount=ddcsb1,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);
aaab1:=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:=aaab1/465;
mtm:=c-ref(c,1);
zlgj:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
买1:=if(llv(zlgj,2)=llv(zlgj,7) and count(zlgj<0,2) and cross(zlgj,ma(zlgj,2)),1,0);
卖1:=if(hhv(zlgj,2)=hhv(zlgj,7) and count(zlgj>50,2) and cross(ma(zlgj,2),zlgj),1,0);
{stickline(filter(买1=1,1),c,o,1,0),colorff00ff;
stickline(filter(卖1=1,1),c,o,1,0),colorred;}
bdgd:=hhv(j,2)=hhv(j,8) and j>80;
注意:=if(cross(ref(j-0.01,1),j) and ref(bdgd,1),1,0);
{stickline(注意 and 卖1<1,o,close,1,0),coloryellow,linethick2;}
{a3x:(ma5-ref(ma5,1))/ref(ma5,1)*100,nodraw;
if(a3x>=0,ma5,drawnull),colorwhite,linethick1;}
{a1x:(ma60-ref(ma60,1))/ref(ma60,1)*100,nodraw;
if(a1x>=0,ma60,drawnull),colorligray,linethick1;}
{a4x:(ma10-ref(ma10,1))/ref(ma10,1)*100,nodraw;
if(a4x>=0,ma10,drawnull),coloryellow,linethick1;};
{涨停标注}
stickline(c/ref(c,1)>1.095,c,o,2,0),coloryellow;
{财务数据}
drawtext_fix(islastbar ,0.06,0.01,1,dyblock),coloryellow;
drawtext_fix(islastbar ,0.065,0.01,0,hyblock),coloryellow;
{drawtext_fix(islastbar,0.16,0.01,1,'上市日期:'),color00ff00;
drawnumber_fix(islastbar,0.16,0.01,0,finance(42)),color00ff00;
drawtext_fix(islastbar,0.06,0.04,1,'主营收入:'),colorffaaff;
drawnumber_fix(islastbar,0.062,0.04,0,finance(20)),colorffaaff;
drawtext_fix(islastbar,0.21,0.04,1,'主营利润:'),colorffaaff;
drawnumber_fix(islastbar,0.22,0.04,0,finance(21)),colorffaaff;
drawtext_fix(islastbar,0.06,0.07,1,'每股净资产:'),colorffaaff;
drawnumber_fix(islastbar,0.062,0.07,0,finance(34)),colorffaaff;
drawtext_fix(islastbar,0.21,0.07,1,'每股公积金:'),colorffaaff;
drawnumber_fix(islastbar,0.22,0.07,0,finance(18)),colorffaaff;
drawtext_fix(islastbar,0.06,0.1,1,'每股收益 年:'),colorffaaff;
drawnumber_fix(islastbar,0.062,0.1,0,finance(33)),colorffaaff;
drawtext_fix(islastbar,0.21,0.1,1,'每股未分配利润:'),colorffaaff;
drawnumber_fix(islastbar,0.22,0.1,0,finance(32)),colorffaaff;
drawtext_fix(islastbar,0.06,0.13,1,'经营现金流量:'),colorffaaff;
drawnumber_fix(islastbar,0.062,0.13,0,finance(25)),colorffaaff;
drawtext_fix(islastbar,0.21,0.13,1,'其它利润:'),colorffaaff;
drawnumber_fix(islastbar,0.22,0.13,0,finance(22)),colorffaaff;};
{涨停秘籍}
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
a1:=barslast(ref(cross(dea,diff),1));
a2:=barslast(ref(cross(diff,dea),1));
var1:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
hongju:=if(var1>0,var1,0);
gaopao:=cross(diff,dea) and hongju>=40;
drawicon(gaopao,high*1.01,6);
drawtext(gaopao,high*1.02,'顶背'),colorgreen;
llvv:=llv(low,5);
dixi:=cross(dea,diff) and ref(dea,a1+1)>0 and dea<0;
drawicon(dixi,low*0.90,38);
drawtext(dixi,low*0.90,'波段低吸'),coloryellow;
工作线:=ema(close,17),coloryellow;
生命线:=ma(close,56),colorred;
m0:=ma(close,5);
m10:=ma(close,12);
m1:=ma(close,20);
m30:=ma(close,30);
m2:=ma(close,60);
m3:=ma(close,240);
m4:=ma(close,120);
m41:=ma(close,41);
tj2:=ma(close,3)<m2;
var2:=(close*2+high+low)/4;
sk:=ema(var2,13)-ema(var2,73);
sd:=ema(sk,2);
短线:=cross(sk,sd) and sk<0.05 and (vol/ma(vol,5)>2 or close/ref(close,1)>0.035 and close>ema(close,17));
{stickline(短线,high,low,0.5,0),colorffff00;
stickline(短线,open,close,10,1),linethick2,colorffff00;}
cy:=barslast(短线);
macd双底:=ref(low,a2+1)<close and cross(diff,dea);
介入:=count(短线,4)=1 and count(macd双底,1)=1 and close/ma(close,56)*1000>980 and close>open and vol>=ma(vol,5) and diff>=-0.1;
drawtext(介入,low*0.92,'起涨点'),colorred;
drawicon(介入,low*0.92,1);
反向顶背:=ref(close,a2+1)>close and ref(diff,a2+1)>diff and cross(dea,diff);
逃顶:=cross(sd,sk) and sk>0.2 and vol/ma(vol,5)<2;
逃顶成立:=count(逃顶,4)=1 and count(反向顶背,1)=1;
drawicon(逃顶成立,high*1.01,15);
drawtext(逃顶成立,high*1.01,'逃顶'),colorgreen;
n1g:=close/ref(close,1)>=1.097 and high=close and not(open=high);
a1g:=barslast(n1g);
a2g:=llv(low,a1g-1)>ref(low,a1g) and close/ref(open,a1g)>1 and close/ref(open,a1g)<=1.04;
xggg:=filter(a2g,3) and a1g>=4 and a1g<=20;
drawicon(xggg,low*0.96,41);
drawtext(xggg,low*0.96,'涨停秘笈'),coloryellow;
xpp1:=cross(dea,diff) and close>ma20 and ma20>ref(ma20,1) and diff>ref(diff,a2+1);
drawicon(xpp1,low*0.96,3);
drawtext(xpp1,low*0.96,'强势洗盘'),colorwhite;
xpp2:=xpp1 and a1g>=4 and a1g<=20;
drawicon(xpp2,low*0.98,17);
上一指标公式:升降线-副图指标下载 通达信升降
下一指标公式:虎虎均线通道主图指标下载 通达信指标均线
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主图叠加10天30天反地量量能平台和趋势线的在强化主图指标下载 通达信叠加源码仅供学习研究。