{量能饱和度}
时间:date+1900/0/0,nodraw,colorwhite;
n:=20;{}
sat1:=if(amount/close/(hhv(amount,n)/hhv(close,n))*100>100,100,amount/close/(hhv(amount,n)/hhv(close,n))*100);
tdxstep208:stickline(close>0 and barscount(close),0,100,3,1),color000048;
tdxstep209:stickline(sat1>=99 and barscount(close),0,0+sat1,2.8,0),color0000bb;
sat:sat1,colorwhite,linethick0;
{中期方向线}
时间:date+1900/0/0,nodraw,colorwhite;
diff:=ema(close,30)-ema(close,120);
dea:=ema(diff,12);
a1:=diff>dea;{}
中期方向线:diff-dea,linethick0;
tdxstep210:drawband(中期方向线,rgb(160,0,0),0,rgb(0,130,0));
mb:=ema(中期方向线,20);
超买线:mb+1.96*std(中期方向线,9),coloryellow;
超卖线:mb-1.96*std(中期方向线,9),colorcyan;
{决策曲线}
时间:date+1900/0/0,nodraw,colorwhite;
ma1:=ma(close,5);
ma2:=ma(close,10);
p01:=if(ma1>ma2,1,if(ma2>ma1,(-1),0));
ma3:=ma(close,3);
ma4:=ma(close,5);
p02:=if(ma3>ma4,1,if(ma4>ma3,(-1),0));
ma5:=ma(close,12);
ma6:=ma(close,50);
p03:=if(ma5>ma6,1,if(ma6>ma5,(-1),0));
rsv:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
k:=ema(rsv,3);
d:=ema(k,3);
{}
p04:=if(k>d,2,if(d>k,(-1),0));
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);
macd:=(dif-dea)*2;
p05:=if(dif>dea,2,if(dea>dif,(-1),0));
tr2:=ema(ema(ema(close,12),12),12);
trix:=(tr2-ref(tr2,1))/ref(tr2,1)*100;
matrix:=ma(trix,9);
p06:=if(trix>matrix,1,if(matrix>trix,(-1),0));
tr1:=ema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),7);
hd:=high-ref(high,1);
ld:=ref(low,1)-low;
dmp:=ema(if(hd>0 and hd>ld,hd,0),7);
dmm:=ema(if(ld>0 and ld>hd,ld,0),7);
pdi:=dmp*100/tr;
mdi:=dmm*100/tr;
adx:=ema(abs(mdi-pdi)/(mdi+pdi)*100,7);
adxr:=ema(adx,7);
p07:=if(pdi>mdi and adx>pdi and adx>50,1,if(pdi<mdi and adx>mdi and adx>50,(-1),0));
lc:=ref(close,1);
rsi1:=ema(max(close-lc,0),5)/ema(abs(close-lc),5)*100;
p08:=if(rsi1>80,1,if(rsi1<20,(-1),0));
typ:=(high+low+close)/3;
cci:=(typ-ma(typ,8))/(0.015*avedev(typ,8));
p09:=if(cci>180,1,if(cci<(-180),(-1),0));
wr1:=(close-llv(low,6))/(hhv(high,6)-llv(low,6))*100;
p10:=if(wr1>80,1,if(wr1<20,(-1),0));
osc:=100*(close-ma(close,20));
p11:=if(osc>0,1,if(osc<0,(-1),0));
mom:=close-ref(close,7);
p12:=if(mom>0,1,if(mom<0,(-1),0));
dpo:=close-ref(ma(close,11),11/2+1);
p13:=if(dpo>0,1,if(dpo<0,(-1),0));
mb:=ma(close,12);
r:=(close-mb)*(close-mb);
x1:=ma(r,12);
x2:=sqrt(x1);
d1:=1;
upper:=mb+d1*x2;
lower:=mb-d1*x2;
p14:=if(close>upper,1,if(close<lower,(-1),0));
br:=sum(max(0,high-ref(close,1)),14)/sum(max(0,ref(close,1)-low),14)*100;
ar:=sum(high-open,14)/sum(open-low,14)*100;
p15:=if(br>350 or ar>180,1,if(br<45 or ar<45,(-1),0));
th:=sum(if(close>ref(close,1),vol,0),14);
tl:=sum(if(close<ref(close,1),vol,0),14);
tq:=sum(if(close=ref(close,1),vol,0),14);
vr:=100*(th*2+tq)/(tl*2+tq);
p16:=if(vr>350,1,if(vr<45,(-1),0));
wvad:=sum((close-open)/(high-low)*vol,6)/10000;
p17:=if(wvad>0,1,if(wvad<0,(-1),0));
volume:=ma(vol,4)/vol;
mid1:=100*(high+low-ref(high+low,1))/(high+low);
emv:=ma(mid1*volume*(high-low)/ma(high-low,4),4);
p18:=if(emv>0,1,if(emv<0,(-1),0));
va:=if(close>ref(close,1),vol,-vol);
obv:=sum(if(close=ref(close,1),0,va),0);
maobv:=ema(obv,24);
p19:=if(obv>maobv,1,if(obv<maobv,(-1),0));
pvi:=pave.cv;
mpvi:=ema(pvi,24);
p20:=if(pvi>mpvi,1,if(pvi<mpvi,(-1),0));
nvi:=pav.gv;
mnvi:=ema(nvi,24);
p21:=if(nvi>mnvi,1,if(nvi<mnvi,(-1),0));
mass:=sum(ma(high-low,9)/ma(ma(high-low,9),9),25);
ma7:=ma(close,9);
p22:=if(ma7>ref(ma7,1) and mass>26.5,1,if(ma7<ref(ma7,1) and mass<26.5,(-1),0));
num:=abs(hhv(high,15)-llv(low,15));
den:=sum(abs(close-ref(close,1)),15);
vhf:=if(den=0,0,num/den);
vhf1:=ema(vhf,240);
p23:=if(vhf>vhf1,1,if(vhf<vhf1,(-1),0));
pu:=ma(close,13);
cu:=ma(vol,13);
pu1:=(pu-ref(pu,1))/ref(pu,1)*100;
cu1:=(cu-ref(cu,1))/ref(cu,1)*100;
逆时针曲线:=pu1+cu1;
p24:=if(逆时针曲线>ref(逆时针曲线,1),1,if(逆时针曲线<ref(逆时针曲线,1),(-1),0));
lc2:=ref(close,1);
aa:=abs(high-lc2);
bb:=abs(low-lc2);
cc:=abs(high-ref(low,1));
dd:=abs(lc2-ref(open,1));
r2:=if(aa>bb and aa>cc,aa+bb/2+dd/4,if(bb>cc and bb>aa,bb+aa/2+dd/4,cc+dd/4));
x01:=close-lc2+(close-open)/2+lc2-ref(open,1);
si:=16*x01/r2*max(aa,bb);
asi:=sum(si,0);
masi:=ma(asi,6);
p25:=if(close<hhv(close,13) and asi=hhv(asi,13),1,if(close>llv(close,13) and asi=llv(asi,13),(-1),0));
bias1:=(close-ma(close,12))/ma(close,12)*100;
p26:=if(bias1>10,1,if(bias1<(-10),(-1),0));
mid:=(3*close+low+open+high)/6;
dkx:=(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;
madkx:=ma(dkx,4);
p27:=if(dkx>madkx,2,if(dkx<madkx,(-1),0));
wy1001:=(2*close+high+low)/4;
wy1002:=ema(wy1001,4);
wy1003:=ema(wy1002,4);
wy1004:=ema(wy1003,4);
xys0:=(wy1004-ref(wy1004,1))/ref(wy1004,1)*100;
pjgj:=amount/vol/100;
ssrydjx:=ma(pjgj,13);
ssrcjl:=ema(vol,13);
ssrcje:=ema(amount,13);
ssrcbjx:=ssrcje/ssrcjl/100;
cys13:=(close-ssrcbjx)/ssrcbjx*100;
xyshsl:=ema(vol/capital*100,13);
zzx:=0;
xys1:=ma(xys0,2);
xys2:=ma(xys0,1);
p28:=if(xys2>xys1,1,if(xys2<xys1,(-1),0));
jc:48+p01+p02+p03+p04+p05+p06+p07+p08+p09+p10+p11+p12+p13+p14+p15+p16+p17+p18+p19+p20+p21+p22+p23+p24+p25+p26+p27+p28,colorwhite;
majcqx:ma(jc,3),coloryellow;
boll:=ma(jc,20);
ub:boll+2*std(jc,20),coloryellow;
lb:boll-2*std(jc,20),colorgreen;
tdxstep199:if(jc<56,jc,jc),colorwhite;
tdxstep200:if(jc>56,jc,jc),colorred;
tdxstep201:if(jc<56,jc,56),colorwhite;
tdxstep202:if(jc>56,56,56),colorred;
tdxstep203:stickline(close>0,36,36,10,0),colorlicyan;
tdxstep204:stickline(close>0,56,56,10,0),colorlicyan;
tdxstep205:stickline(close>0,71,71,10,0),colorlicyan;
tdxstep206:stickline(close>0,44,44,10,0),colorlicyan;
上一指标公式:趋势王转载和谐完全加密指标详解 通达信指标趋势
下一指标公式:分享个基本资料指标希望大家喜欢详解 通达信基本资料指标
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文量能饱和度中期方向线决策曲线详解 通达信饱和度曲线仅供学习研究。