斋主macd通道
{主图}
dif:=ema(close,60)-ema(close,130);
dea:=ema(dif,45);
macd:=(dif-dea)*2,colorstick;
{macd}
rc:=dynainfo(3)*1.1;
dk:=macd*2;
stickline(dk<0 and dk<ref(dk,1),dk+rc,rc,0.05,1),colorliblue;
stickline(dk<0 and dk>ref(dk,1),dk+rc,rc,0.05,1),colorwhite;
stickline(dk>ref(dk,1) and dk>0,dk+rc,rc,0.05,1),colorred;
stickline(dk<ref(dk,1) and dk>0,dk+rc,rc,0.05,1),color00ff00;
var4s:=(2*close+high+low)/4;
成本区:ema(var4s,90)*0.995,,coloryellow,pointdot{circledot};
gjz:=(c+h+l+o)/4;
阻z:=l+(gjz-l)+(c-l);
支z:=l+(c-gjz);
nn:=100;
高点:=const(hhv(h,nn));
低点:=const(llv(l,nn));
明日阻力:=l+(gjz-l)+(c-l);
明日支撑:=l+(c-gjz);
明日阻力2:=l+2*(gjz-l)+(c-l);
明日支撑2:=l+(c-gjz)-(gjz-l);
今日阻力:=const(ref(明日阻力 , 1)),nodraw;
今日支撑:=const(ref(明日支撑 , 1)),nodraw;
今日阻力2:=const(ref(明日阻力2 , 1)),nodraw;
今日支撑2:=const(ref(明日支撑2 , 1)),nodraw;
stickline(islastbar,今日阻力,今日阻力2,20,0),colorgray;
stickline(islastbar,今日支撑,今日支撑2,20,0),colorgray;
ma60:=ma(close,60),colorcyan,linethick2;
ma120:=ma(close,120),colorcyan,linethick2;
lc:=ref(close,1);
var28z:=sma(max(close-lc,0),5.5,1)/sma(abs(close-lc),6,1)*100;
vara00:=((amount)/(vol))/(100);
varab00:=((3)*(high)+low+open+(2)*(close))/(7);
varac00:=((sum(amount,7))/(vara00))/(100);
vard0:=dma(varab00,(vol)/(varac00));
varde0:=((close-vard0)/(vard0))*(100);
varde0f:=((close-llv(low,34))/(hhv(high,34)-llv(low,34)))*(100);
varde0jf:=ma(varde0,20)+std(varde0,20);
bias18:=((close-ma(close,18))/(ma(close,18)))*(100);
aa:=sma(varde0f,3,1);
ss:=(ref(bias18,1)>=5) and cross(varde0jf,varde0) and (aa>79);
中轨:=ma(close,34)nodraw;
上轨:=中轨*1.0618,circledot,colorff6600;
下轨:=中轨*0.89,circledot,color6c6cff;
顶轨:=中轨*1.191,colorgreen;
底轨:=中轨*0.809,coloryellow;
drawband(中轨,rgb(250,150,0),ref(中轨,2),rgb(00,50,200));
drawband(顶轨,rgb(200,50,51),ref(顶轨*1.005,1),rgb(0,160,100));
drawband(底轨,rgb(200,50,51),ref(底轨*0.995,1),rgb(0,160,100));
drawband(上轨,rgb(60,60,0),上轨*1.005,rgb(50,100,60));
drawband(下轨,rgb(50,100,60),下轨*0.995,rgb(60,60,0));
va1:=close>ref(close,1) and close>ref(close,2);
va2:=ref(va1,1) and close<=ref(close,1) and close>=ref(close,2);
va3:=ref(va2,1) and close>=ref(close,1) and close<=ref(close,2);
va4:=ref(va3,1) and close<=ref(close,1) and close>=ref(close,2);
va5:=ref(va4,1) and close>=ref(close,1) and close<=ref(close,2);
va6:=ref(va5,1) and close<=ref(close,1) and close>=ref(close,2);
va7:=ref(va6,1) and close>=ref(close,1) and close<=ref(close,2);
va8:=ref(va7,1) and close<=ref(close,1) and close>=ref(close,2);
va9:=ref(va8,1) and close>=ref(close,1) and close<=ref(close,2);
vaa:=ref(va9,1) and close<=ref(close,1) and close>=ref(close,2);
vab:=ref(vaa,1) and close>=ref(close,1) and close<=ref(close,2);
vac:=ref(vab,1) and close<=ref(close,1) and close>=ref(close,2);
stickline(va1 or va2 or va3 or va4 or va5 or va6 or va7 or va8 or va9 or vaa or vab or vac,close,ref(close,1),3,0),colorred;
vad:=close<ref(close,1) and close<ref(close,2);
vae:=ref(vad,1) and close>=ref(close,1) and close<=ref(close,2);
vaf:=ref(vae,1) and close<=ref(close,1) and close>=ref(close,2);
va10:=ref(vaf,1) and close>=ref(close,1) and close<=ref(close,2);
va11:=ref(va10,1) and close<=ref(close,1) and close>=ref(close,2);
va12:=ref(va11,1) and close>=ref(close,1) and close<=ref(close,2);
va13:=ref(va12,1) and close<=ref(close,1) and close>=ref(close,2);
va14:=ref(va13,1) and close>=ref(close,1) and close<=ref(close,2);
va15:=ref(va14,1) and close<=ref(close,1) and close>=ref(close,2);
va16:=ref(va15,1) and close>=ref(close,1) and close<=ref(close,2);
va17:=ref(va16,1) and close<=ref(close,1) and close>=ref(close,2);
va18:=ref(va17,1) and close>=ref(close,1) and close<=ref(close,2);
stickline(vad or vae or vaf or va10 or va11 or va12 or va13 or va14 or va15 or va16 or va17 or va18,close,ref(close,1),3,0),colorliblue;
va19:=ref(vad or vae or vaf or va10 or va11 or va12 or va13 or va14 or va15 or va16 or va17 or va18,1) and va1;
stickline(va19,ref(close,1),ref(close,2),3.4,0),coloryellow;
va1a:=ref(va1 or va2 or va3 or va4 or va5 or va6 or va7 or va8 or va9 or vaa or vab or vac,1) and vad;
stickline(va1a,ref(close,1),ref(close,2),3.4,0),colorblue;
aa1:=3*sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1)-2*sma(sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1),3,1);
加仓:=if(cross(aa1,ref(aa1+0.01,1)) and llv(aa1,2)=llv(aa1,8) and between(aa1,20,60),1,0);
波段底:=(3)*(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1)) -
(2)*(sma(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1),3,1));
a:=(3*c+l+o+h)/6;
x:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
cb:=ema(x,13);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
江恩线144: ema(close,144),colorred,linethick2,pointdot;
日:=50;昨前:=3;
高1:=ref(hhv(h,10),昨前);
高2:=ref(hhv(h,日),昨前);
低:=ref(llv(l,10),昨前);
低1:=ref(llv(l,日),昨前);
十日压:refdate(高1,date),colorgreen,linethick1,pointdot;
drawtext(islastbar,十日压,'10 k线内压力点位'),colorgreen;
五十日压:refdate(高2,date),colorcyan,linethick1,pointdot;
drawtext(islastbar,五十日压,'50 k线内压力点位'),colorcyan;
十日支撑:refdate(低,date),linethick1,coloryellow,pointdot ;
drawtext(islastbar,十日支撑,'10 k线内支撑点位'),coloryellow;
五十日支撑:refdate(低1,date),colorred,linethick1,pointdot;
drawtext(islastbar,五十日支撑,'50 k线内支撑点位'),colorred;
var5:=if(year=2002 and month=6 and day=28,1,0);
var6:=if(year=2002 and month=3 and day=21,1,0);
var7:=if(year=2001 and month=12 and day=5,1,0);
var8:=if(year=2001 and month=6 and day=14,1,0);
var9:=if(year=2001 and month=1 and day=11,1,0);
vara:=if(year=2000 and month=11 and day=23,1,0);
varb:=if(year=2000 and month=8 and day=22,1,0);
varc:=if(year=2000 and month=4 and day=21,1,0);
vard:=if(year=1999 and month=6 and day=30,1,0);
vare:=if(year=1999 and month=4 and day=9,1,0);
varf:=if(year=1998 and month=11 and day=17,1,0);
var10:=if(year=1998 and month=6 and day=4,1,0);
var11:=if(year=1997 and month=5 and day=12,1,0);
var12:=if(year=1996 and month=12 and day=11,1,0);
var13:=if(year=1994 and month=9 and day=13,1,0);
var14:=if(year=1993 and month=2 and day=16,1,0);
var15:=if(year=1992 and month=5 and day=26,1,0);
var16:=if(year=2003 and month=3 and day=4,1,0);
var17:=if(year=2003 and month=4 and day=16,1,0);
var18:=(cross(100,"kdj.j"(9,3,3)) or cross("kdj.k"(9,3,3),"kdj.j"(9,3,3))) and "kdj.d"(9,3,3)>75;
var19:=if(year>1990 and year<2003,0,1);
var1a:=if(year=2003 and month=1 and day=3,1,0);
var1b:=if(year=2002 and month=6 and day=6,1,0);
var1c:=if(year=2002 and month=1 and day=29,1,0);
var1d:=if(year=2001 and month=10 and day=22,1,0);
var1e:=if(year=2001 and month=2 and day=22,1,0);
var1f:=if(year=2000 and month=9 and day=26,1,0);
var20:=if(year=1999 and month=12 and day=28,1,0);
var21:=if(year=1999 and month=5 and day=17,1,0);
var22:=if(year=1999 and month=2 and day=9,1,0);
var23:=if(year=1998 and month=8 and day=18,1,0);
var24:=if(year=1998 and month=3 and day=26,1,0);
var25:=if(year=1997 and month=2 and day=20,1,0);
var26:=if(year=1994 and month=7 and day=29,1,0);
var27:=if(year=2000 and month=5 and day=15,1,0);
var28:=if(year=1996 and month=1 and day=19,1,0);
var29:=if(year=1992 and month=11 and day=20,1,0);
var2a:=if(year=2003 and month=3 and day=26,1,0);
var2b:=if(year=2003 and month=5 and day=13 and close>200,1,0);
var2c:=ma(3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1),5)*var19;
var2d:=5;
var2e:=cross(var2c,var2d);
var2f:=var1a or var1b or var1c or var1d or var1e or var1f or var20 or var21 or var22 or var23 or var24 or var25 or var26 or var27 or var28 or var29 or var2a or var2b or var2e;
var30:=(var18 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc or vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17){ and close>200};
var24z:=ema(amount/vol/100,5);
var25z:=ema(amount/vol/100,13);
var26z:=var24z-var25z;
var1z:=(100-((90*(hhv(high,21)-close))/(hhv(high,21)-llv(low,21))));
var2z:=(100-((90*(hhv(high,21)-close))/(hhv(high,21)-llv(low,21))));
var3z:=(100-ma(((100*(hhv(high,6)-close))/(hhv(high,6)-llv(low,6))),34));
drawtext(cross(var2z,ma(var3z,6)) and
cross(if(1000*var26z/var24z>0,1000*var26z/
var24z,0)*0.19+1.9,if((hhv(high,13)-close)/(hhv(high,13)-llv(low,13))*120>100,100,
(hhv(high,13)-close)/(hhv(high,13)-llv(low,13))*120)*0.07),(low*0.984),'↖强牛股出现 '),colorwhite;
ss1:=cross(波段底,3);
ss2:=filter(买=1,5);
b1:=ema((2*close+high+low)/4,5);
a1:if(ema((2*close+high+low)/4,6)>ref(ema((2*close+high+low)/4,6),1),b1,drawnull),color0000ff;
a2:if(ema((2*close+high+low)/4,6)<ref(ema((2*close+high+low)/4,6),1),b1,drawnull),color00ff00;
b2:=ema((2*close+high+low)/4,13);
a3:if(ema((2*close+high+low)/4,10)>ref(ema((2*close+high+low)/4,13),1),b2,drawnull),color0000ff;
a4:if(ema((2*close+high+low)/4,10)<ref(ema((2*close+high+low)/4,13),1),b2,drawnull),linethick2,color00ff00;
b3:=ref(ema((low+close+open)/3,25),1);
a5:if(ema((low+close+open)/3,28)>ref(ema((low+close+open)/3,28),1),b3,drawnull),linethick3,color0000ff;
a6:if(ema((low+close+open)/3,28)<ref(ema((low+close+open)/3,28),1),b3,drawnull),linethick3,color00ff00;
b4:=(ema(low,125)+ema((close+low)/2,125))/2;
a7:if((ema(low,125)+ema((close+low)/2,250))/2>ref((ema(low,125)+ema((close+low)/2,250))/2,1),b4,drawnull),color0000ff;
a8:if((ema(low,125)+ema((close+low)/2,250))/2<ref((ema(low,125)+ema((close+low)/2,250))/2,1),b4,drawnull),color00ff00;
lcz:=ref(close,1);
rsi:=((sma(max((close - lcz),0),3,1) / sma(abs((close - lcz)),3,1)) * 100);
ff:=ema(close,3);
ma15:=ema(close,21);
aaz:=close>ref(close,1) and ref(close,1)>ref(close,2) and ref(close,1)<ref(close,3) and if(ref(close,3)<ref(close,4),1,if(ref(close,4)<ref(close,5),ref(close,1)<ref(close,4) or (ref(close,2)<ref(close,4) and ref(close,3)>=ref(close,5)),if(ref(close,5)<ref(close,6),1,ref(close,6)<ref(close,7))));
bbz:=close<ref(close,1) and ref(close,1)<ref(close,2) and ref(close,1)>ref(close,3) and if(ref(close,3)>ref(close,4),1,if(ref(close,4)>ref(close,5),ref(close,1)>ref(close,4) or (ref(close,2)>ref(close,4) and ref(close,3)<=ref(close,5)),if(ref(close,5)>ref(close,6),1,ref(close,6)>ref(close,7))));
drawtext(aaz and close>ref(open,2),l*0.98,'★+三平底'),coloryellow;
drawtext(bbz and close<ref(close,2),l*1.01,'★-三平顶'),colorgreen;
drawtext(cross(ff,ma15),l*0.99,'底背离'),colora6e500;
drawtext(cross(88,rsi),l*1.012,'顶背离'),color1880ff;
drawtext(cross(84,rsi) and cross(76,var28z),h*1.01,'卖出'),linethick4,colorgreen;
{drawicon(var2f,low-low*1/100,1);}
drawicon(var2f and close>江恩线144,low,1);
drawicon(var30,high,2);
drawtext(var2f and close<江恩线144,low,'秘密买点!'), coloryellow;
drawtext(var2f and close>江恩线144,low,'强势买点!'), colorred;
drawtext(var30,high,'秘密抛点'),color00ff00;
stickline(ss2 and ss1,l*0.96,l*0.98,2,0),coloryellow;
drawtext(ss2 and ss1,l*0.96,'底买合一'),coloryellow;
drawtext(filter(买=1,5),low-0.03,'买入'),colorred;
drawtext(cross(波段底,3),l*0.97,'底');
drawtext(cross(ma60,ma120),ma60*0.99,'↑60金叉120牛势'),coloryellow;
drawtext(cross(ma120,ma60),ma60*0.99,'↓120死叉60熊势'),colorwhite;
斋主量交+ddx
{副图}
n:=5;
m:=13;
n日内净流入:=sum(ddx,n)*3;
万手:vol/10000,linethick0;
aa:=if(currbarscount=1 and period=5,vol*240/fromopen,drawnull);
预测:aa/10000;
bb:=vol/((high-low)*2-abs(close-open));
主动买:=if(close>open,bb*(high-low),if(close<open,bb*((high-open)+(close-low)),vol/2));
主买:主动买/10000,colorred;
主动卖:=if(close>open,0-bb*((high-close)+(open-low)),if(close<open,0-bb*(high-low),0-vol/2));
主卖:-主动卖/10000,colorgreen;
差额:=(主动买+主动卖)/10000;
stickline(close=ref(close,1),0,vol,3.5,0),colorwhite;
stickline(close>ref(close,1),0,vol,3.5,0),colorred;
stickline(close<ref(close,1),0,vol,3.5,0),colorgreen;
stickline(currbarscount=1 and period=5,aa,1 , 3.5 , 0 ) , color00ffff ;
stickline(currbarscount=1 and period=5,aa,1 , 3.2 , 0 ) , color007777 ;
stickline(currbarscount=1 and period=5,aa,1 , 2.7 , 0 ) , color009999 ;
stickline(currbarscount=1 and period=5,aa,1 , 2.1 , 0 ) , color00bbbb ;
stickline(currbarscount=1 and period=5,aa,1 , 1.5 , 0 ) , color00ddee ;
stickline(currbarscount=1 and period=5,aa,1 , 0.9 , 0 ) , color66ffff ;
stickline(currbarscount=1 and period=5,aa,1 , 0.2 , 0 ) , colorffffff ;
stickline(主动买>=0,vol,-主动卖,3.2,0),color000033;
stickline(主动买>=0,vol,-主动卖,2.7,0),color000066;
stickline(主动买>=0,vol,-主动卖,2.1,0),color000099;
stickline(主动买>=0,vol,-主动卖,1.5,0),color0000cc;
stickline(主动买>=0,vol,-主动卖,0.9,0),color0000ff;
stickline(主动买>=0,vol,-主动卖,0.2,0),colorcc66ff;
stickline(主动卖<=0,0,-主动卖,3.2,0),color990000;
stickline(主动卖<=0,0,-主动卖,2.7,0),colorcc0000;
stickline(主动卖<=0,0,-主动卖,2.1,0),colorff4400;
stickline(主动卖<=0,0,-主动卖,1.5,0),colorff8800;
stickline(主动卖<=0,0,-主动卖,0.9,0),colorffcc00;
stickline(主动卖<=0,0,-主动卖,0.2,0),colorcyan;
持币:if(sar(10,2,20)>=h,sar(10,2,20),drawnull),circledot,colorblue;
持股:if(sar(10,2,20)<=l,sar(10,2,20),drawnull),circledot,colorred;
wj:=(h+l+c)/3;
v1:=if(h=l,1,h-max(o,c));
v2:=if(h=l,1,max(c,o)-wj);
v3:=if(h=l,1,min(o,c)-l);
v4:=if(h=l,1,wj-min(c,o));
v5:=vol/if(h=l,4,h-l);
v6:=(v1*v5);
v7:=(v2*v5);
v8:=(v3*v5);
v9:=(v4*v5);
买盘:=(v9+v8);
卖盘:=(v6+v7);
买卖差:=买盘-卖盘;
ddx:=买卖差;
dx:=ma(买卖差,5)*20;
ddx1:sma(dx,3,1),colorffffff;
ddx2:sma(ddx1,3,1),color00ffff;
ddx3:(5*ddx2+4*ref(ddx2,1)+3*ref(ddx2,2)+2*ref(ddx2,3)+ref(ddx2,4))/15;
预警:ddx>0 and ma(v,5)>ma(ma(v,5),5) and cross(ddx1,ddx2),linethick;
天:=count(ddx>0,5),colorred;
drawtext(预警,ddx*1.5,'★'),linethick3,color00ffff;
五日: ma(v,5)colorligray,linethick2;
十日: ma(v,10)colorcyan,linethick2;
二十日:ma(v,20),colorred,linethick2;
{三十日:ma(v,30)*1.2,colorliblue;}
{50_ddx}
流入:=if(n日内净流入>ref(n日内净流入,1),n日内净流入,drawnull);
drawband(n日内净流入,rgb(100,100,100),0,rgb(0,100,150));
{波段转向}{5天3%}
dlx1:=sma(dx,3,1),linethick,colorwhite;
rsv:=((c-llv(l,6))/(hhv(h,6)-llv(l,6)))*100;
k:=pow(sma(rsv,2,1),5)/pow(10,8);
d:=pow(sma(rsv,2,1),5)/pow(10,10);
j:=(k+ d)/2;
花开短买:if(cross(j,1),1,0) and dlx1>ref(dlx1,1),coloryellow;
if(花开短买,150000,drawnull),crossdot,linethick6,colorff33ff;
if(花开短买,150000,drawnull),pointdot,linethick4,color00ccff;
rsi1:=n日内净流入;
aaz:=ref(rsi1,n)=hhv(rsi1,2*n+1);
bbz:=backset(aaz,n+1);
cc:=filter(bbz,n) and rsi1=hhv(rsi1,n+1);
a1:=barslast(ref(cc,1));
{stickline(ddx<0,0,ddx,4,0),color006600;}
stickline(ddx<0,0,ddx,3,0),color009900;
stickline(ddx<0,0,ddx,1.5,0),color00cc00;
stickline(ddx<0,0,ddx,0,0),color66ccff;
stickline(ddx>0,0,ddx,3,0),{color0000cc}coloryellow;
stickline(ddx>0,0,ddx,1.5,0),coloryellow;{color0000ff};
stickline(ddx>0,0,ddx,0,0),colorcc66ff;
顶背离:ref(close,a1+1)<close and ref(rsi1,a1+1)>rsi1 and cc,colorred;
drawline(cc,rsi1,filter(顶背离>0,5),rsi1,0),colorred;
aa2:=ref(rsi1,n)=llv(rsi1,2*n+1);
bb2:=backset(aa2,n+1);
cc2:=filter(bb2,n) and rsi1=llv(rsi1,n+1);
a2:=barslast(ref(cc2,1));
底背离:ref(close,a2+1)>close and ref(rsi1,a2+1)<rsi1 and cc2,colorcyan;
drawline(cc2,rsi1,filter(底背离>0,5),rsi1,0),colorcyan;
上一指标公式:所有都删掉送上资金流量副图绝无未来指标下载 通达信删掉绝无
下一指标公式:千年难遇TDX指标下载 通达信千年
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文发斋主MACD通道斋主量交+DDX主副附图zip指标下载 通达信源码通道仅供学习研究。