量能平台主图指标公式
飞狐量能主图飞狐量能与主图同显,有用的拿去用,放到你的主图试试源码
原理解析:
A0赋值:收盘价的有效数据周期数
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赋值:如果Y0=1ANDSYSPARAM(1)>=A0,返回成交量(手),否则返回0
HHX赋值:SYSPARAM(4)
LLX赋值:SYSPARAM(5)
X赋值:LLX-(HHX-LLX+最小变动价位)/9
Y赋值:(SYSPARAM(3)-SYSPARAM(2)+1日内成交量(手)的最高值)*1
YVB赋值:Y[SYSPARAM(3)]/(LLX-X+最小变动价位)
Z赋值:成交量(手)/YVB+X
VAR1赋值:成交量(手)/当前流通股本(手)*100
换手率赋值:VAR1,POINTDOT,COLOR0000A8
VAR2赋值:VAR1>1
VAR3赋值:VAR12
VAR5赋值:VAR1=3
VAR7赋值:VAR1=5
VAR9赋值:VAR1=8
VAR11赋值:VAR1=15
VAR13赋值:VAR1=25
当满足条件成交量(手)/当前流通股本(手)*100=a2;
vv0:=if(y0=1 and SYSPARAM(1)>=a0,v,0);
hhx:=SYSPARAM(4);
llx:=SYSPARAM(5);
x:=llx-(hhx-llx+MINDIFF)/9;
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:=var12;
var5:=var1=3;
var7:=var1=5;
var9:=var1=8;
var11:=var1=15;
var13:=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 ),COLOR000055;
STICKLINE(var14,x,z, 6.6,0 ),COLOR000077;
STICKLINE(var14,x,z, 4.4,0 ),COLOR000099;
STICKLINE(var14,x,z, 3.3,0 ),COLOR0000BB;
STICKLINE(var14,x,z, 2.2,0 ),COLOR0000DD;
STICKLINE(var14,x,z, 1.1,0 ),COLOR0000FF;
五日:MA(z,5),COLORWHITE;
十日:MA(z,10),COLORMAGENTA;