指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:背离指标公式详解 通达信指标
背离指标(通达信)
{背离指标(通达信)}
lc:=ref(c,1);
up:=(c>o or c>lc) and v>ref(v,1);
var1:=if(ma(c,5)/ma(ma(c,9),16)<=0.85 and c/lc>0.9015 and c/lc<1.05 and v/capital*100<5,50,0);
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:3*k-2*d,colorcccc00;
rsv34:=100*(c-llv(l,34))/(hhv(h,34)-llv(l,34)),colorcccc00;
k34:sma(rsv34,3,1),color00cc00;
bias34:=((c-ma(c,34))/ma(c,34)*100+10)*5;
bias70:=((c-ma(c,70))/ma(c,70)*100+10)*5;
kb34:(k34+bias34)/4+10,color0099cc;
kbb34:(kb34+abs(bias34-bias70))/2-5,colorcccc00;
varf:=if(var1>0 and kbb34<0,200,0);
var10:=if(kbb34<0 and c=llv(c,10) and c/lc>0.9015 and c/lc<1.05 and v/capital*100<5 and v<hhv(v,10),-5,0);
var11:=if(kbb34<0 and var10<0,100,0);
var15:=min(ref(c,2)*0.86,ref(c,13)*0.77);
var18:=if((c-var15)/c<0.019 and sum(100*v/capital,5)/5<1.8,1,0);
底:if((var10<0 or var1>0) and var18>0 and v<hhv(v,10),100,0),linethick2,colorcc00ff;
xx:=varf>0 and var10<0 and var11>0 and var18>0 and sum(v/capital*100,5)/5<1;
底2:if(xx,90,0) and v<hhv(v,10),linethick2,color00cccc;
底3:if((((kb34<-8 or (j<-12 and kb34<15)) and c=llv(c,10) and l=llv(l,10)) or kbb34<-3) and c<l*1.045 and v<hhv(v,10) and c>lc*0.9015,70,0),linethick2,color0066ff;
bb:=if((k34<10 or (k34<15 and hhv(h,5)/llv(c,5)>1.15)) and kb34<=-0.5,1,0);
抢反弹:if(bb=1 and c=llv(c,10) and c<l*1.045 and v<hhv(v,10) and c>lc*0.9015,60,0),linethick2,colorcccccc;
{mkr3背离8}
di:=(ema(c,12)-ema(c,26))/c*500,linethick2,colorffcc00;
de:=ema(di,9),linethick1,colorffffff;
macd1:=(di-de)*2,colorstick,colorff99ff;
nm:=cross(di,de);
rsi6:sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100,colorcccccc;
a2:=barslast(ref(j=llv(j,10) and c=llv(c,10) and l=llv(l,10),1));
b2:=ref(c,a2+1)>c and ref(j,a2+1)<j and c=llv(c,10) and l=llv(l,10) and c>lc*0.9015;
kdj底背:drawtext(b2>0 and v<hhv(v,10),80,'k底'),colorff33ff;
a3:=barslast(ref(rsi6=llv(rsi6,10) and c=llv(c,10) and l=llv(l,10),1));
b3:=ref(c,a3+1)>c and ref(rsi6,a3+1)<rsi6 and c=llv(c,10) and l=llv(l,10);
rsi底背:drawtext(b3>0 and v<hhv(v,10),65,'r底'),colorff33ff;
a4:=barslast(ref(macd1=llv(macd1,10) and c=llv(c,10) and l=llv(l,10),1));
b4:=ref(c,a4+1)>c and ref(macd1,a4+1)<macd1 and c=llv(c,10) and l=llv(l,10);
macd1底背:drawtext(b4>0 and v<hhv(v,10),50,'m底'),colorff33ff;
c1:=barslast(ref(macd1=hhv(macd1,10) and c=hhv(c,10) and h=hhv(h,10),1));
d1:=ref(c,c1+1)<c and ref(macd1,c1+1)>macd1 and c=hhv(c,10) and h=hhv(h,10);
c2:=barslast(ref(j=hhv(j,10) and c=hhv(c,10) and h=hhv(h,10),1));
d2:=ref(c,c2+1)<c and ref(j,c2+1)>j and c=hhv(c,10) and h=hhv(h,10);
c3:=barslast(ref(rsi6=hhv(rsi6,10) and c=hhv(c,10) and h=hhv(h,10),1));
d3:=ref(c,c3+1)<c and ref(rsi6,c3+1)>rsi6 and c=hhv(c,10) and h=hhv(h,10);
kdj顶背:drawtext(d2>0,50,'k顶'),color00ff00;
macd顶背:drawtext(d1>0,20,'m顶'),color00ff00;
rsi顶背:drawtext(d3>0,35,'r顶'),color00ff00;
{一招定乾坤}
nv:=(v>ref(v,1) or v>ma(v,5)) and ma(v,5)>ref(ma(v,5),1);
drawtext((cross(c,ma(c,5)) or cross(c,ma(c,10))) and nv and nm and cross(k,d),30,'金叉'),color00ffff;
>>>使用本站搜索工具可以找到更多“背离指标公式详解 通达信指标”