指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:狂野之城系统之主图KDJ终极版:■量能分析公式 飞狐之城狂野指标 源码
drawgbk((close > 0),colorrgb(0,0,88),colorrgb(0,0,55),1);
input:m(10,1,100),n(3,0.1,20);
bbi:(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:bbi+n*std(bbi,m),colorred;;
dwn:bbi-n*std(bbi,m),color6d0076;
drawicon(bbi<ref(bbi,1) and islastbar,bbi,5),shift1,align2;
drawicon(bbi>ref(bbi,1) and islastbar,bbi,4),shift1,,align1;
drawicon(upr<ref(upr,1) and islastbar,upr,5),shift1,,align2;
drawicon(upr>ref(upr,1) and islastbar,upr,4),shift1,,align1;
drawicon(dwn>ref(dwn,1) and islastbar,dwn,4),shift1,,align1;
drawicon(dwn<ref(dwn,1) and islastbar,dwn,5),shift1,,align2;
fillrgn(upr,bbi),colorgray;
fillrgn(bbi,dwn),color6d0076;
drawtext(filter(refx(islastbar,20),1000),c,' 黄色:带量\n 灰色:放量\n 蓝色:活跃\n 绿色:地量\n 红色:温和'),align4,coloryellow;
drawtextex(1,0,40,3,'《狂野之城系统之主图kdj终极版》:■量能分析■'),coloryellow;
n1v:=sysparam(3);
nv:=((n1v - sysparam(2)) + 1);
hh:=hhv(high,nv);
ll:=llv(low,nv);
最高:hh[n1v],colorff;
最低:ll[n1v],colorff;
var2:=ref(low,1);
var3:=sma(abs(low-var2),13,1)/sma(max(low-var2,0),13,1)*100;
var4:=ema(if(close*1.2,var3*13,var3/13),13);
var5:=llv(low,34);
var6:=hhv(var4,34);
var7:=if(llv(low,56),1,0);
var8:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7;
var9:=ema(close,5);
var10:=(close-ma(close,34))/ma(close,34)*(10);
var11:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7*(-1);
var12:=ema(close,5)*(-1);
stickline(var12<ref(var12,1),最低,最低*0.97,8,0),colorgreen;
(最低 + ((最高 - 最低) * 0.191))pointdot,;
(最低 + ((最高 - 最低) * 0.382)),pointdot,;
(最低 + ((最高 - 最低) * 0.5)),pointdot,colorff00ff;
(最低 + ((最高 - 最低) * 0.618)),pointdot,;
(最低 + ((最高 - 最低) * 0.809)),pointdot,;
drawtext((barscount(close) = sysparam(2)),ref(最低,barslast((barscount(close) = sysparam(2)))),'000%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.191)),barslast((barscount(close) = sysparam(2)))),'19.1%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.382)),barslast((barscount(close) = sysparam(2)))),'38.2%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.5)),barslast((barscount(close) = sysparam(2)))),'50%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.618)),barslast((barscount(close) = sysparam(2)))),'61.8%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.809)),barslast((barscount(close) = sysparam(2)))),'80.9%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 1)),barslast((barscount(close) = sysparam(2)))),'100%↑'),colorffff;
rsv1:=(c-llv(l,21))/(hhv(h,21)-llv(l,21))*2;
rsv2:=(rsv1-0.5)/5*ema(c,20);
rsvk:=sma(rsv2,5,1);
rsvd:=sma(rsvk,5,1);
rsvj:=rsvk*3-rsvd*2;
kv:rsvk+ema(c,20),colorgreen;
dv:rsvd+ema(c,20),colorwhite;
jv:rsvj+ema(c,20),colorred,linethick1;
partline(jv>=ref(jv,1) and kv<ref(kv,1),jv),color00c500,linethick3;
partline(jv<ref(jv,1) and kv>ref(kv,1),jv),coloryellow,linethick3;
partline(jv>=ref(jv,1) and kv>ref(kv,1),jv),colorred,linethick3;
partline(jv<ref(jv,1) and kv<ref(kv,1),jv),colorblue,linethick3;
工作线:(ema(c,15)) ,linethick0,coloryellow;
短线:1.01*forcast(c,5),colorred,linethick0;
stickline(((c >= 工作线) and (c >= o)),h,l,0.5,0),color77ffee;
stickline(((c >= 工作线) and (c <= o)),h,l,0.5,0),color77ffee;
stickline(((c >= 工作线) and (c <= o)),o,c,7,0),color1199aa;
stickline(((c >= 工作线) and (c <= o)),o,c,6,0),color22aabb;
stickline(((c >= 工作线) and (c <= o)),o,c,5,0),color33bbcc;
stickline(((c >= 工作线) and (c <= o)),o,c,4,0),color44ccdd;
stickline(((c >= 工作线) and (c <= o)),o,c,3,0),color55ddee;
stickline(((c >= 工作线) and (c <= o)),o,c,2,0),color66eeee;
stickline(((c >= 工作线) and (c <= o)),o,c,1,0),color77ffee;
stickline(((c >= 工作线) and (c >= o)),o,c,7,0),color1199aa;
stickline(((c >= 工作线) and (c >= o)),o,c,6,0),color22aabb;
stickline(((c >= 工作线) and (c >= o)),o,c,5,0),color33bbcc;
stickline(((c >= 工作线) and (c >= o)),o,c,4,0),color44ccdd;
stickline(((c >= 工作线) and (c >= o)),o,c,3,0),color55ddee;
stickline(((c >= 工作线) and (c >= o)),o,c,2,0),color66eeee;
stickline(((c >= 工作线) and (c >= o)),o,c,1,0),color77ffee;
stickline(((c < 工作线) and (c >= o)),h,l,0.5,0),colorffff33;
stickline(((c < 工作线) and (c <= o)),h,l,0.5,0),colorffff33;
stickline(((c < 工作线) and (c >= o)),c,o,7,0),colorff9900;
stickline(((c < 工作线) and (c >= o)),c,o,6,0),colorffaa11;
stickline(((c < 工作线) and (c >= o)),c,o,5,0),colorffbb11;
stickline(((c < 工作线) and (c >= o)),c,o,4,0),colorffcc22;
stickline(((c < 工作线) and (c >= o)),c,o,3,0),colorffdd22;
stickline(((c < 工作线) and (c >= o)),c,o,2,0),colorffee33;
stickline(((c < 工作线) and (c >= o)),c,o,1,0),colorffff33;
stickline(((c < 工作线) and (c <= o)),c,o,7,0),colorff9900;
stickline(((c < 工作线) and (c <= o)),c,o,6,0),colorffaa11;
stickline(((c < 工作线) and (c <= o)),c,o,5,0),colorffbb11;
stickline(((c < 工作线) and (c <= o)),c,o,4,0),colorffcc22;
stickline(((c < 工作线) and (c <= o)),c,o,3,0),colorffdd22;
stickline(((c < 工作线) and (c <= o)),c,o,2,0),colorffee33;
stickline(((c < 工作线) and (c <= o)),c,o,1,0),colorffff33;
{不喜欢主图上加成交量的,可把下面的去掉}
a0:=barscount(c);
a3:=sysparam(3);
a2:=sysparam(2);
a4:=sysparam(4);
a5:=sysparam(5);
nn0:=a3-a2;
nn:=a0-a2;
hh1:=(a4-a5)/10;
y0:=a0>=a2;
vv0:=if(y0=1 and sysparam(1)>=a0,v,0);
hhx:=sysparam(4);
llx:=sysparam(5);
x:=llx-(hhx-llx+mindiff)/5;
y:=(hhv(vol,sysparam(3)-sysparam(2)+1))*1;
yvb:=y[sysparam(3)]/(llx-x+mindiff);
z:=vol/yvb+x;
var1:=vol/capital*100;
换手率:=var1,pointdot,color0000a8;
var2:=var1>1;
var3:=var1<2;
var4:=var1>2;
var5:=var1<3;
var6:=var1>=3;
var7:=var1<5;
var8:=var1>=5;
var9:=var1<8;
var10:=var1>=8;
var11:=var1<15;
var12:=var1>=15;
var13:=var1<25;
var14:=var1>=25;
地量:stickline(vol/capital*100<1 ,x,z,8,0),color00aa00;
stickline(vol/capital*100<1 ,x,z,6.6,0),color00bb00;
stickline(vol/capital*100<1 ,x,z,4.4,0),color00cc00;
stickline(vol/capital*100<1 ,x,z,3.3,0),color00dd00;
stickline(vol/capital*100<1 ,x,z,2.2,0),color00ee00;
stickline(vol/capital*100<1 ,x,z,1.1,0),color00ff00;
低靡:stickline(var2 and var3 ,x,z,8,0 ),coloraa00bb;
stickline(var2 and var3 ,x,z,6.6 ,0 ),colorbb11bb;
stickline(var2 and var3 ,x,z,4.4,0 ),colorcc22bb;
stickline(var2 and var3 ,x,z,3.3,0 ),colordd33bb;
stickline(var2 and var3 ,x,z,2.2 ,0 ),coloree44bb;
stickline(var2 and var3 ,x,z,1.1 ,0 ),colorff55bb;
温和:stickline(var4 and var5,x,z,8,0),color0000aa;
stickline(var4 and var5,x,z,6.6,0),color0000bb;
stickline(var4 and var5,x,z,4.4,0),color0000cc;
stickline(var4 and var5,x,z,3.3,0),color0000dd;
stickline(var4 and var5,x,z,2.2,0),color0000ee;
stickline(var4 and var5,x,z,1.1,0),color0000ff;
活跃:stickline(var6 and var7,x,z,8,0),colorffaa00;
stickline(var6 and var7,x,z,6.6,0),colorffbb00;
stickline(var6 and var7,x,z,4.4,0),colorffcc00;
stickline(var6 and var7,x,z,3.3,0),colorffdd00;
stickline(var6 and var7,x,z,2.2,0),colorffee00;
stickline(var6 and var7,x,z,1.1,0),colorffff00;
带量:stickline(var8 and var9,x,z,8 ,0 ),color00aaff;
stickline(var8 and var9,x,z,6.6 ,0 ),color00bbff;
stickline(var8 and var9,x,z,4.4,0 ),color00ccff;
stickline(var8 and var9,x,z,3.3 ,0 ),color00ddff;
stickline(var8 and var9,x,z,2.2 ,0 ),color00eeff;
stickline(var8 and var9,x,z,1.1 ,0 ),color00ffff;
放量:stickline(var10 and var11,x,z, 8,0 ),coloraaaacc;
stickline(var10 and var11,x,z, 6.6,0 ),colorbbbbcc;
stickline(var10 and var11,x,z, 4.4,0 ),colorcccccc;
stickline(var10 and var11,x,z, 3.3,0 ),colorddddcc;
stickline(var10 and var11,x,z, 2.2,0 ),coloreeeecc;
stickline(var10 and var11,x,z, 1.1,0 ),colorffffcc;
巨量:stickline(var12 and var13,x,z, 8,0 ),color66aa33;
stickline(var12 and var13,x,z,6.6,0 ),color66bb33;
stickline(var12 and var13,x,z, 4.4,0 ),color66cc33;
stickline(var12 and var13,x,z, 3.3,0 ),color66dd33;
stickline(var12 and var13,x,z, 2.2,0 ),color66ee33;
stickline(var12 and var13,x,z, 1.1,0 ),color66ff33;
怪异:stickline(var14,x,z, 8,0 ),coloraa66ff;
stickline(var14,x,z, 6.6,0 ),colorbb66ff;
stickline(var14,x,z, 4.4,0 ),colorcc66ff;
stickline(var14,x,z, 3.3,0 ),colordd66ff;
stickline(var14,x,z, 2.2,0 ),coloree66ff;
stickline(var14,x,z, 1.1,0 ),colorff66ff;
五日:ma(z,5),colorwhite;
十日:ma(z,10),colormagenta;
>>>使用本站搜索工具可以找到更多“狂野之城系统之主图KDJ终极版:■量能分析公式 飞狐之城狂野指标 源码”