{潜龙出击-通达信指标公式源码}
{n=26}
stickline(50,50,-50,10,0),colorffb900,linethick4;
rsvp:=(c-llv(l,30))/(hhv(h,30)-llv(l,30))*100-50;
kv:=sma(rsvp,3,1);
dv:=sma(kv,3,1);
jv:=3*kv-2*dv;
zdzk1:=ema(jv,6);
zdzk2:=ref(zdzk1,1);
xw1:=if(o<=ref(o,1),0,max((h-o),(o-ref(o,1))));
xw2:=if(o>=ref(o,1),0,max((o-l),(o-ref(o,1))));
xw3:=sum(xw1,21);
xw4:=sum(xw2,21);
xw5:=if(xw3>xw4,(xw3-xw4)/xw3,if(xw3=xw4,0,(xw3-xw4)/xw4));
{14天强弱}
rs:=sma(max(c-ref(c,1),0),14,1)/sma(abs(c-ref(c,1)),14,1)*100;
zd:= ema(ema(ema(rs,7),3),3);
zd1:=(zd-ref(zd,1))/ref(zd,1)*15;
stickline(zd1>=0,0,zd1*50,2,0),color0000be;
stickline(zd1<=0,0,zd1*50,2,0),colorgreen;
y1:=amount/v/100;
y2:=(3*h+l+o+2*c)/7;
y3:=100*(winner(1.1*c)-winner(0.9*c));
y4:=sum(amount,13)/y1/100;
y5:= dma(y2,v/y4);
y6:=(c-y5)/y5*100;
y7:=(y3<10) and (y6<=-10);
y8:=sma(max(c-ref(c,1.5),0),6,1)/sma(abs(c-ref(c,1.5)),1,1)*100;
重亏:stickline(y6<=-10 and zd1<0,zd1*55,zd1*45,2,0),colorff89b2;
全亏:stickline(y6<=-16 and zd1<0,zd1*60,zd1*55,2,1),colorblue;
超跌:stickline(y7 and zd1<0,zd1*65,zd1*60,2,0),colorffffff;
{备战区1}
zdd1:=(hhv(h,21)-c)/(hhv(h,21)-llv(l,21))*100-10;
zdd2:=(c-llv(l,21))/(hhv(h,21)-llv(l,21))*100;
zdd3:=sma(zdd2,13,8);
zdd4:=ceiling(sma(zdd3,13,8));
zdd5:=sma(zdd1,21,8);
xh1:=sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100;
xh2:=zdd4-zdd5<-65 and xh1<12;
备战区1:=xh2;
备战区:=xh2;
{备战区2}
xx1:=ma(low,2)*0.96;
xx2:=ma(low,26)*0.85;
xx3:= ref(xx1,1)<xx2 and ref(xx1,1)<xx1 and ref(xx1,1)<ref(xx1,2);{30}
备战区2:=xx3;
c0:=ref(c,2)*0.865;
c1:=ref(c,13)*0.772;
dsy:=100*vol/capital;
备战区3:=(c-min(c0,c1))/c<0.1 and sum(dsy,5)/5<1.8;
{stickline((c-min(c0,c1))/c<0.1 and sum(dsy,5)/5<1.8,0,zd1*25,1,0),color006eff;
drawicon((c-min(c0,c1))/c<0.1 and sum(dsy,5)/5<1.8,0,1);}
{备战区4}
ww1:= sum( ma(c,10),9)/10.110;
ww2:=cross(c,ww1);
备战区4:=ww2;
stickline((备战区1 or 备战区2 or 备战区3 or 备战区4),0,zd1*25,1,0),color006eff;
drawicon(备战区1 or 备战区2 or 备战区3 or 备战区4,0,1);
{买1}
vw1:=dma(ema(c,12),sum(v,5)/3/capital);
vw2:=ref(h,10)/c>1.35;
vw3:=(cost(20)-c)/c>0.15;
vw4:=h>l*1.051;
vw5:=vw4 and count(vw4,5)>1;
vw6:=(((c-vw1)/vw1*100<-30) or vw2) and vw3 and vw5;
{stickline(vw6,0,zd1*-40,1,0),color0000ff;}
drawicon(vw6,zd1*-40,4);
{买2}
xl1:=ma(low,2)*0.96;
xl2:=ma(low,26)*0.85;
xl3:=ref(xl1,1)<xl2 and ref(xl1,1)<xl1 and ref(xl1,1)<ref(xl1,2);
stickline(xl3 or vw6,0,15,1,0),colorf8b7f0;
drawtext(xl3 or vw6,15,'←买'),colorf8b7f0;
{井喷}
jjp1:=ref(indexc,1);
jjp2:=filter((indexc-jjp1)/jjp1>0.03 and zdzk1>=zdzk2,7);
stickline(jjp2,0,-15,4,0),colorff00ff;
drawtext(jjp2,-15,'←买'),colorff00ff;
x1:=ema(hhv(h,500),21);
x2:=ema(hhv(h,250),21);
x3:=ema(hhv(h,90),21);
x4:=ema(llv(l,500),21);
x5:=ema(llv(l,250),21);
x6:=ema(llv(l,90),21);
x7:=ema((x1*0.558+x2*0.558+x3*0.558+x4*0.96+x5*0.96+x6*0.96)/6,21);
x8:=ema((x1*0.55 +x2*0.55+ x3*0.65+ x4*1.25+x5*1.23+x6*1.2 )/6,21);
x9:=ema((x1*0.68+ x2*0.68+ x3*0.68+ x4*1.3 +x5*1.3+ x6*1.3 )/6,21);
vara:=ema((x7*3+x8*2+x9)/6*1.738,21);
varb:=ref(low,1);
varc:=sma(abs(low-varb),3,1)/sma(max(low-varb,0),3,1)*100;
vard:=ema(if(c*1.35<=vara,varc*10,varc/10),3);
vare:=llv(l,30);
varf:=hhv(vard,30);
var10:=if(ma(c,58),1,0);
var11:=ema(if(low<=vare,(vard+varf*2)/2,0),3)/618*var10;
mid:=ref(h+l,1)/2;
出击:=if(cr<60 and var11>10,35,0),colorgreen;
攻击:=if (var11>20,30,0),coloryellow;
{加仓}
xc1:=(ma(c,80)-ma(c,13)/3);
xc2:= ma((c-xc1)/xc1,1);
xc3:=ema(xc2,12)*0.7;
xc4:=ema(xc2,3);
xc5:=if(llv(xc4-xc3,12)>0,0,-10);
xc6:=ema(c,12)-ema(c,26);
xc7:=ema(xc6,9);
xc8:=2*(xc6-xc7);
加仓:=if(xc5<0 and cross(xc8,0),50,0),linethick1,colorblue;
出击加仓:if((出击=35 or 攻击=30 or 加仓=50),30,0);
drawtext(加仓=50,35,'←加仓'),colorblue;
做多:if(zdzk1>=zdzk2,zdzk1+2,zdzk2),coloryellow,linethick5;
做空:if(zdzk2-zdzk1,zdzk2,zdzk1),colorgreen,linethick5;
drawband(做空,rgb(0,255,250),做多,rgb(255,50,50));var2:=ma(amount/(100*vol),13);
var3:=ma(amount/(100*vol),34);
var4:=dma(close,vol/capital);
var5:=winner(close)*100;
var6:=100*vol/capital;
犀牛:(close-var2)/var2*100,linethick,coloryellow;
y0:=abs(winner(c)-winner(open))*70;
y7c:=if(var5>=90 and var6<3,15.82,犀牛);
{控制}
高:=max(max(犀牛,abs(winner(c)-winner(o))*70),15.82);
低:=min(max(-犀牛,-abs(winner(c)-winner(o))*70),-15.82);
{stickline(c>ref(c,1),0,y0,3,1),colorred;
stickline(c<=ref(c,1),0,y0,3,0),colorcyan;}
stickline(犀牛<=0,0,犀牛,2,0),color005c00;
stickline(犀牛>0,0,犀牛,2,0),colorblue;
{stickline(cross(c,var3),0,15.82,2,0),colorred;
stickline(cross(c,var4),0,15.82,2,0),colorred;
stickline(cross(var2,var4),0,15.82,2,0),colorred;}
stickline(y7c>0,0,y7c,1,0),colorred;
stickline(y7c<=0,0,y7c,1,0),colorwhite;dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);ddn:=c=hhv(c,180);
ee:=dea< ref(dea,1) and ref(dea< ref(dea,1),1)=1;
cc:=c> ref(c,1) and ref(c> ref(c,1),1)=1;
drawicon(cc and ee,做空,5);
上一指标公式:天神决策 通达信天神
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文潜龙出击副图- 通达信潜龙仅供学习研究。