{所属行业指数} ZSC1:=IF(STRCMP(HYBLOCK,'煤炭'),"880301$C", IF(STRCMP(HYBLOCK,'电力'),"880305$C", IF(STRCMP(HYBLOCK,'石油'),"880310$C", IF(STRCMP(HYBLOCK,'钢铁'),"880318$C", IF(STRCMP(HYBLOCK,'有色'),"880324$C", IF(STRCMP(HYBLOCK,'化纤'),"880330$C", IF(STRCMP(HYBLOCK,'化工'),"880335$C", IF(STRCMP(HYBLOCK,'建材'),"880344$C", IF(STRCMP(HYBLOCK,'造纸'),"880350$C", IF(STRCMP(HYBLOCK,'矿物制品'),"880351$C", IF(STRCMP(HYBLOCK,'日用化工'),"880355$C", IF(STRCMP(HYBLOCK,'农林牧渔'),"880360$C", IF(STRCMP(HYBLOCK,'纺织'),"880367$C", IF(STRCMP(HYBLOCK,'服饰'),"880367$C", IF(STRCMP(HYBLOCK,'食品饮料'),"880372$C", IF(STRCMP(HYBLOCK,'酿酒'),"880380$C", IF(STRCMP(HYBLOCK,'家用电器'),"880387$C", IF(STRCMP(HYBLOCK,'摩托车'),"880390$C", IF(STRCMP(HYBLOCK,'汽车服务'),"880390$C", IF(STRCMP(HYBLOCK,'汽车配件'),"880390$C", IF(STRCMP(HYBLOCK,'汽车整车'),"880390$C", IF(STRCMP(HYBLOCK,'医疗保健'),"880398$C", IF(STRCMP(HYBLOCK,'家居用品'),"880399$C", IF(STRCMP(HYBLOCK,'医药'),"880400$C",0)))))))))))))))))))))))); ZSC2:=IF(STRCMP(HYBLOCK,'商业连锁'),"880406$C", IF(STRCMP(HYBLOCK,'商贸代理'),"880414$C", IF(STRCMP(HYBLOCK,'传媒娱乐'),"880418$C", IF(STRCMP(HYBLOCK,'广告包装'),"880421$C", IF(STRCMP(HYBLOCK,'文教休闲'),"880422$C", IF(STRCMP(HYBLOCK,'酒店餐饮'),"880423$C", IF(STRCMP(HYBLOCK,'旅游'),"880424$C", IF(STRCMP(HYBLOCK,'航空航天'),"880430$C", IF(STRCMP(HYBLOCK,'船舶'),"880431$C", IF(STRCMP(HYBLOCK,'运输设备'),"880432$C", IF(STRCMP(HYBLOCK,'通用机械'),"880437$C", IF(STRCMP(HYBLOCK,'工业机械'),"880440$C", IF(STRCMP(HYBLOCK,'电气设备'),"880446$C", IF(STRCMP(HYBLOCK,'工程机械'),"880447$C", IF(STRCMP(HYBLOCK,'电器仪表'),"880448$C", IF(STRCMP(HYBLOCK,'电信运营'),"880452$C", IF(STRCMP(HYBLOCK,'公共交通'),"880453$C", IF(STRCMP(HYBLOCK,'水务板块'),"880454$C", IF(STRCMP(HYBLOCK,'燃气供热'),"880455$C", IF(STRCMP(HYBLOCK,'环境保护'),"880456$C",0)))))))))))))))))))); ZSC3:=IF(STRCMP(HYBLOCK,'运输服务'),"880459$C", IF(STRCMP(HYBLOCK,'仓储物流'),"880464$C", IF(STRCMP(HYBLOCK,'交通设施'),"880465$C", IF(STRCMP(HYBLOCK,'银行类'),"880471$C", IF(STRCMP(HYBLOCK,'证券类'),"880472$C", IF(STRCMP(HYBLOCK,'保险类'),"880473$C", IF(STRCMP(HYBLOCK,'信托类'),"880474$C", IF(STRCMP(HYBLOCK,'建筑'),"880476$C", IF(STRCMP(HYBLOCK,'房地产'),"880482$C", IF(STRCMP(HYBLOCK,'电脑设备'),"880489$C", IF(STRCMP(HYBLOCK,'通信设备'),"880490$C", IF(STRCMP(HYBLOCK,'半导体'),"880491$C", IF(STRCMP(HYBLOCK,'元器件'),"880492$C", IF(STRCMP(HYBLOCK,'软件服务'),"880493$C", IF(STRCMP(HYBLOCK,'互联网'),"880494$C", IF(STRCMP(HYBLOCK,'综合类'),"880497$C",0)))))))))))))))); ZSC:=ZSC1+ZSC2+ZSC3; 所属行业收盘:ZSC,COLORGREEN; N:=20; 个股N天折算:REF(ZSC,N)*C/REF(C,N),COLORGRAY; 点位偏差:个股N天折算-ZSC,COLORMAGENTA,NODRAW; DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,STRCAT(STRCAT('所属: [ ',HYBLOCK),'行业指数 ]')),COLORGREEN; |
|