创业板涨跌家数指标公式

11-12 04:05

编写要求:

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;

版权声明

本文仅代表作者观点,不代表无忧指标公式网立场。
本文系作者授权无忧指标公式网发表,未经许可,不得转载。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。本站无任何QQ群微信群