{资金主图mm 均线}
drawgbk(c>0,rgb(00,0,150),rgb(0,00,0),0,' ',0);
mid:=(3*close+low+open+high)/6;
牛线:(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17)+2*ref(mid,18)+ref(mid,20))/210,colorred;
马线:ma(牛线,8),colorwhite;
{}
drawband(牛线,rgb(255,87,22),马线,rgb(0,30,255));
z1:=strcat(hyblock,' ');
z2:=strcat(z1,dyblock);
z3:=strcat(z2,' ');
drawtext_fix(islastbar,0,0.16,0,strcat(z3,gnblock)),colorlired;
drawtext_fix(islastbar,0,0.12,0,externstr(0,3)),colorwhite;
drawtext_fix(islastbar,0,0.06,0,externstr(0,6)),colorliblue;
drawtext_fix(islastbar,0,0.03,0,externstr(0,12)),colorligreen;{老王}
drawtext_fix(islastbar,0,0.09,0,fgblock),colorlimagenta;
drawtext_fix(islastbar,0,0.0,0,externstr(0,1)),coloryellow;{融胜}
主力成本线:ema(cost(9),250),colorbrown,dotline;
{牛马线买点公式升级版}
drawicon( filter(cross(牛线,马线),20),马线-0.002 ,1);
drawtext(cross(牛线,马线),low*0.984,'买'),colorred,linethick2;
止损价:h*0.95,linethick0.5,colorred;
庄家:(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+
16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+
13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+
10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+
7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+
4*ref(mid,16)+3*ref(mid,17)+2*ref(mid,18)+ref(mid,20))/210,colorred;
if(庄家>=ref(庄家,1),庄家,drawnull),colorred,linethick4;
if(庄家<=ref(庄家,1),庄家,drawnull),colorgreen,linethick2;
ma60:ma(close,60),colorgray;
n1:=3;
tk:=const(hhvbars(v,10)),color0000ff,linethick1;
量能平台:if(currbarscount<=n1+3,const(if(tk=0,c,ref(c,tk))),drawnull),colorgray,linethick2;
notext_新量能点:if(currbarscount=tk+1,量能平台,drawnull),circledot,colorffffff,linethick9;
drawtext(islastbar,量能平台,' 量能平台'),colorgray;
{稳涨}
红轨道:=ma(ma(close,3),1),linethick1,coloryellow;
轨道:ma(ma(close,3),3),color32cd32,linethick2;
notext_升:if(红轨道>=轨道,轨道,drawnull),colormagenta,linethick2;
机构:(l2_vol(0,0) - l2_vol(0,1))*10000/finance(7),nodraw,colorred;
大户:(l2_vol(1,0) - l2_vol(1,1))*10000/finance(7),nodraw,colormagenta;
主力:机构+大户,nodraw,coloryellow;
累计:=sum(主力,30),colormagenta;
均值:=ema(累计,min(10,30)),colorwhite;
{高低点定位}
g0:=(xma(xma(h,30),30)-xma(xma(l,30),30))+xma(xma(h,30),30);
d0:=xma(xma(l,30),30)-(xma(xma(h,30),30)-xma(xma(l,30),30));
g01:=(xma(xma(h,30),30)-xma(xma(l,30),30))*0.5+xma(xma(h,30),30);
d01:=xma(xma(l,30),30)-(xma(xma(h,30),30)-xma(xma(l,30),30))*0.5;
go0:=(xma(xma(h,60),60)-xma(xma(l,60),60))*3+xma(xma(h,60),60);
do0:=xma(xma(l,60),60)-(xma(xma(h,60),60)-xma(xma(l,60),60))*3;
stickline(currbarscount=1,g0,g0,100,5),colorgreen;
stickline(currbarscount=1,d0,d0,100,5),colormagenta;
stickline(currbarscount=1,go0,go0,100,5),colorliblue;
stickline(currbarscount=1,do0,do0,100,5),colorred;
drawtext(islastbar,g0,' 卖'),colorgreen;
drawtext(islastbar,d0,' 买'),colormagenta;
drawtext(islastbar,go0,' 顶'),colorliblue;
drawtext(islastbar,do0,' 底'),colorred;
{五线顺上的拐点定位线,有未来函数}
局部低点预选a:=backset(llv(l,5)<ref(llv(l,4),1),4);
局部低点预选b:=backset(局部低点预选a=0 and ref(局部低点预选a,1)=1,2);
局部低点预选c:=if(局部低点预选b=1 and ref(局部低点预选b,1)=0,-1,0);
局部高点预选a:=backset(hhv(h,5)>ref(hhv(h,4),1),4);
局部高点预选b:=backset(局部高点预选a=0 and ref(局部高点预选a,1)=1,2);
局部高点预选c:=if(局部高点预选b=1 and ref(局部高点预选b,1)=0,1,0);
缺口判断:=if(l>ref(h,1),1,if(h<ref(l,1),-1,0));
距前高天:=barslast(局部高点预选c=1);
距前低天:=barslast(局部低点预选c=-1);
小值周期:=lowrange(l);{}
大值周期:=toprange(h);
低保留aa:=if(局部低点预选c=-1 and ref(距前高天,1)>ref(距前低天,1) and llv(l,距前高天+1)<ref(llv(l,距前高天+1),1),-1,0);
低保留ab:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and (距前高天>=4 or llv(缺口判断,距前高天)=-1 or llv(l,距前低天+2)<ref(llv(l,距前低天+1),1)),-1,0);
低保留s:=if((低保留aa=-1 or 低保留ab=-1) and l<ref(h,距前高天+1),-1,0);
预判:=if((距前低天<4 and hhv(缺口判断,距前低天)!=1) or ref(低保留s,距前低天)=0,1,0);
判断:=if(局部高点预选c=1 and ref(距前低天,1)<=ref(距前高天,1) and 预判=1 and 大值周期>ref(小值周期,距前低天+1) and 大值周期>ref(小值周期,距前低天) and 大值周期>ref(大值周期,距前高天),1,0);
高保留a:=if(局部高点预选c=1 and ref(距前低天,1)>ref(距前高天,1) and hhv(h,距前低天+1)>ref(hhv(h,距前低天+1),1),1,0);
高保留b:=if(局部高点预选c=1 and ref(距前低天,1)<=ref(距前高天,1) and ref(低保留s,距前低天)=-1 and (距前低天>=4 or hhv(缺口判断,距前低天)=1),1,0);
高保留:=if((高保留a=1 or 高保留b=1 or 判断=1) and h>ref(l,距前低天+1),1,0);
预判a:=if((距前高天<4 and hhv(缺口判断,距前高天)!=1) or ref(高保留,距前高天)=0,1,0);
判断a:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and 预判a=1 and 小值周期>ref(大值周期,距前高天+1) and 小值周期>ref(大值周期,距前高天) and 小值周期>ref(小值周期,距前低天),-1,0);
低保留a:=if(局部低点预选c=-1 and ref(距前高天,1)>ref(距前低天,1) and llv(l,距前高天+1)<ref(llv(l,距前高天+1),1),-1,0);
低保留b:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and (距前高天>=4 or llv(缺口判断,距前高天)=-1 or 判断a=-1),-1,0);
低保留:=if((低保留a=-1 or 低保留b=-1) and l<ref(h,距前高天+1),-1,0);
距前高天a:=barslast(高保留=1);
距前低天a:=barslast(低保留=-1);
预判x:=if((距前低天a<4 and hhv(缺口判断,距前低天a)!=1) or ref(低保留,距前低天a)=0,1,0);
判断x:=if(局部高点预选c=1 and ref(距前低天a,1)<=ref(距前高天a,1) and 预判x=1 and 大值周期>ref(小值周期,距前低天a+1) and 大值周期>ref(小值周期,距前低天a) and 大值周期>ref(大值周期,距前高天a),1,0);
高保留xa:=if(局部高点预选c=1 and ref(距前低天a,1)>ref(距前高天a,1) and hhv(h,距前低天a+1)>ref(hhv(h,距前低天a+1),1),1,0);
高保留xb:=if(局部高点预选c=1 and ref(距前低天a,1)<=ref(距前高天a,1) and ref(低保留,距前低天a)=-1 and (距前低天a>=4 or hhv(缺口判断,距前低天a)=1),1,0);
高保留x:=if((高保留xa=1 or 高保留xb=1 or 判断x=1) and h>ref(l,距前低天a+1),1,0);
预判xa:=if((距前高天a<4 and hhv(缺口判断,距前高天a)!=1) or ref(高保留xa,距前高天a)=0,1,0);
判断xa:=if(局部低点预选c=-1 and ref(距前高天a,1)<=ref(距前低天a,1) and 预判xa=1 and 小值周期>ref(大值周期,距前高天a+1) and 小值周期>ref(大值周期,距前高天a) and 小值周期>ref(小值周期,距前低天a),-1,0);
低保留xa:=if(局部低点预选c=-1 and ref(距前高天a,1)>ref(距前低天a,1) and llv(l,距前高天a+1)<ref(llv(l,距前高天a+1),1),-1,0);
低保留xb:=if(局部低点预选c=-1 and ref(距前高天a,1)<=ref(距前低天a,1) and (距前高天a>=4 or llv(缺口判断,距前高天a)=-1 or 判断xa=-1),-1,0);
低保留x:=if((低保留xa=-1 or 低保留xb=-1) and l<ref(h,距前高天a+1),-1,0);
距前高天ya:=barslast(高保留x=1);
距前低天ya:=barslast(低保留x=-1);
预判yx:=if((距前低天ya<4 and hhv(缺口判断,距前低天ya)!=1) or ref(低保留x,距前低天ya)=0,1,0);
判断yx:=if(局部高点预选c=1 and ref(距前低天ya,1)<=ref(距前高天ya,1) and 预判yx=1 and 大值周期>ref(小值周期,距前低天ya+1) and 大值周期>ref(小值周期,距前低天ya) and 大值周期>ref(大值周期,距前高天ya),1,0);
高保留yxa:=if(局部高点预选c=1 and ref(距前低天ya,1)>ref(距前高天ya,1) and hhv(h,距前低天ya+1)>ref(hhv(h,距前低天ya+1),1),1,0);
高保留yxb:=if(局部高点预选c=1 and ref(距前低天ya,1)<=ref(距前高天ya,1) and ref(低保留x,距前低天ya)=-1 and (距前低天ya>=4 or hhv(缺口判断,距前低天ya)=1),1,0);
高保留yx:=if((高保留yxa=1 or 高保留yxb=1 or 判断yx=1) and h>ref(l,距前低天ya+1),1,0);
预判yxa:=if((距前高天ya<4 and hhv(缺口判断,距前高天ya)!=1) or ref(高保留yxa,距前高天ya)=0,1,0);
判断yxa:=if(局部低点预选c=-1 and ref(距前高天ya,1)<=ref(距前低天ya,1) and 预判yxa=1 and 小值周期>ref(大值周期,距前高天ya+1) and 小值周期>ref(大值周期,距前高天ya) and 小值周期>ref(小值周期,距前低天ya),-1,0);
低保留yxa:=if(局部低点预选c=-1 and ref(距前高天ya,1)>ref(距前低天ya,1) and llv(l,距前高天ya+1)<ref(llv(l,距前高天ya+1),1),-1,0);
低保留yxb:=if(局部低点预选c=-1 and ref(距前高天ya,1)<=ref(距前低天ya,1) and (距前高天ya>=4 or llv(缺口判断,距前高天ya)=-1 or 判断yxa=-1),-1,0);
低保留yx:=if((低保留yxa=-1 or 低保留yxb=-1) and l<ref(h,距前高天ya+1),-1,0);
aaad:=if(高保留yx=1 and 低保留yx=-1 and h>ref(h,ref(距前高天ya,1)+2),1,if(高保留yx=1 and 低保留yx=-1 and l<ref(l,ref(距前低天ya,1)+2),-1,0));
极点保留:=if(aaad=0,高保留yx+低保留yx,aaad);
局部极点:if(极点保留=-1,l,if(极点保留=1,h,drawnull)),circledot,coloryellow;
drawline(极点保留=-1,局部极点,极点保留=1,局部极点,0)colorlired,linethick1;
drawline(极点保留=1,局部极点,极点保留=-1,局部极点,0)colorlicyan,linethick1;
dd1:=barslast(abs(极点保留)!=1);
drawtext(极点保留=1,局部极点,'卖'),colorliblue;
drawtext(极点保留=-1,局部极点,'买'),colorred;
{一绝}
q_1:=c-ref(c,1);
q_2:=100*ema(ema(q_1,6),6)/ema(ema(abs(q_1),6),6);
q_3:=cross(ema(c,19),ema(c,7));
q_4:=cross(ema(c,7),ema(c,19));
zd1:=l=llv(l,barslast(q_3)+1);
zd2:=llv(l,barslast(q_3)+1);
zd3:=h=hhv(h,barslast(q_4)+1);
zd4:=hhv(h,barslast(q_4)+1);
q_a:=drawline(zd1,zd2,zd3,zd4,0);
u1:=h=hhv(h,barslast(q_4)+1);
u2:=hhv(h,barslast(q_4)+1);
u3:=l=llv(l,barslast(q_3)+1);
u4:=llv(l,barslast(q_3)+1);
q_b:=drawline(u1,u2,u3,u4,0);
tj:=if(q_b<ref(q_b,1) and q_b=q_a,1,0);
bb:=ref(tj,1)=0 and tj>=1 ;
drawicon(bb,l*0.998,34);
ss:=ref(q_a<ref(q_a,1) and q_b=q_a,1)=0 and tj<1;
drawicon(ss,h*1.002,35);
{私募公式}
aae:= winner(close+close*15/100)*100;
bbe:= winner(close+close*0/100)*100;
cce:= aae-bbe;
dde:= (winner(close-close*0.1/100)-winner(close-close*15/100))*100;
eee:= cce<3 and dde<0.5 and open>low;
ae1:= dynainfo(6);
ae2:= if(low>ae1,0,if(high<ae1,1,(ae1-low+0.01)/(high-low+0.01)));
ae3:= vol/winner(low);
ae4:= ref(hhv(close,120),1);
ae5:= ref(llv(close,120),1);
ae6:= 100*(close-ae5)/(ae4-ae5);
ae7:= ae2>0 or ae2=1;
ae8:= ae7 and ae3/ref(ae3,3)>=3 and ae6<80;
ae9:= ref(ae8,1) or ref(ae8,2) or ref(ae8,3) or ref(ae8,4);
ae10:= ae8 and ae9;
ae11:= if(filter(ae8,3),5,0);
ae12:= filter(if(filter(ae10,3) or eee,10,0),3);
drawicon(ae12,l-0.0018,13);
{新趋势线};
ax1:=ref(h,8)=hhv(h,2*8+1);
bx1:=filter(ax1,8);
cx1:=backset(bx1,8+1);
dx1:=filter(cx1,8);{高点}
rx1:=backset(islastbar,barslast(dx1)+1);
sx1:=rx1>ref(rx1,1);
drawline(dx1,h,sx1,h,1),colorblue,dotline;
ax2:=ref(l,8)=llv(l,2*8+1);
bx2:=filter(ax2,8);
cx2:=backset(bx2,8+1);
dx2:=filter(cx2,8);{低点}
tx1:=backset(islastbar,barslast(dx2)+1);
ux1:=tx1>ref(tx1,1);
drawline(dx2,l,ux1,l,1),colorlimagenta,dotline;
m:=intpart(3*8/5);
av2:=ref(h,m)=hhv(h,2*m+1);
bv2:=filter(av2,m);
cv2:=backset(bv2,m+1);
dv2:=filter(cv2,m);{高点}
rv2:=backset(islastbar,barslast(dv2)+1);
sv2:=rv2>ref(rv2,1);
drawline(dv2,h,sv2,h,1),colorliblue,dotline;
a22:=ref(l,m)=llv(l,2*m+1);
b22:=filter(a22,m);
c22:=backset(b22,m+1);
d22:=filter(c22,m);{低点}
t112:=backset(islastbar,barslast(d22)+1); u112:=t112>ref(t112,1);
drawline(d22,l,u112,l,1),colormagenta,dotline;
{伏击涨停}
t1:=ma(c,21)>ref(ma(c,21),1);
t2:=exist(c>ref(c,1)*1.093,21);
t3:=c<o and c<ref(c,1) and every(ma(c,5)<ref(ma(c,5),1),3);
t5:=every(v<ref(v,1),2) and every(v<ma(v,5),2);
t6:=ma(c,5)>ma(c,21);
drawtext(t1 and t2 and t3 and t5 and t6,l,'--伏击涨停');
{红底绿顶}
低:=ref(llv(l,150),3);
近期底:=refdate(低,date);
最底:=refdate(近期底,date);
入:=最底=l and ((c+l)<(o+c) or (o+l)<(c+o));
drawtext(入,l*1.0021,'-红底'),colorlimagenta;
高:=ref(hhv(h,150),3);
近期顶:=refdate(高,date);
最顶:=refdate(近期顶,date),nodraw;
出:=最顶=h and ((c-l)<(o-c) or (o-l)<(c-o)),nodraw;
stickline(出,o,(c+o)/2,3,0),colorblue;
stickline(出,h,l,0.2,0),colorblue;
drawtext(出,h*0.998,'--蓝顶'),colorgreen;
a2:=ref(ma(c,20),1);j1:=(ma(c,20)-a2)/a2*100;mj1:=ma(j1,3);
乖离2:=(ma(c,20)-ma(c,30))/ma(c,30)*100;
vac1:=if(between(乖离2,-2,5),2,0);
xl1:=((llv(low,3) = llv(low,60)) and ((close / ref(close,1)) >= 1.04));
xl2:=(((close - ema(close,21)) / ema(close,21)) * 100);
xl3:=cross(xl2,(0 - 20));
drawtext(filter(((xl1 > 0) and low),5),(low - 0.0014),'●买点');
drawtext((xl3 > 0),(low - 0.0011),'●绝对底部')coloryellow;
x6:=ref(close,1);
x7:=((sma(max((close - x6),0),7,1) / sma(abs((close - x6)),7,1)) * 100);
x8:=cross(79,x7);
x9:=filter(x8,4);
drawtext(x9,(high * 0.9989),'-●出货'),colorgreen;
{金牛启动}
年:=ma(close,240);
涨幅%:=(c-ref(c,1))/ref(c,1)*100;
rsvv:=(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100;
varb2:=(rsvv/2+22)*1;
量:=ema(vol,13);
资金:=ema(amount,13);
过滤:=((资金 /量) / 100);
提纯:=(((close -过滤) / 过滤) * 100);
黄金:=((提纯 < (0)) and zxnh);
买:=if(黄金 and rsvv<varb2-2,180,0) and 涨幅%>0 and c<年;
drawtext(买>0,l-0.0013,'-牛'),colorffffff;
drawtext(买>0,l-0.0018,'▲'),colorff00ff;
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;
var11:=(aa20-aa30)>ref((aa20-aa30),1)
and aa20>ref(aa20,1) and aa30>ref(aa30,1);
var22:=(aa30-aa20)<ref((aa30-aa20),1) and aa20<ref(aa20,1) and
aa30<ref(aa30,1);
bb30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;
强势狙击:=filter(bb30>30 and bb10>45 and
cross(bb05,60),10);
加仓:=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) ;
清仓:=filter(count(cross(30,bb05),5)>=1 and (c>aa30 or o>aa30) and
aa05<ref(aa05,1) and 三拾日乖离率<ref(三拾日乖离率,1) and
aa10<ref(aa10,1),10);
drawicon(加仓 ,low*0.997,21);
drawicon(清仓 ,high*1.005,12);
drawicon(强势狙击 ,low*0.997,11);
{俊俊出击-选股}
s1:=ma((2*c+h+l)/4,5);
s2:=s1*(200-102)/100;
s3:=(1-7/100)*dma(c,abs((2*c+h+l)/4-ma(c,20))/ma(c,20));
s4:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
s5:=3*sma(s4,3,1)-2*sma(sma(s4,3,1),3,1);
s6:=((h+l+c)/3-ma((h+l+c)/3,14))/(0.015*avedev((h+l+c)/3,14));
drawtext(s2<s3&&s5>ref(s5,1)&&ref(s5,1)<ref(s5,2)&&s6<-100&&s6>ref(s6,1),l-0.0018,'俊'),coloryellow;
{洗盘杀入线源码:}
t11:=const(llvbars(low,10));
t11high:=const(ref(high,t11));
cc1:=const(currbarscount);
t22:=const(barslast(currbarscount>cc1+t11 and h>t11high));
t22high:=const(ref(high,t22));
t33:=const(barslast(currbarscount>cc1+t22 and high>t22high));
t33high:=const(ref(high,t33));
{c>=t33high and ref(c,1)<t33high and dynainfo(17)>2;}
n:=10;
t1k:=const(llvbars(low,n));
t1high:=const(ref(high,t1k));
cc:=const(currbarscount);
t2k:=const(barslast((currbarscount >(cc+t1k)) and (high>t1high)));
t2high:=const(ref(high,t2k));
t3k:=const(barslast((currbarscount >(cc+t2k)) and (high>t2high)));
t3high:=const(ref(high,t3k));
洗盘杀入线:drawline(currbarscount=3+1,t3high,islastbar, t3high,1),linethick1,colorlired;
drawtext(islastbar, t3high,' 杀入线')linethick1,colorlired;
aq1:=ref(v,1);aq2:=dvol;aq3:=aq2/aq1;
lnx:=aq3-ref(aq3,1);
e1:=ref(c,1);e2:=dclose;e3:=(e2-e1)/e1*100;
qmx:=e3-ref(e3,1);
xg:=cross(lnx,500) and cross(qmx,10);
drawtext(xg=1,l*0.995,'--钻石'),colorffcc88;
drawicon(xg=1,l*0.993,25);
{有庄控盘}
vaw1:=ema(ema(close,13),13);
控盘:=(vaw1-ref(vaw1,1))/ref(vaw1,1)*1000;
无庄控盘:=控盘<0;
有庄控盘:=控盘>ref(控盘,1) and 控盘>0;
{分时价格原码}
jj:=dynainfo(11);
{波段买卖原码}
p:=21;s:=8;m1:=3;
财:=(ema(close,s)-ema(close,p))*50;
神:=ema(财,m1);
{股价与均线偏离买卖条件}
btj1:=(c-jj)/jj<-0.03;
btj11:=(c-jj)/jj<-0.03;
btj12:=last(jj>=ref(jj,1),5,1) and (c-jj)/jj<0.005;
stj1:=(c-jj)/jj>0.005;
{控盘买卖条件}
stj01:=控盘<ref(控盘,1) and 控盘>0.5;
stj02:=控盘>0;
btj2:=控盘>ref(控盘,1) and 控盘<-0.2;
btj22:=控盘>ref(控盘,1) and 控盘<0 ;
{波段买卖条件}
btj3:=cross(财,神) and 财<-0.3;
btj32:=cross(财,神) and 财<-0.1;
stj31:=cross(神,财);
stj32:=cross(神,财) and 财>1.618;
{以下为信号};
btj81:=filter(btj1 and btj2 and btj3,13);
btj811:=filter(btj11 and btj2 and btj3,13);
btj82:=filter(btj12 and btj22 and btj32,13);
stj81:=filter(stj1 and stj01 and stj31,13);
stj82:=filter(stj02 and stj32 ,13);
stj83:=stj81 and stj82;
drawtext(stj83,h*1.002,'↓庄出'),colorgreen;
drawicon(stj83,h+0.003,24);
庄:= btj11 and btj2 and btj3;
有庄:=filter(庄,30);
drawtext(有庄,l-0.0011,'↖庄进'),coloryellow;
drawicon(有庄,l*0.999,23);
{牛熊轨道上抓启爆点 适合抓爆涨股}
ahc1:=close*vol;
ahc22:=ema((expma(ahc1,27)/expma(vol,27)+expma(ahc1,54)/expma(vol,54)+expma(ahc1,108)/expma(vol,108)+expma(ahc1,316)/expma(vol,316))/4,34);
上轨:=1.06*ahc22;
下轨:=ahc22*0.94;
zt:=ref(c,1)*1.1-c<0.01 and h=c;
启爆:=cross(c,上轨) or cross(c,下轨) and zt;
drawtext(启爆,l,'↖启爆'),colorcyan;
{style:抄底钻石王--可以用于选股预警,也可以放到附图}
yy:=(ref(h,4)-ref(l,1))/c*100>10;{4天前的最高到昨天最低跌幅为10个点}
yy1:=(ref(l,1)-l)/c*100>=0;{昨天的最低价跟今天最低价相平或收下影线}
yy2:=ref(c<o,1) and c>o;{昨天收阴,今天收阳线}
yy3:= close>ref(close,1)*1.03 ;{股价3个点预警}
yy4:=(h-c)/c*100<1.5;{上影线少于1.5个点}
yy5:=v<=llv(v,5) or v>=hhv(v,5);{成交量是五天最低或五天最高}
drawicon(yy and yy1 and yy2 and yy3 and yy4 and yy5,l*0.988,26);{满足所有条件};
drawtext(yy and yy1 and yy2 and yy3 and yy4 and yy5,l*0.988,'--钻石王'),colorred;
drawkline(high,open,low,close);
stickline(主力>0,o,c,1.5,1),colorred;
stickline(主力<0,o,c,1.5,1),colorcyan;
stickline(大户>0,o,c,1,0),colormagenta;
stickline(大户<0,o,c,1,0),colorgreen;
stickline(机构>0 and 大户>0,o,(o+c)/2,1,0),colorred;
stickline(机构<0 and 大户>0,c,(o+c)/2,1,0),colorcyan;
stickline(机构>0 and 大户<0,o,(o+c)/2,1,0)colormagenta;
stickline(机构<0 and 大户<0,c,o,1,0)colorlicyan;
{红}
stickline(cross(累计,均值),h,l,0,0),colorred,linethick1;
stickline(cross(累计,均值),close,open,1.4,0),color000088;
stickline(cross(累计,均值),close,open,1,0),color0000bb;
stickline(cross(累计,均值),close,open,0.6,0),color0000dd;
stickline(cross(累计,均值),close,open,0,0),color0000ff;
{蓝}
stickline(cross(均值,累计),h,l,0,0),colorff8800,linethick1;
stickline(cross(均值,累计),close,open,1.4,0),colorbb4400;
stickline(cross(均值,累计),close,open,1,0),colorcc5500;
stickline(cross(均值,累计),close,open,0.6,0),colordd6600;
stickline(cross(均值,累计),close,open,0,0),coloree7700;
stickline(入,o,(c+o)/2,3,0),colorred;
stickline(入,h,l,0.2,0),colorred;
上一指标公式:红箭齐发 通达信齐发
下一指标公式:主力买卖 通达信主力
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文资金主图MM 通达信资金仅供学习研究。