四大板块的重要性,正在发生不断的变化,尤其是某些个股与上证大盘对照,尚不足以反映该股的走势特征,更应该对照该股所在的板块指数;
有鉴于此,特发布四大板指副图源码;该副图,使用方便,能自动识别个股所属板块,对应着相应的板指副图;现把四大板指副图源码公布如下:
创业板:=INBLOCK('创业板');
中小企业:=INBLOCK('中小企业');
上证A股:=INBLOCK('上证A股');
深证A股:=INBLOCK('深证A股');
INDEH:=IF(中小企业=1,"399005$H",IF(创业板=1,"399006$H",IF(上证A股=1,"999999$H","399001$H"))),NODRAW;
INDEO:=IF(中小企业=1,"399005$O",IF(创业板=1,"399006$O",IF(上证A股=1,"999999$O","399001$O"))),NODRAW;
INDEL:=IF(中小企业=1,"399005$L",IF(创业板=1,"399006$L",IF(上证A股=1,"999999$L","399001$L"))),NODRAW;
INDEC:=IF(中小企业=1,"399005$C",IF(创业板=1,"399006$C",IF(上证A股=1,"999999$C","399001$C"))),NODRAW;
DRAWKLINE(INDEH,INDEO,INDEL,INDEC);
板块:=IF(中小企业=1,'中小企业指数',IF(创业板=1,'创业板指数',IF(上证A股=1,'上证指数','深证指数')));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,板块),COLOR0055FF;