板块涨幅用数字及红绿柱条双体现涨跌及涨跌幅度让眼感上更直观。增加所属板块是否为领涨板块提示
公式很简单。只是写起来跟排列费时。一共48个板块及概念可自行增减或替换。共分三列,每列十六个
宽屏的可更改宽度同是放大柱状输入涨幅比例为30倍将取得更好的眼感效果。源码默认柱状输入涨幅比
例为为20倍,三列间每列柱状输出宽度为200.对17寸的屏幕已是满打满算。对0.1%下的涨幅柱状输出
有所欠缺。请调整自已的K线图界面。我自已用的是调整过的。
源码:
C/C++ Code复制内容到剪贴板
- {DZH2用}
- 引用公式
- {引用线}
- 板块涨幅:DYNAINFO(14);
-
- 副图公式
- {板块监控}
- DRAWGBKLAST(C,STRIP(RGB(65,65,65),RGB(0,0,0),0));
- 工程建筑:=STKINDI('991002','引用线.板块涨幅')*100;
- 电力:=STKINDI('991003','引用线.板块涨幅')*100;
- 计算机:=STKINDI('991004','引用线.板块涨幅')*100;
- 电子信息:=STKINDI('991006','引用线.板块涨幅')*100;
- 房地产:=STKINDI('991007','引用线.板块涨幅')*100;
- 纺织服装:=STKINDI('991008','引用线.板块涨幅')*100;
- 钢铁:=STKINDI('991009','引用线.板块涨幅')*100;
- 供水供气:=STKINDI('991010','引用线.板块涨幅')*100;
- 化工化纤:=STKINDI('991011','引用线.板块涨幅')*100;
- 电器:=STKINDI('991014','引用线.板块涨幅')*100;
- 交通设施:=STKINDI('991016','引用线.板块涨幅')*100;
- 银行类:=STKINDI('991017','引用线.板块涨幅')*100;
- 旅游酒店:=STKINDI('991018','引用线.板块涨幅')*100;
- 煤炭石油:=STKINDI('991019','引用线.板块涨幅')*100;
- 酿酒食品:=STKINDI('991020','引用线.板块涨幅')*100;
- 农林牧渔:=STKINDI('991021','引用线.板块涨幅')*100;
- 商业连锁:=STKINDI('991023','引用线.板块涨幅')*100;
- 建材:=STKINDI('991024','引用线.板块涨幅')*100;
- 其他行业:=STKINDI('991025','引用线.板块涨幅')*100;
- 汽车类:=STKINDI('991026','引用线.板块涨幅')*100;
- 机械:=STKINDI('991027','引用线.板块涨幅')*100;
- 医药:=STKINDI('991028','引用线.板块涨幅')*100;
- 外贸:=STKINDI('991031','引用线.板块涨幅')*100;
- 教育传媒:=STKINDI('991032','引用线.板块涨幅')*100;
- 仪电仪表:=STKINDI('991033','引用线.板块涨幅')*100;
- 有色金属:=STKINDI('991034','引用线.板块涨幅')*100;
- 造纸印刷:=STKINDI('991035','引用线.板块涨幅')*100;
- 券商:=STKINDI('991036','引用线.板块涨幅')*100;
- 电力设备:=STKINDI('991037','引用线.板块涨幅')*100;
- 通信:=STKINDI('991135','引用线.板块涨幅')*100;
- 运输物流:=STKINDI('991136','引用线.板块涨幅')*100;
- 保险:=STKINDI('991255','引用线.板块涨幅')*100;
- ST股:=STKINDI('993072','引用线.板块涨幅')*100;
- 新上海:=STKINDI('993091','引用线.板块涨幅')*100;
- 新材料:=STKINDI('993120','引用线.板块涨幅')*100;
- 农业龙头:=STKINDI('993128','引用线.板块涨幅')*100;
- 数字电视:=STKINDI('993129','引用线.板块涨幅')*100;
- 网络游戏:=STKINDI('993305','引用线.板块涨幅')*100;
- 成渝特区:=STKINDI('993450','引用线.板块涨幅')*100;
- 新能源:=STKINDI('993585','引用线.板块涨幅')*100;
- 铁路基建:=STKINDI('993586','引用线.板块涨幅')*100;
- 海峡西岸:=STKINDI('993596','引用线.板块涨幅')*100;
- 智能电网:=STKINDI('993597','引用线.板块涨幅')*100;
- 节能环保:=STKINDI('993645','引用线.板块涨幅')*100;
- 物联网:=STKINDI('993646','引用线.板块涨幅')*100;
- 航天军工:=STKINDI('993665','引用线.板块涨幅')*100;
- 低碳经济:=STKINDI('993710','引用线.板块涨幅')*100;
- 稀缺资源:=STKINDI('993745','引用线.板块涨幅')*100;
- HH1:=MAX(工程建筑,电力,计算机,电子信息,房地产,纺织服装,钢铁,供水供气,化工化纤,电器,交通设施,银行类,旅游酒店,煤炭石油,酿酒食品,农林牧渔,商业连锁,建材,其他行业,汽车类,机械,医药,外贸,教育传媒);
- HH2:=MAX(仪电仪表,有色金属,造纸印刷,券商,电力设备,通信,运输物流,保险,ST股,新上海,新材料,农业龙头,数字电视,网络游戏,成渝特区,新能源,铁路基建,海峡西岸,智能电网,节能环保,物联网,航天军工,低碳经济,稀缺资源);
- 领涨板块:=MAX(HH1,HH2);
- 板块领涨:IF(工程建筑=领涨板块,INBLOCK('工程建筑'),IF(电力=领涨板块,INBLOCK('电力'),IF(计算机=领涨板块,INBLOCK('计算机'),IF(电子信息=领涨板块,INBLOCK('电子信息'),IF(房地产=领涨板块,INBLOCK('房地产'),IF(纺织服装=领涨板块,INBLOCK('纺织服装'),IF(钢铁=领涨板块,INBLOCK('钢铁'),IF(供水供气=领涨板块,INBLOCK('供水供气'),
- IF(化工化纤=领涨板块,INBLOCK('化工化纤'),IF(电器=领涨板块,INBLOCK('电器'),IF(交通设施=领涨板块,INBLOCK('交通设施'),IF(银行类=领涨板块,INBLOCK('银行类'),IF(旅游酒店=领涨板块,INBLOCK('旅游酒店'),IF(煤炭石油=领涨板块,INBLOCK('煤炭石油'),IF(酿酒食品=领涨板块,INBLOCK('酿酒食品'),IF(农林牧渔=领涨板块,INBLOCK('农林牧渔'),
- IF(商业连锁=领涨板块,INBLOCK('商业连锁'),IF(建材=领涨板块,INBLOCK('建材'),IF(其他行业=领涨板块,INBLOCK('其他行业'),IF(汽车类=领涨板块,INBLOCK('汽车类'),IF(机械=领涨板块,INBLOCK('机械'),IF(医药=领涨板块,INBLOCK('医药'),IF(外贸=领涨板块,INBLOCK('外贸'),IF(教育传媒=领涨板块,INBLOCK('教育传媒'),IF(仪电仪表=领涨板块,INBLOCK('仪电仪表'),
- IF(有色金属=领涨板块,INBLOCK('有色金属'),IF(造纸印刷=领涨板块,INBLOCK('造纸印刷'),IF(券商=领涨板块,INBLOCK('券商'),IF(电力设备=领涨板块,INBLOCK('电力设备'),IF(通信=领涨板块,INBLOCK('通信'),IF(运输物流=领涨板块,INBLOCK('运输物流'),IF(保险=领涨板块,INBLOCK('保险'),IF(ST股=领涨板块,INBLOCK('ST'),IF(新上海=领涨板块,INBLOCK('新上海'),
- IF(新材料=领涨板块,INBLOCK('新材料'),IF(农业龙头=领涨板块,INBLOCK('农业龙头'),IF(数字电视=领涨板块,INBLOCK('数字电视'),IF(网络游戏=领涨板块,INBLOCK('网络游戏'),IF(成渝特区=领涨板块,INBLOCK('成渝特区'),IF(新能源=领涨板块,INBLOCK('新能源'),IF(铁路基建=领涨板块,INBLOCK('铁路基建'),IF(海峡西岸=领涨板块,INBLOCK('海峡西岸'),
- IF(智能电网=领涨板块,INBLOCK('智能电网'),IF(节能环保=领涨板块,INBLOCK('节能环保'),IF(物联网=领涨板块,INBLOCK('物联网'),IF(航天军工=领涨板块,INBLOCK('航天军工'),IF(低碳经济=领涨板块,INBLOCK('低碳经济'),INBLOCK('稀缺资源')))))))))))))))))))))))))))))))))))))))))))))))),COLORRED,PRECIS0,LINETHICK0;
- X:=0;
- Y:=0;
- X1:=130;
- X2:=240;
- X3:=465;
- X4:=480;
- X5:=800;
- Y1:=5;
- Y2:=35;
- Y3:=21;
- DRAWTEXTABS(X,Y,'工程建筑:'+NUMTOSTRN(工程建筑,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y1,IF(工程建筑>=0,X1+工程建筑*20,X1-工程建筑*20),Y2,IF(工程建筑>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3,'电 力:'+NUMTOSTRN(电力,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333,IF(电力>=0,X1+电力*20,X1-电力*20),Y2+34.333+30,IF(电力>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*2,'计 算 机:'+NUMTOSTRN(计算机,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*2+30,IF(计算机>=0,X1+计算机*20,X1-计算机*20),Y2+34.333*2+30*2,IF(计算机>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*3,'电子信息:'+NUMTOSTRN(电子信息,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*3+30*2,IF(电子信息>=0,X1+电子信息*20,X1-电子信息*20),Y2+34.333*3+30*3,IF(电子信息>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*4,'房 地 产:'+NUMTOSTRN(房地产,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*4+30*3,IF(房地产>=0,X1+房地产*20,X1-房地产*20),Y2+34.333*4+30*4,IF(房地产>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*5,'纺织服装:'+NUMTOSTRN(纺织服装,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*5+30*4,IF(纺织服装>=0,X1+纺织服装*20,X1-纺织服装*20),Y2+34.333*5+30*5,IF(纺织服装>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*6,'钢 铁:'+NUMTOSTRN(钢铁,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*6+30*5,IF(钢铁>=0,X1+钢铁*20,X1-钢铁*20),Y2+34.333*6+30*6,IF(钢铁>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*7,'供水供气:'+NUMTOSTRN(供水供气,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*7+30*6,IF(供水供气>=0,X1+供水供气*20,X1-供水供气*20),Y2+34.333*7+30*7,IF(供水供气>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*8,'化工化纤:'+NUMTOSTRN(化工化纤,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*8+30*7,IF(化工化纤>=0,X1+化工化纤*20,X1-化工化纤*20),Y2+34.333*8+30*8,IF(化工化纤>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*9,'电 器:'+NUMTOSTRN(电器,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*9+30*8,IF(电器>=0,X1+电器*20,X1-电器*20),Y2+34.333*9+30*9,IF(电器>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*10,'交通设施:'+NUMTOSTRN(交通设施,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*10+30*9,IF(交通设施>=0,X1+交通设施*20,X1-交通设施*20),Y2+34.333*10+30*10,IF(交通设施>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*11,'银 行 类:'+NUMTOSTRN(银行类,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*11+30*10,IF(银行类>=0,X1+银行类*20,X1-银行类*20),Y2+34.333*11+30*11,IF(银行类>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*12,'旅游酒店:'+NUMTOSTRN(旅游酒店,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*12+30*11,IF(旅游酒店>=0,X1+旅游酒店*20,X1-旅游酒店*20),Y2+34.333*12+30*12,IF(旅游酒店>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*13,'煤炭石油:'+NUMTOSTRN(煤炭石油,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*13+30*12,IF(煤炭石油>=0,X1+煤炭石油*20,X1-煤炭石油*20),Y2+34.333*13+30*13,IF(煤炭石油>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*14,'酿酒食品:'+NUMTOSTRN(酿酒食品,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*14+30*13,IF(酿酒食品>=0,X1+酿酒食品*20,X1-酿酒食品*20),Y2+34.333*14+30*14,IF(酿酒食品>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X,Y3*15,'农林牧渔:'+NUMTOSTRN(农林牧渔,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X1,Y2+34.333*15+30*14,IF(农林牧渔>=0,X1+农林牧渔*20,X1-农林牧渔*20),Y2+34.333*15+30*15,IF(农林牧渔>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- {}
- DRAWTEXTABS(X2,Y,'商业连锁:'+NUMTOSTRN(商业连锁,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y1,IF(商业连锁>=0,X3+商业连锁*20,X3-商业连锁*20),Y2,IF(商业连锁>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3,'建 材:'+NUMTOSTRN(建材,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333,IF(建材>=0,X3+建材*20,X3-建材*20),Y2+34.333+30,IF(建材>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*2,'其他行业:'+NUMTOSTRN(其他行业,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*2+30,IF(其他行业>=0,465+其他行业*20,465-其他行业*20),Y2+34.333*2+30*2,IF(其他行业>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*3,'汽 车 类:'+NUMTOSTRN(汽车类,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*3+30*2,IF(汽车类>=0,465+汽车类*20,465-汽车类*20),Y2+34.333*3+30*3,IF(汽车类>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*4,'机 械:'+NUMTOSTRN(机械,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*4+30*3,IF(机械>=0,X3+机械*20,X3-机械*20),Y2+34.333*4+30*4,IF(机械>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*5,'医 药:'+NUMTOSTRN(医药,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*5+30*4,IF(医药>=0,X3+医药*20,X3-医药*20),Y2+34.333*5+30*5,IF(医药>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*6,'外 贸:'+NUMTOSTRN(外贸,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*6+30*5,IF(外贸>=0,X3+外贸*20,X3-外贸*20),Y2+34.333*6+30*6,IF(外贸>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*7,'教育传媒:'+NUMTOSTRN(教育传媒,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*7+30*6,IF(教育传媒>=0,X3+教育传媒*20,X3-教育传媒*20),Y2+34.333*7+30*7,IF(教育传媒>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*8,'仪电仪表:'+NUMTOSTRN(仪电仪表,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*8+30*7,IF(仪电仪表>=0,X3+仪电仪表*20,X3-仪电仪表*20),Y2+34.333*8+30*8,IF(仪电仪表>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*9,'有色金属:'+NUMTOSTRN(有色金属,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*9+30*8,IF(有色金属>=0,X3+有色金属*20,X3-有色金属*20),Y2+34.333*9+30*9,IF(有色金属>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*10,'造纸印刷:'+NUMTOSTRN(造纸印刷,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*10+30*9,IF(造纸印刷>=0,X3+造纸印刷*20,X3-造纸印刷*20),Y2+34.333*10+30*10,IF(造纸印刷>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*11,'券 商:'+NUMTOSTRN(券商,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*11+30*10,IF(券商>=0,X3+券商*20,X3-券商*20),Y2+34.333*11+30*11,IF(券商>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*12,'电力设备:'+NUMTOSTRN(电力设备,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*12+30*11,IF(电力设备>=0,X3+电力设备*20,X3-电力设备*20),Y2+34.333*12+30*12,IF(电力设备>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*13,'通 信:'+NUMTOSTRN(通信,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*13+30*12,IF(通信>=0,X3+通信*20,X3-通信*20),Y2+34.333*13+30*13,IF(通信>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*14,'运输物流:'+NUMTOSTRN(运输物流,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*14+30*13,IF(运输物流>=0,X3+运输物流*20,X3-运输物流*20),Y2+34.333*14+30*14,IF(运输物流>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X2,Y3*15,'保 险:'+NUMTOSTRN(保险,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X3,Y2+34.333*15+30*14,IF(保险>=0,X3+保险*20,X3-保险*20),Y2+34.333*15+30*15,IF(保险>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- {}
- DRAWTEXTABS(X4,Y,'ST 股:'+NUMTOSTRN(ST股,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y1,IF(ST股>=0,X5+ST股*20,X5-ST股*20),Y2,IF(ST股>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3,'新 上 海:'+NUMTOSTRN(新上海,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333,IF(新上海>=0,X5+新上海*20,X5-新上海*20),Y2+34.333+30,IF(新上海>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*2,'新 材 料:'+NUMTOSTRN(新材料,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*2+30,IF(新材料>=0,X5+新材料*20,X5-新材料*20),Y2+34.333*2+30*2,IF(新材料>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*3,'农业龙头:'+NUMTOSTRN(农业龙头,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*3+30*2,IF(农业龙头>=0,X5+农业龙头*20,X5-农业龙头*20),Y2+34.333*3+30*3,IF(农业龙头>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*4,'数字电视:'+NUMTOSTRN(数字电视,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*4+30*3,IF(数字电视>=0,X5+数字电视*20,X5-数字电视*20),Y2+34.333*4+30*4,IF(数字电视>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*5,'网络游戏:'+NUMTOSTRN(网络游戏,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*5+30*4,IF(网络游戏>=0,X5+网络游戏*20,X5-网络游戏*20),Y2+34.333*5+30*5,IF(网络游戏>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*6,'成渝特区:'+NUMTOSTRN(成渝特区,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*6+30*5,IF(成渝特区>=0,X5+成渝特区*20,X5-成渝特区*20),Y2+34.333*6+30*6,IF(成渝特区>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*7,'新 能 源:'+NUMTOSTRN(新能源,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*7+30*6,IF(新能源>=0,800+新能源*20,800-新能源*20),Y2+34.333*7+30*7,IF(新能源>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*8,'铁路基建:'+NUMTOSTRN(铁路基建,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*8+30*7,IF(铁路基建>=0,X5+铁路基建*20,X5-铁路基建*20),Y2+34.333*8+30*8,IF(铁路基建>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*9,'海峡西岸:'+NUMTOSTRN(海峡西岸,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*9+30*8,IF(海峡西岸>=0,X5+海峡西岸*20,X5-海峡西岸*20),Y2+34.333*9+30*9,IF(海峡西岸>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*10,'智能电网:'+NUMTOSTRN(智能电网,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*10+30*9,IF(智能电网>=0,X5+智能电网*20,X5-智能电网*20),Y2+34.333*10+30*10,IF(智能电网>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*11,'节能环保:'+NUMTOSTRN(节能环保,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*11+30*10,IF(节能环保>=0,X5+节能环保*20,X5-节能环保*20),Y2+34.333*11+30*11,IF(节能环保>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*12,'物 联 网:'+NUMTOSTRN(物联网,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*12+30*11,IF(物联网>=0,X5+物联网*20,X5-物联网*20),Y2+34.333*12+30*12,IF(物联网>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*13,'航天军工:'+NUMTOSTRN(航天军工,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*13+30*12,IF(航天军工>=0,X5+航天军工*20,X5-航天军工*20),Y2+34.333*13+30*13,IF(航天军工>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*14,'低碳经济:'+NUMTOSTRN(低碳经济,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*14+30*13,IF(低碳经济>=0,X5+低碳经济*20,X5-低碳经济*20),Y2+34.333*14+30*14,IF(低碳经济>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWTEXTABS(X4,Y3*15,'稀缺资源:'+NUMTOSTRN(稀缺资源,2)+'%'),COLORYELLOW;
- DRAWRECTREL(X5,Y2+34.333*15+30*14,IF(稀缺资源>=0,X5+稀缺资源*20,X5-稀缺资源*20),Y2+34.333*15+30*15,IF(稀缺资源>=0,RGB(255,0,0),RGB(0,255,0))),COLORBLACK;
- DRAWFLAGTEXT(板块领涨=1 AND BARSTATUS=2,5,'板块领涨');