手机端
当前位置:爱约股 > 公式技巧 > 大智慧板块K线 正常显示

大智慧板块K线 正常显示

 网友求助:

{大盘深圳K线}
DPC:=INDEXC;
DPO:=INDEXO;
DPH:=INDEXH;
DPL:=INDEXL;
STICKLINE(DPC>DPO,DPC,DPO,8,0),COLOR0000FF;
STICKLINE(DPC>DPO,DPH,DPL,0.5,0),COLOR0000FF;
STICKLINE(DPC<DPO,DPC,DPO,8,0),COLOR00FF00;
STICKLINE(DPC<DPO,DPH,DPL,0.5,0),COLOR00FF00;

SH:=STKINDI('1A0001','1A0001');
SZ:=STKINDI('399001','399001');

IF STRCMP(MARKETLABEL,'SH')=0 THEN BEGIN DRAWTEXTABS(10,5,'上证指数'),LINETHICK5,Color6666FF;END;
IF STRCMP(MARKETLABEL,'SZ')=0 THEN BEGIN DRAWTEXTABS(10,5,'深圳成份指数'),LINETHICK5,Color6666FF;END;


上证MA1:=STKINDI('1A0001','MA.MA1');
深证MA1:=STKINDI('399001','MA.MA1');
上证MA2:=STKINDI('1A0001','MA.MA2');
深证MA2:=STKINDI('399001','MA.MA2');
上证MA3:=STKINDI('1A0001','MA.MA3');
深证MA3:=STKINDI('399001','MA.MA3');
上证MA4:=STKINDI('1A0001','MA.MA4');
深证MA4:=STKINDI('399001','MA.MA4');
上证MA5:=STKINDI('1A0001','MA.MA5');
深证MA5:=STKINDI('399001','MA.MA5');
上证MA6:=STKINDI('1A0001','MA.MA6');
深证MA6:=STKINDI('399001','MA.MA6');
大盘MA5:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA1,深证MA1),COLORFFFFFF;
大盘MA10:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA2,深证MA2),COLOR00FFFF;
大盘MA20:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA3,深证MA3),COLOR3333FF;
大盘MA30:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA4,深证MA4),COLOR5399FF;
大盘MA60:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA5,深证MA5),COLOR9900CC;
大盘MA120:IF(STRCMP(MARKETLABEL,'SH')=0,上证MA6,深证MA6),COLOR39FF00;

{板块K线}
ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",
IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",
IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",
IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));

ZSO:=IF(INBLOCK('工程建筑'),"991002$open",IF(INBLOCK('电力'),"991003$open",IF(INBLOCK('计算机'),"991004$open",
IF(INBLOCK('电子信息'),"991006$open",IF(INBLOCK('房地产'),"991007$open",IF(INBLOCK('纺织服装'),"991008$open",
IF(INBLOCK('钢铁'),"991009$open",IF(INBLOCK('供水供气'),"991010$open",IF(INBLOCK('化工化纤'),"991011$open",
IF(INBLOCK('电器'),"991014$open",IF(INBLOCK('交通设施'),"991016$open",IF(INBLOCK('银行类'),"991017$open",
IF(INBLOCK('旅游酒店'),"991018$open",IF(INBLOCK('煤炭石油'),"991019$open",IF(INBLOCK('酿酒食品'),"991020$open",
IF(INBLOCK('农林牧渔'),"991021$open",IF(INBLOCK('商业连锁'),"991023$open",IF(INBLOCK('建材'),"991024$open",
IF(INBLOCK('其他行业'),"991025$open",IF(INBLOCK('汽车类'),"991026$open",IF(INBLOCK('机械'),"991027$open",
IF(INBLOCK('医药'),"991028$open",IF(INBLOCK('外贸'),"991031$open",IF(INBLOCK('教育传媒'),"991032$open",
IF(INBLOCK('仪电仪表'),"991033$open",IF(INBLOCK('有色金属'),"991034$open",IF(INBLOCK('造纸印刷'),"991035$open",
IF(INBLOCK('券商'),"991036$open",IF(INBLOCK('电力设备'),"991037$open",IF(INBLOCK('通信'),"991135$open",
IF(INBLOCK('运输物流'),"991136$open",IF(INBLOCK('保险'),"991255$open",0))))))))))))))))))))))))))))))));

分享至:

相关推荐