画线主图二(差值、短线、中线、下跌、上轨)
{n:1,100,8 k:0,1,0 }
typ := (high + low + close)/3;
cci1:=(typ-ma(typ,6))/(0.015*avedev(typ,6));
差值1:=abs(ref(cci1,1)-cci1),linethick0;
cci2:=(typ-ma(typ,10))/(0.015*avedev(typ,10));
差值2:=abs(ref(cci2,1)-cci2),linethick0;
cci3:=(typ-ma(typ,20))/(0.015*avedev(typ,20));
差值3:=abs(ref(cci3,1)-cci3),linethick0;
cci4:=(typ-ma(typ,30))/(0.015*avedev(typ,30));
差值4:=abs(ref(cci4,1)-cci4),linethick0;
cci5:=(typ-ma(typ,60))/(0.015*avedev(typ,60));
差值5:=abs(ref(cci5,1)-cci5),linethick0;
cci:=cci1+cci2+cci3+cci4+cci5;
aaab:=(3*c+h+l+o)/6;
vvar1:=(8*aaab+7*ref(aaab,1)+6*ref(aaab,2)+5*ref(aaab,3)+4*ref(aaab,4)+3*ref(aaab,5)+2*ref(aaab,6)+ref(aaab,8))/36;
vvar6:=(llv(vvar1,2)+llv(vvar1,4)+llv(vvar1,6))/3;
短线:if(k=0, vvar1, drawnull),colorwhite;
中线:if(k=0,vvar6, drawnull),coloryellow;
下跌:if(k=0 and vvar1=vvar6,vvar6, drawnull),colorgreen;
中:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
上轨:=if(k=1,中+3*std(中,10),drawnull),color000088,linethick5;
if(k=1,2*ma(上轨,12)-ma(c,21),drawnull),color666666;
xxx1:=(c+l+h)/3;
xxx2:=ema(xxx1,6),linethick0;
xxx3:=ema(xxx2,5),linethick0;
牛背:=ma(c,21);
不错:=牛背+2*std(c,21);
熊样:=牛背-2*std(c,21);
熊样1:=if(k=1,牛背-2*std(c,21),drawnull);
牛背2:=if(k=1 and c>牛背,牛背,drawnull),linethick3;
drawband(牛背2,rgb(58,58,58),熊样1,rgb(0,0,0));
if(k=1,熊样1,drawnull),color666666;
stickline(xxx2>=xxx3 and k=1,xxx2,xxx3,4,1),color557799;
stickline(xxx2<xxx3 and k=1,xxx2,xxx3,4,1),coloraa5500;
jrh:=hhv(c,2);
jrl:=llv(c,2);
zgd:=hhv(ref((c*2-ref(c,3)),3),60)*0.99,color008888;
zdd:=llv(ref((c*2-ref(c,3)),3),60),color008888;
zgd2:=if(k=0,const(zgd),drawnull);
zdd2:=if(k=0,const(zdd),drawnull);
ytsl:=(3*close+low+open+high)/6;
r1:=(close>ref(close,1) and close>ref(close,2));
r2:=(ref(r1,1) and close<=ref(close,1) and close>=ref(close,2));
r3:=(ref(r2,1) and close>=ref(close,1) and close<=ref(close,2));
r4:=(ref(r3,1) and close<=ref(close,1) and close>=ref(close,2));
r5:=(ref(r4,1) and close>=ref(close,1) and close<=ref(close,2));
r6:=(ref(r5,1) and close<=ref(close,1) and close>=ref(close,2));
r7:=(ref(r6,1) and close>=ref(close,1) and close<=ref(close,2));
r8:=(ref(r7,1) and close<=ref(close,1) and close>=ref(close,2));
r9:=(ref(r8,1) and close>=ref(close,1) and close<=ref(close,2));
ra:=(ref(r9,1) and close<=ref(close,1) and close>=ref(close,2));
rb:=(ref(ra,1) and close>=ref(close,1) and close<=ref(close,2));
rc:=(ref(rb,1) and close<=ref(close,1) and close>=ref(close,2));
rd:=(close<ref(close,1) and close<ref(close,2));
re:=(ref(rd,1) and close>=ref(close,1) and close<=ref(close,2));
rf:=(ref(re,1) and close<=ref(close,1) and close>=ref(close,2));
r10:=(ref(rf,1) and close>=ref(close,1) and close<=ref(close,2));
r11:=(ref(r10,1) and close<=ref(close,1) and close>=ref(close,2));
r12:=(ref(r11,1) and close>=ref(close,1) and close<=ref(close,2));
r13:=(ref(r12,1) and close<=ref(close,1) and close>=ref(close,2));
r14:=(ref(r13,1) and close>=ref(close,1) and close<=ref(close,2));
r15:=(ref(r14,1) and close<=ref(close,1) and close>=ref(close,2));
r16:=(ref(r15,1) and close>=ref(close,1) and close<=ref(close,2));
r17:=(ref(r16,1) and close<=ref(close,1) and close>=ref(close,2));
r18:=(ref(r17,1) and close>=ref(close,1) and close<=ref(close,2));
r19:=ref(rd or re or rf or r10 or r11 or r12 or r13 or r14 or r15 or r16 or r17 or r18,1) and r1;
r1a:=((ref(r1 or r2 or r3 or r4 or r5 or r6 or r7 or r8 or r9 or ra or rb or rc,1)) and rd);
短线5:=r19,nodraw,color00dd00;
秋离场:=r1a,nodraw,color2288dd;
红持股:=r1 or r2 or r3 or r4 or r5 or r6 or r7 or r8 or r9 or ra or rb or rc,nodraw,color0000ff;
阴观望:=rd or re or rf or r10 or r11 or r12 or r13 or r14 or r15 or r16 or r17 or r18,nodraw,color999999;
急速超跌关注:=(close-ma(close,34))/ma(close,34)*100<-14,colorbbbbbb,nodraw;
离场:=if(红持股,jrl,drawnull);
明离场价:=离场,colorff99ff,nodraw;
今离场价:=ref(离场,1)color0000ff,nodraw;
进:=if(阴观望,jrh,drawnull);
明进场价:=进,color33aacc,nodraw;
今进场价:=ref(明进场价,1),color00ff00,nodraw;
短买:=r19,color33aacc,nodraw;
gj:=(c+h+l+o)/4;
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
koh:=l>ref(h,1);
kol:=h<ref(l,1);
hif:=l>ref(h,barslast(koh)+1);
nhif:=l<=ref(h,barslast(koh)+1);
lif:=h<ref(l,barslast(kol)+1);
nlif:=h>=ref(l,barslast(kol)+1);
下档线:=(((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));
压力2:=if(cross(d24,ddddd),high,ref(high,barslast(cross(d24,ddddd)))),colorffffff;
底部:=llv(high,30),color00ff00;
今日阻力:ref(明日阻力 , 1),nodraw;
今日支撑:ref(明日支撑 , 1),nodraw;
压力位:=if(islastbar,压力2,drawnull),nodraw;
底部位:=if(islastbar,底部,drawnull),nodraw;
stickline(islastbar and (红持股 or ref(红持股,1)=1),今离场价,今离场价,30,1),color0000ff;
stickline(islastbar and (阴观望 or ref(阴观望,1)=1),今进场价,今进场价,30,1),color00ff00;
stickline(islastbar ,压力位,压力位,120,0),colorffffff;
stickline(islastbar ,底部位,底部位,100,0),color00ff00;
stickline(islastbar,今日阻力,今日阻力,10,1),coloraaaaaa;
drawtext(islastbar,今日阻力,' 阻'),color0000ff;
stickline(islastbar,今日支撑,今日支撑,10,1),coloraaaaaa;
drawtext(islastbar,今日支撑,' 支'),color00ff00;
stickline(open>=close ,h ,l,0,1 ),colorffaa00;
stickline(close>open,h,l,0,1) ,color0000cc;
co:=(c-o);
stickline(红持股,c,o,2.8,0),color0000bb;
stickline(红持股,c,o,2,0),color0000dd;
stickline(阴观望,c,o,2.8,0),colorbbbb00;
stickline(阴观望,c,o,2,0),coloreeee00;
stickline(急速超跌关注,o,c-co/2,2.8,0),color999999;
stickline(短买,o,o+co/3,2.8,0),color008800;
stickline(短买,o,o+co/3,2,0),color00ee00;
stickline(秋离场,o,o+co/3,2.8,0),colordd3300;
stickline(秋离场,o,o+co/3,2,0),colorff3300;
stickline(c>0,o,c,0,0),colorffffff;
drawtext(秋离场,hhv(h,3),'→→→→'),colorff99ff;
drawtext(短线5,llv(l,3),'←←←←'),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;
ghh:=max(max(ref(h,gdcs1-1),ref(h,gdcs2-1)),max(ref(h,gdcs11-1),ref(h,gdcs22-1))),nodraw;
dll:=min(min(ref(l,ddcs1-1),ref(l,ddcs2-1)),min(ref(l,ddcs11-1),ref(l,ddcs22-1))),nodraw;
dx1:=(ref(h,gdcs1-1)-ref(h,gdcs2-1))/(gdcs2-gdcs1);
ddx1:=if((ref(h,(gdcs1-1))+dx1*gdcs1)>zgd2*1.02 or (ref(h,(gdcs1-1))+dx1*gdcs1)<zdd2*0.98,0,1);
dx2:=(ref(h,gdcs11-1)-ref(h,gdcs22-1))/(gdcs22-gdcs11);
dddx1:=if((ref(h,(gdcs11-1))+dx2*gdcs11)>zgd2*1.02 or (ref(h,(gdcs11-1))+dx2*ddcs11)<zdd2*0.98,0,1);
lx1:=(ref(l,ddcs1-1)-ref(l,ddcs2-1))/(ddcs2-ddcs1);
llx1:=if((ref(l,(ddcs1-1))+lx1*ddcs1)<zdd2*0.98 or (ref(l,(gdcs1-1))+lx1*ddcs1)>zgd2*1.02,0,1);
lx2:=(ref(l,ddcs11-1)-ref(l,ddcs22-1))/(ddcs22-ddcs11);
lllx1:=if((ref(l,(ddcs11-1))+lx2*ddcs11)<zdd2*0.98 or (ref(l,(ddcs11-1))+lx2*ddcs11)>zgd2*1.02,0,1);
高压力:drawline(k=0 and currbarscount=gdcs2,h,currbarscount=gdcs1,h,ddx1),coloryellow,linethick1;
低支撑:drawline(k=0 and currbarscount=ddcs2,l,currbarscount=ddcs1,l,llx1),coloryellow,linethick1;
drawline(k=0 and currbarscount=gdcs22 ,h,currbarscount=gdcs11,h,dddx1),colorred,linethick1;
drawline(k=0 and currbarscount=ddcs22 ,l,currbarscount=ddcs11,l,lllx1),colorred,linethick1;
{卖出------------------------}
var55:=ema(ema(ema(close,8),13),62);
var56:=((ref(high,1) + ref(low,1)) / 2);
var57:=(ma(close,20) + (2 * std(close,20)));
var58:=((sma(max((close - ref(close,1)),0),7,1) / sma(abs((close - ref(close,1))),7,1)) * 100);
卖出1:=filter(cross(79,var58),4);
ma21:=ref(close,1);
zx:=((sma(max((close - ma21),0),6,1) / sma(abs((close - ma21)),6,1)) * 100);
卖出2:=cross(84,zx),colorff00ff;
卖出3:=cross(90,rsi);
卖出:=卖出1 or 卖出2 or 卖出3;
drawicon(卖出,(high * 1.002),15);
{买入------------------------}
ma3:=ma(close,3);
var4:=(((high + low) + close) / 3);
qq2:=(close-llv(low, 18))/(hhv(high, 18)-llv(low, 18))*100;
qq3:=sma(qq2, 9, 1);
qq4:=sma(qq3, 3, 1);
长趋势:=3*qq3-2*qq4,colorwhite,linethick3;
趋势线:=ema(qq3, 3),colorred,linethick3;
金叉:= cross(长趋势,趋势线);
aaaa1:=amount/v;
bbb1:=l<aaaa1*0.9;
ccc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
ddd1:=l<ma(c,5)*0.921;
eee1:=v<ma(v,5)*1.5;
老鼠仓:=bbb1 and ccc1 and ddd1 and eee1,,nodraw;
x1:=(c+l+h)/3;
bb5:=atan(ema(x1,7)-ref(ema(x1,7),1))*3.1416*10;
var1:=(ma(close,80)-ma(close,13)/3);
var2:=( ma((close-var1)/var1,1));
vvar3:=(close-llv(low,28))/(hhv(high,28)-llv(low,28))*100;
vvar4:=sma(vvar3,4,1);
mma:=ema(var2,12)*0.7;
mmb:=ema(var2,3);
快到底:=if(llv(mmb-mma,12)>0,0,-20),linethick2,colorgreen;
diff:=( ema(close,12) - ema(close,26))*100;
dea:=ema(diff,9);
macd:= 2*(diff-dea);
抄底:=if(快到底<0 and cross(macd,0) and var4<18,1,0);
avar2:=(2*close+high+low)/4;
avar3:=if(year>=2099 and month>2,0,1);
avar4:=llv(low,5);
avar5:=hhv(high,4);
散户:= ema((avar2-avar4)/(avar5-avar4)*100,4)*avar3;
庄家:= ema(0.667*ref(散户,1)+0.333*散户,2)*avar3;
试买:=(((cross(散户,庄家) and 散户<50 and 29<散户)) not 大雪)
or (cross(散户,庄家) and 散户<30 and 角1>0) or 抄底;
aa05:=ma(c,5),color0099cc;
五日乖离率:=(c-aa05)/aa05*100;
bb05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;
速度5:=sma(ema((aa05-ref(aa05,1))/ref(aa05,1),3)*100,3,1);
加速度5:=ema((速度5-ref(速度5,1)),3),nodraw;
aa10:=ma(c,10);
aa20:=ma(c,20);bb10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;
aa30:=ma(c,30);
三拾日乖离率:=(c-aa30)/aa30*100;
加仓:=filter(count(cross(bb05,30),5)>=1 and
aa05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and
aa10>ref(aa10,1)
and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;
mv3:=ema(v,3);
mv3角度:=atan((mv3/ref(mv3,1)-1)*100)*180/3.1416;
ma3角度:=atan((ma3/ref(ma3,1)-1)*100)*180/3.1416;
mv5:=ema(v,5);
ma5:=ema(c,5);
mv5角度:=atan((mv5/ref(mv5,1)-1)*100)*180/3.1416;
ma5角度:=atan((ma5/ref(ma5,1)-1)*100)*180/3.1416;
mv10:=ema(v,10);
ma10:=ema(c,10);
mv10角度:=atan((mv10/ref(mv10,1)-1)*100)*180/3.1416;
ma10角度:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416;
强弱度:=(mv3角度+ma3角度+mv5角度+ma5角度+mv10角度+ma10角度)/6,colorffffff;
qbd:=cross(强弱度,50) and count(强弱度>50,7)<=3;
启爆点:=if(k=0 and qbd and count(qbd,4)=1,50,0),color00ffff;
半月相对价位:=(c-llv(l,13))/(hhv(h,13)-llv(l,13))*10;
半月相对价位m:=sma(半月相对价位,3,2);
半月相对价位mm:=sma(半月相对价位m,10,6);
k13:=ma(半月相对价位mm,3);
福缘:=半月相对价位mm>=k13,colorred;
启爆福缘:=k=0 and 启爆点 and 福缘;
hd :=high-ref(high,1);
ld :=ref(low,1)-low;
dmp:=expmema(if(hd>0&&hd>ld,hd,0),14);
dmm:=expmema(if(ld>0&&ld>hd,ld,0),14);
ak:=ema((dmp-dmm)*1,3)*100+50,colorffffff;
ad:=ema((ma(dmp,3)-ma(dmm,3))*1,3)*100+50,colorffffff;
drawicon(cross(ak,ad) and 启爆点 and 福缘,l*0.99 ,9);
drawicon(加仓,l*0.99,23);
drawicon(老鼠仓 or 金叉,(low - (low * 0.01)),1);
上一指标公式:—个人感觉不错抄底副图附图指标详解 通达信附图源码
下一指标公式:堪称一绝抄底挺准的指标详解 通达信一绝堪称
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文画线主图二差值短线中线下跌上轨-主图指标详解 通达信中线下跌仅供学习研究。