股票的公式有哪些?飞狐巫山风景公式源码
2016-6-12 10:49:49 股票入门 http://rumen.southmoney.com
股票的公式有哪些?飞狐巫山风景公式源码 附:飞狐显示股票所属行业板块当天涨跌停价指标公式 南方财富网小编为您提供
【飞狐巫山风景公式源码】
n:=19; n1:=30;n2:=30;
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">RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
庄家生命:MA(WINNER( CLOSE*1)*100,5),COLORMAGENTA,linethick1;
STICKLINE( 庄家生命 ,0 ,庄家生命,1 ,0 ),COLORMAGENTA;
AA:=EMA(j,6);
压力线: EMA(((HHV(AA,n2)+LLV(AA,n2))/2)/1,N1)+30,CIRCLEDOT,COLORRED;
短线:EMA(j,6),COLORYELLOW;
浮筹:MA(短线,28)*1,linethick2,POINTDOT,COLORGREEN;
空方:MA(100*(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35)),3),COLORBLUE;
STICKLINE( CROSS(短线,浮筹) AND 短线<36 ,浮筹+8,浮筹-8,6,0 ),COLORRED;
DRAWTEXT(CROSS(浮筹,短线) AND 浮筹>70,短线,'反弹结束'),COLORGREEN;
DRAWTEXT(CROSS(浮筹,空方),浮筹,'还有一波');
压力:=if(35+ema(浮筹,80)<100,35+ema(浮筹,80),100),colorred,CIRCLEDOT;
附:【飞狐显示股票所属行业板块当天涨跌停价指标公式】
{涨停价、跌停价(支持ST、*ST、S股)}
AA1:=STRFIND(STKNAME,'S',0)=0;
gws:=FRACPART(ref(c,1)*IF(AA1,10,5));
qz:=INTPART(ref(c,1)*IF(AA1,10,5))/100;
涨停价:=ref(c,1)+qz+if(gws>0.4,0.01,0),COLORRED,LINETHICK;
跌停价:=ref(c,1)-qz-if(gws>0.4,0.01,0),COLORGREEN,LINETHICK;
DRAWTEXTEX(C,0,410,0,'▲涨停价:'+数字转化为字符串(涨停价,2)),COLORRED;
DRAWTEXTEX(C,0,410,10,'▼跌停价:'+数字转化为字符串(跌停价,2)),COLORGREEN;
DRAWTEXTEX(CLOSE,1,1,0,'上涨:'+NUMTOSTR(INDEXADV,0)+'家'),COLOR0066FF;
DRAWTEXTEX(CLOSE,1,80,0,' 下跌:'+NUMTOSTR(INDEXDEC,0)+'家'),COLOR99FF99;
DRAWTEXTEX(CLOSE,1,160,0,' 平盘:'+NUMTOSTR(PINGPAN,0)+'家'),COLOREEEEEE;
DRAWTEXTEX(c,1,1,60,'所属板块:'+STRLEFT(BLKNAME,STRFIND(BLKNAME,',',1)-1)+'\n'+'流通股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'+'\n'+'流通比:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100,0)+'%'+'\n'+'股收益:'+NUMTOSTR(FINANCE(33),3)+'元'+'\n'+'市盈率:'+NUMTOSTR(DYNAINFO(39),0)+'\n'+'净资产:'+NUMTOSTR(FINANCE(34),2)+'元'+'\n'+'主营收:'+NUMTOSTR(FINANCE(20)/10000,2)+'亿'+'\n'+'上市:'+NUMTOSTR(REF(YEAR,(BARSCOUNT(CLOSE) - 1)),0)+ '(' + NUMTOSTR(BARSCOUNT(C),0 )+')'+'\n'+'更新:'+ NUMTOSTR(FINANCE( 0),0 )+'\n'),ALIGN4,colorCCFFCC;
DRAWTEXTEX(C,1,480,960,'历史最高价:'+NUMTOSTR(hhv(h,datacount),2)+'('+NUMTOSTR((C-hhv(H,datacount))/hhv(H,datacount)*100,0)+'%)'),COLORFFCC00;
DRAWTEXTEX(C,1,480,1000,'历史最低价:'+NUMTOSTR(llv(l,datacount),2)+'('+NUMTOSTR((C-llv(L,datacount))/llv(L,datacount)*100,0)+'%)'),COLORFFCC00;
DRAWTEXTEX(C,1,650,960,'年内最高价:'+NUMTOSTR(HHV(H,250),2)+'('+NUMTOSTR((C-hhv(H,250))/hhv(H,250)*100,0)+'%)'),COLOR99FF66;
DRAWTEXTEX(C,1,650,1000,'年内最低价:'+NUMTOSTR(LLV(L,250),2)+'('+NUMTOSTR((C-llv(L,250))/llv(L,250)*100,0)+'%)'),COLOR99FF66;
DRAWTEXTEX(C,1,820,960,'半年最高价:'+NUMTOSTR(HHV(H,120),2)+'('+NUMTOSTR((C-hhv(H,120))/hhv(H,120)*100,0)+'%)'),COLORFFCC00;
DRAWTEXTEX(C,1,820,1000,'半年最低价:'+NUMTOSTR(LLV(L,120),2)+'('+NUMTOSTR((C-llv(L,120))/llv(L,120)*100,0)+'%)'),COLORFFCC00;
DRAWTEXTEX(C,1,310,960,'所见最高价:'+NUMTOSTR(SYSPARAM(4),2)+'('+NUMTOSTR((C-SYSPARAM(4))/SYSPARAM(4)*100,0)+'%)'),COLOR99FF66;
DRAWTEXTEX(C,1,310,1000,'所见最低价:'+NUMTOSTR(SYSPARAM(5),2)+'('+NUMTOSTR((C-SYSPARAM(5))/SYSPARAM(5)*100,0)+'%)'),COLOR99FF66;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。