在线检测未来函数

创业板涨跌家数指标公式

来源:Internet,编辑:股旁网,2018-06-26

编写要求:

1、创业板上涨家数和下跌家数,以及所占的百分比。 2、这些数据,盘中能够实时反应出来,直到全天收盘。

股旁网解答:

FP:=IF(INDEXC="999999$C",'999999 上证',IF(INDEXC="399001$C",'399001 深证',
IF(INDEXC="399005$C",'399005 中小板',IF(INDEXC="399006$C",'399006 创业板',DRAWNULL))));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,FP),COLOR00DDFF;
大盘指数:INDEXC,NODRAW;
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
上涨家数:INDEXADV,COLOR0055FF,NODRAW;
下跌家数:INDEXDEC,COLORFF8800,NODRAW;
沪深上涨家数:=STRCAT('▇沪深上涨家数:',CON2STR(DYNAINFO(60),0));
沪深下跌家数:=STRCAT('▇沪深下跌家数:',CON2STR(DYNAINFO(61),0));
上涨百分比:=DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100;
下跌百分比:=DYNAINFO(61)/(DYNAINFO(60)+DYNAINFO(61))*100;
DRAWTEXT_FIX(1,0.00,0.05,0,沪深上涨家数),COLORRED;
DRAWTEXT_FIX(1,0.08,0.05,0,STRCAT(STRCAT('(',VAR2STR(上涨百分比,2)),'%)')),COLORRED;
DRAWTEXT_FIX(1,0.13,0.05,0,沪深下跌家数),COLORGREEN;
DRAWTEXT_FIX(1,0.20,0.05,0,STRCAT(STRCAT('(',VAR2STR(下跌百分比,2)),'%)')),COLORGREEN;

相关文章