指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:相对价位公式 飞狐价位指标 源码
相对价位
input:n(13,1,100);
drawgbk(close,colorrgb(36,68,36),colorrgb(100,100,100),1);
xdj1:=llv(low,n);
xdj2:=ema((((3)*(close) + high + low + open)/(6) - xdj1)/(hhv(high,n) - xdj1),8);
xdj3:=(ema(xdj2,2))*(100);
cd1:=(ref(close,1))/(close);
cd2:=(1 - (ma(low,3))/(ma((high + low + (2)*(close))/(4),20)))*(100) - 5;
cd3:=((ma(high,3))/(ma((high + low + (2)*(close))/(4),20)) - 1)*(100) - 5;
cd4:=if((cd2 > 0),((cd2)*(ref((high + low + (2)*(close))/(4),3)))/(close),0);
hz1:=(ma(low,2))*(0.96);
hz2:=(ma(low,26))*(0.85);
hz3:=if((ref(hz1,1) < hz2) and (ref(hz1,1) < hz1) and (ref(hz1,1) < ref(hz1,2)),8,0);
铁底:=(ma(low,30))*(0.85);
n1:=sysparam(3);
n2:=sysparam(2);
n3:=n1 - n2 + 1;
hh:=hhv(xdj3,n3);
ll:=llv(xdj3,n3);
高:=(hh[n1])*(0.9);
中:=(hh[n1] + ll[n1])/(2);
低:=(ll[n1])*(1.3);
最低:=ll[n1];
y:=hhv(vol,n1 - n2 + 1);
yvb:=(y[n1])/(hh[n1] - ll[n1] + mindiff);
z:=(vol)/(yvb) + ll[n1];
z_1:=((close - llv(low,30))/(hhv(high,30) - llv(low,30)))*(100) - 50;
z_2:=sma(z_1,3,1);
z_3:=ema((3)*(z_2) - (2)*(sma(z_2,3,1)),6);
z_4:=(z_3 - ref(z_3,1))*(3);
zj1:=dma((high + low + (close)*(2))/(4),0.9);
zj2:=(vol)/((high - low)*(2) - abs(close - open));
zj3:=if((close > open),(zj2)*(high - low),if((close < open),(zj2)*(high - open + close - low),(vol)/(2))) + if((close > open),0 - (zj2)*(high - close + open - low),if((close < open),0 - (zj2)*(high - low),0 - (vol)/(2)));
zj4:=((zj3)/(20))/(1.15);
zj5:=(zj4)*(0.55) + (ref(zj4,1))*(0.33) + (ref(zj4,2))*(0.22);
zj6:=ema(zj5,3);
qj1:=(close - llv(low,5))/(hhv(high,5) - llv(low,5));
qj2:=(sma(max(qj1 - ref(qj1,1),0),8,1))/(sma(abs(qj1 - ref(qj1,1)),8,1));
qj3:=ema(qj2,5) - ema(qj2,13);
qj4:=(qj3 - llv(qj3,3))/(hhv(qj3,3) - llv(qj3,3));
qj5:=(sma(qj4,3,1))/(3);
qj6:=sma(qj5,3,1);
kk:=((3)*(qj5) - (2)*(qj6))*(2.5);
dd:=ema(((3)*(qj5) - (2)*(qj6))*(2.5),3);
t1:=barslast(cross(dd,kk));
t2:=barslast((kk > dd));
b:=datacount - barpos + 1;
sj:=datacount - sysparam(1);
fc:=vol;
i:=sj;
while (i <= datacount) do
begin
begin
xl:=0;
j:=0;
while (j <= sj) do
begin
xl:=xl + fc[i - j];j:=j+1;
end;
man:=xl;
i:=i+1;
end;
end;
hs:=((100)*(xl))/(capital);
ybh1:=ema(close,7) - ema(close,19);
ybh2:=ema(ybh1,9);
yb:=(ybh1 >= ybh2);
yh:=(ybh1 >= 0);
sz:=((close)*(3) + high + low + open)/(6);
sk:=ema(sz,13) - ema(sz,73);
sd:=ema(sk,2);
xh:=cross(sk,sd) and (sk < 0 - 0.04) and (close - (ref(close,1))/(ref(close,1)) >= 0.03) or cross(sk,sd) and (sk <= 0 - 0.14) or cross(sk,sd) and (sk <= 0.05) and ((vol)/(ma(vol,5)) > 2) or ((close)/(ref(close,1)) > 0.035);
qj1:=(sum((vol)*(close),1))/(sum(vol,1));
qj2:=ema(qj1,13);
qj3:=forcast(((qj1 - qj2)*(100))/(qj1),5);
xla:=(close >= ref(close,1)) and (ref(close,1) >= ref(close,2)) and (ref(close,1) <= ref(close,3)) and (ref(close,2) <= ref(close,3)) and (ref(close,4) > ref(close,2)) or (ref(close,4) <= ref(close,2)) and (ref(close,5) >= ref(close,3)) or (close >= ref(close,1)) and (ref(close,1) <= ref(close,2)) and (close >= ref(close,2)) and (ref(close,3) > ref(close,1)) or (ref(close,3) <= ref(close,1)) and (ref(close,4) >= ref(close,2));
stickline((zj6 <= 0),0,最低 + (z)/(2),5,1),colorfcff00;
stickline((cd4 > 0),0,最低 + (z)/(2),5,0),colorffb0ff;
stickline((cd4 > 0),0,(最低 + (z)/(2))*(0.8),5,0),colorff8cff;
stickline((cd4 > 0),0,(最低 + (z)/(2))*(0.6),5,0),colorff59ff;
stickline((cd4 > 0),0,(最低 + (z)/(2))*(0.4),5,0),colorff18ff;
stickline((cd4 > 0),0,(最低 + (z)/(2))*(0.2),5,0),color001dff;
stickline(hz3,0,最低 + (z)/(2),5,0),colorgreen;
stickline(hz3,0,(最低 + (z)/(2))*(0.8),5,0),color33cc00;
stickline(hz3,0,(最低 + (z)/(2))*(0.6),5,0),color339900;
stickline(hz3,0,(最低 + (z)/(2))*(0.4),5,0),color337700;
stickline(hz3,0,(最低 + (z)/(2))*(0.2),5,0),color005500;
stickline((zj6 >= 0),0,最低 + (z)/(2),5,1),color5050ff;
stickline((close < 铁底),(z)/(2),最低 + (z)/(2),5,0),colorgray;
partline(close,高),pointdot,colorgray;
partline(close,中),pointdot,colorgray;
partline(close,低),pointdot,colorwhite;
强:forcast(xdj3,5),linethick,precision2,colorred;
弱:=forcast(ref(xdj3,1),5);
partline(close,强),linethick2,colorred;
partline((强 < 弱),强),linethick2,colorff0000;
区界:ref(llv(xdj3,t2),t1),precision2,coloryellow;
涨跌幅:((close - ref(close,1))/(ref(close,1)))*(100),linethick,precision2,colorffbbff;
drawtext((barpos = sysparam(2)),高,'高位: ' + numtostr(高,2)),linethick,colorgray;
drawtext((barpos = sysparam(2)),中,'中位: ' + numtostr(中,2)),linethick,colorgray;
drawtext((barpos = sysparam(2)),(最低)*(0.68),'低位: ' + numtostr(低,2)),linethick4,colorwhite;
partline(range(barpos,sysparam(1),sysparam(3) + 3),(中)*(1.1)),color5bbbb5;
drawtext((barscount(close) = sysparam(1)),(中)*(1.2),' 倒数: ' + numtostr(b[sysparam(1)],0) + '(天) ' + ' \n 累计换手:' + numtostr(hs,2) + '% '),linethick,color5bbbb5
>>>使用本站搜索工具可以找到更多“相对价位公式 飞狐价位指标 源码”