神买神卖(w底选股、股价线、趋势线)-指标公式源码
diff:=ema(close,12) - ema(close,26); {选股设jc=10即可}
dea:=ema(diff,9);
macd:=2*(diff-dea);
a:=if(cross(0,dea),1,0);
a1:=if(diff<0 and cross(diff,dea),1,0);
ss:=if(a,sum(a1,0),0);
ssb:=hhv(ss,0);
sss:=sum(a1,0);
w底选股:if(sss-ssb=2 and sss>ref(sss,1),-22,0),linethick2,colorffff00;
if(sss-ssb=2 and sss>ref(sss,1),-12,0),linethick2,colorffff00;
drawtext(a1,-10,'w底'),coloryellow;
n:=20;
mid:=ma(c,n);
vart1:=pow((c-mid),2);
vart2:=ma(vart1,n);
vart3:=sqrt(vart2);
upper:=mid+2*vart3;
lower:=mid-2*vart3;
boll:=ref(mid,1);
ub:=ref(upper,1);
lb:=ref(lower,1);
lower1:=mid-vart3;
lb1:=ref(lower1,1);
股价线:(c-lb1)/(ub-lb)*100,colorgreen, linethick1;
趋势线:ma(股价线,6),colorred, linethick3;
90,colorgreen, linethick1;
50,colorwhite, linethick1;
0,colorwhite, linethick1;
varc:=sma(abs(l-ref(l,1)),3,1)/sma(max(l-ref(l,1),0),3,1);
准备建仓:ema(if(l<= llv(l,30),varc,0),3),colorff00ff,linethick2;
varo5:=llv(low,27);
varo6:=hhv(high,34);
varo7:=ema((close-varo5)/(varo6-varo5)*4,4)*25;
建仓区: if((varo7<10),80,100) ,colorffff00,linethick3;
if((varo7<10),85,100) ,colorblack,linethick2;
下单: if(cross(3*sma((close-llv(low,21))/(hhv(high,21)-llv(low,21))*100,5,1)-2*sma(sma((close-llv(low,21))/(hhv(high,21)-llv(low,21))*100,5,1),3,1),10),38,0),stick ,coloryellow, linethick4;
drawtext(下单,40,'下单'),colorgreen;
bias1:=(c-ma(c,6))/ma(c,6)*100;
bias2:=(c-ma(c,12))/ma(c,12)*100;
bias3:=(c-ma(c,24))/ma(c,24)*100;
bias:=(bias1+2*bias2+3*bias3)/6;
乖离1:=ma(bias,3);
低买:if(cross(bias,乖离1) and 乖离1<-9,28,0),colorred,linethick2;
if(cross(bias,乖离1) and 乖离1<-9,18,0),colorred,linethick2;
stickline(cross(bias,乖离1) and 乖离1<-9,-12,0,8,0),coloryellow;
drawtext(低买,33,'低买'),colorred;
ttr:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),5);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=(sum(if(((hd > 0) and (hd > ld)),hd,0),5) );
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),5);
神偷线:=(((dmp ) * 100) /ttr);
辅助线:=((dmm * 100) /ttr);
动向趋势线:=(ma(((abs((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
adxr:=((动向趋势线 + ref(动向趋势线,3)) / 2);
var3:=ma(close,2);
var7:=ref(var3,1);
【强弱】:=((sma(max((var3 - var7),0),5,1) / sma(abs((var3 - var7)),5,1)) * 100);
准备:(if(((动向趋势线 > 88) and (神偷线 < 5.8)),68,0)),linethick1,colorff00ff;
(if(((动向趋势线 > 88) and (神偷线 < 5.8)),48,0)),linethick1,colorff00ff;
drawtext(准备,60,'准备'),colorff00ff;
typ := (high + low + close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*500-250;
k:=sma(rsv,3,1);
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*500-250;
x:cross(cci,-100)and k<-100 ;
x改成:cross(cci,-100)and k<-100 and cross(rsi1,-90);
ma2:=ema(c,2);ma5:=ema(c,5);
ma13:=ema(c,13);
ma34:=ema(c,34);
ma55:=ema(c,55);
ycx:=ma5>=ref(ma5,1);
h1:=max(max(ma5,ma13),ma34);
l1:=min(min(ma5,ma13),ma34);
一阳穿三线:= h1<c and o<l1 and ycx and ma2>ref(ma2,1);
满仓选股:if(一阳穿三线,88,0),colorffff00,linethick2;
if(一阳穿三线,58,0),colorffff00,linethick2;
drawtext(一阳穿三线,88,'满仓'),coloryellow;
var2:=0.0001*amount,;
ma1:=0.0001*ma(amount,5);
m2:=0.0001*ma(amount,10);
百日地量:(var2,100)=var2,stick,colorred,linethick0;
drawtext(百日地量,-12,'地量'),colorred;
var1:=(close*2+high+low)/4;
sk:= ema(var1,13)-ema(var1,73);
sd:= ema(sk,2);
买点选股:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)
or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05
and (v/ma(v,5)>2 or c/ref(c,1)>0.035));
if(买点选股,28,0),coloryellow,linethick2;
if(买点选股,18,0),coloryellow,linethick2;
drawtext(买点选股,28,'买点'),coloryellow;
aa05:=ma(c,5);
五日乖离率:=(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);
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;
(aa20-aa30)>ref((aa20-aa30),1) and aa20>ref(aa20,1) and aa30>ref(aa30,1);
(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) ;
mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and aa05>ref(aa05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<aa30;
青云直上选股:if(filter(mr,10),30,0),colorgreen,linethick2;
if(filter(mr,10),20,0),colorgreen,linethick2;
drawtext(青云直上选股,30,'青云直上'),colorgreen;
quanclose:=(dma(close,vol/sum(vol,13)))/dma(close,vol/sum(vol,13))*100<=-28 and (close-dma(close,vol/sum(vol,34)))/dma(close,vol/sum(vol,34))*100<=-19
and c/ref(c,25)<=1.1 and if((((high > (low * 1.051)) and (count((high > (low * 1.051)),5) > 1)) and ((((close / ma(close,40)) * 100) < 78) or
(((close / ma(close,60)) * 100) < 74))),2,0) and
(sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100)<15 and if(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1)>ref(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1),1)
and ref(sma((close-llv(low,8))/
(hhv(high,8)-llv(low,8))*100,2,1),1)<ref(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1),2)
and sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1)<23 ,1.5,0) and filter((c/ma(c,48))<0.75 and (c/ma(c,70))<0.70 and
((c-l)/c>0.02 or c>ref(c,1)*1.01) and v<ref(v,1)*2.8 and (count(c<o*0.93,2)=2 or count(h/l>1.1,5)>3),3);
drawtext(quanclose,88,'弱市百发百中'),colorffff00;
if(quanclose,88,0),colorffff00,linethick2;
if(quanclose,60,0),colorffff00,linethick2;
aa:=1;
bb:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
cc:=if(amount/c/hhv(amount,9)/hhv(c,9)*100>100,100,amount/c/hhv(amount,9)/hhv(c,9)*100);
dd:=cc/bb;
量异动:if(aa,dd/ref(dd,1),0);
stickline(量异动>=0,0,量异动,8,0);
stickline(量异动>=0,0,量异动,4,0);
选股:dd/ref(dd,1);
cross(-100*(hhv(high,55)-close)/(hhv(high,55)-llv(low,55)),-45)
and close>sma(close,60,5) and sma(close,23,5)>ref(sma(close,23,5),1)
and sma(sma((close-llv(low,60))/(hhv(high,60)-llv(low,60))*100,13,1),23,1)>ref(sma(sma((close-llv(low,60))/(hhv(high,60)-llv(low,60))*100,13,1),23,1),1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
逃顶:cross(80,rsi)*88,linethick2 ,colorgreen;
cross(80,rsi)*58,linethick2 ,colorgreen;
drawtext(cross(80,rsi),88,'逃顶 '),colorgreen;
cross(-100*(hhv(high,55)-close)/(hhv(high,55)-llv(low,55)),-45)
and close>sma(close,60,5) and sma(close,23,5)>ref(sma(close,23,5),1)
and sma(sma((close-llv(low,60))/(hhv(high,60)-llv(low,60))*100,13,1),23,1)>ref(sma(sma((close-llv(low,60))/(hhv(high,60)-llv(low,60))*100,13,1),23,1),1)colorblue,linethick2;
{w1:=c=hhv(c,20);
w2:=barslast(w1);
w3:=if(w2>0,ref(c,w2),ref(c,w2));
w4:=cross(c,ref(w3,1));
w4 and count(w4,5)=1; };
上一指标公式:顶底主图操作拉升阻力指标详解 通达信拉升操作
下一指标公式:短线量能副图指标详解 通达信量能
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文神买神卖指标详解 通达信神买神卖仅供学习研究。