股票的公式有哪些?飞狐金品顶底公式源码
2016-6-13 10:54:06 股票入门 http://rumen.southmoney.com
股票的公式有哪些?飞狐金品顶底公式源码 附:飞狐量能主图公式源码 南方财富网小编为您提供
【飞狐金品顶底公式源码】
箱顶: HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58),LINETHICK0,COLOR00AAFF;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">箱底: LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),88),LINETHICK0,COLOR008000;
VAR2:= EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+箱底,2);
VAR3:= (3*VAR2-2*SMA(VAR2,5,1))*0.3;
VAR4:= (HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));
VAR5:= EMA(3*VAR4-2*SMA(VAR4,18,1),5);
VAR6:= (INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));
VAR7:= 3*SMA(VAR6,3,1)-2*SMA(SMA(VAR6,3,1),5,1);
VAR8:= (INDEXC*2+INDEXH+INDEXL)/4;
VAR9:= EMA(VAR8,13)-EMA(VAR8,34);
VARA:= EMA(VAR9,5);
资金流向:= (VAR9-VARA+箱底)*1;
VARG1:= 1.86*EMA(CLOSE,5)-EMA(CLOSE,13);
趋势力度: VARG1,LINETHICK0,COLORFFAA99;
AS:= 箱底;
STICKLINE(趋势力度>=AS,AS,趋势力度,4,0),LINETHICK0,COLOR0000FF;
STICKLINE(趋势力度<=REF(趋势力度,1) AND 趋势力度>AS,AS,趋势力度,4,1),COLORFFFFFF;
STICKLINE(REF(趋势力度,2)<REF(趋势力度,1) AND 趋势力度<=REF(趋势力度,1) AND 趋势力度>AS,AS,趋势力度,4,0),LINETHICK0,COLOR008000;
STICKLINE(趋势力度<AS-0.5,AS-0.5,趋势力度,8,1),LINETHICK0,COLOR008000;
MA3: MA(CLOSE,3),LINETHICK0,COLORAAEE00;
MA21: MA(CLOSE,21),LINETHICK0,COLORFFFFFF;
DRAWTEXT(CROSS(MA3,箱底),LOW,'试'),COLOR0000FF;
DRAWTEXT(CROSS(MA3,MA21),LOW,'买'),COLOR00FFFF;
DRAWTEXT(CROSS(MA3,箱顶) AND CLOSE>箱顶,箱顶,'追'),COLOR00EEAA;
DRAWTEXT(CROSS(箱顶,MA3) AND CLOSE<箱顶,HIGH,'卖'),COLORFFAA99;
DRAWTEXT(REF(资金流向,2)<REF(资金流向,1) AND REF(资金流向,1)>资金流向 AND 资金流向>箱顶 AND CLOSE>箱顶,HIGH*1.0051,'顶'),COLORFFFFFF;
DRAWTEXT(CROSS(趋势力度,箱底),箱底,'加仓'),COLOR0000FF;
附:【飞狐量能主图公式源码】
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)/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:=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 ),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;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。