极速板块
T1:=10;
T2:=10;
今日大盘:INDEXC/REF(INDEXC,1)*100-100,NODRAW,COLORMAGENTA;
今日行业:HY_INDEXC/REF(HY_INDEXC,1)*100-100,NODRAW,COLORYELLOW;
今日个股:C/REF(C,1)*100-100,NODRAW,COLORRED;
NOTEXT大盘:SUM(EMA(今日大盘,T2),T1),LINETHICK4,COLORMAGENTA; NOTEXT行业:SUM(EMA(今日行业,T2),T1),LINETHICK3,COLORYELLOW; NOTEXT个股:SUM(EMA(今日个股,T2),T1),COLORRED,LINETHICK2;
NOTEXT1:0,COLORLIGRAY;
{板块总数}BKZH:=HORCALC(HYBLOCK,103,0,2);
{板块平均}BKPJ:=HORCALC(HYBLOCK,103,2,2);
{板块股数}BKGS:=BKZH/BKPJ;
天天报价网{板块内部排名}BKPM:=HORCALC(HYBLOCK,105,1,2);
MAPM:=MA(BKPM,T1);
Z1:=STRCAT(STRSPACE(HYBLOCK),STRSPACE('共有'));
Z2:=VARCAT(VAR2STR(BKGS,0),STRSPACE('个品种,其中'));
Z3:=VARCAT(STRSPACE(STKNAME),VARCAT('今日涨幅排名第',VAR2STR(BKPM,0))); Z4:=VARCAT('历史涨幅排名第',VAR2STR(MAPM,1));
Z5:=VARCAT('今日大盘上涨家数:',VAR2STR(INDEXADV,0));
Z6:=VARCAT(' 下跌家数:',VAR2STR(INDEXDEC,0));
Z7:=VARCAT('今日行业上涨家数:',VAR2STR(HY_INDEXADV,0));
Z8:=VARCAT(' 下跌家数:',VAR2STR(HY_INDEXDEC,0));
DRAWTEXT_FIX(1,0,0,0,VARCAT(Z5,Z6)),COLORLIGRAY;
DRAWTEXT_FIX(1,0,0.05,0,VARCAT(Z7,Z8)),COLORLIGRAY;
DRAWTEXT_FIX(1,0,0.1,0,VARCAT(VARCAT(Z1,VARCAT(Z2,Z3)),Z4)),COLORLIGRAY;
发布评论