个股:SUM((C/REF(C,1)-1)*100,0),COLORLIMAGENTA,LINETHICK1;
上证A:SUM((("999999$C")/REF(("999999$C"),1)-1)*100,0),COLORRED,LINETHICK3;
深证A:SUM((("399001$C")/REF(("399001$C"),1)-1)*100,0),COLORGREEN,LINETHICK2;
金融改革:SUM((("880552$C")/REF(("880552$C"),1)-1)*100,0),COLORMAGENTA,LINETHICK1;
交通设施:SUM((("880465$C")/REF(("880465$C"),1)-1)*100,0),COLORCYAN,LINETHICK1;
农林:SUM((("880360$C")/REF(("880360$C"),1)-1)*100,0),COLORLIBLUE;
互联网:SUM((("880494$C")/REF(("880494$C"),1)-1)*100,0),COLORBROWN;
传媒:SUM((("880684$C")/REF(("880684$C"),1)-1)*100,0),COLORLIRED;
烯土:SUM((("880535$C")/REF(("880535$C"),1)-1)*100,0),COLORLIGREEN;
证券:SUM((("880472$C")/REF(("880472$C"),1)-1)*100,0),COLORLICYAN;
纺织A:SUM((("399132$C")/REF(("399132$C"),1)-1)*100,0),COLORLIRED;
石化:SUM((("880312$C")/REF(("880312$C"),1)-1)*100,0),COLORBLUE;
电子A:SUM((("399136$C")/REF(("399136$C"),1)-1)*100,0),COLORLIMAGENTA;
有色:SUM((("000819$C")/REF(("000819$C"),1)-1)*100,0),COLORYELLOW;
机械A:SUM((("399138$C")/REF(("399138$C"),1)-1)*100,0),COLORGRAY;
医药A:SUM((("399139$C")/REF(("399139$C"),1)-1)*100,0),COLORWHITE;
水电A:SUM((("399140$C")/REF(("399140$C"),1)-1)*100,0),COLORBROWN;
建筑A:SUM((("399150$C")/REF(("399150$C"),1)-1)*100,0),COLORGREEN;
运输A:SUM((("399160$C")/REF(("399160$C"),1)-1)*100,0),COLORLIGRAY;
化工:SUM((("880355$C")/REF(("880355$C"),1)-1)*100,0),COLORRED;
地产A:SUM((("880482$C")/REF(("880482$C"),1)-1)*100,0),COLORBLUE;
服务A:SUM((("399210$C")/REF(("399210$C"),1)-1)*100,0),COLORLIGREEN;
航天军工A:SUM((("399368$C")/REF(("399368$C"),1)-1)*100,0),COLORLIGREEN;
新能源A:SUM((("399941$C")/REF(("399941$C"),1)-1)*100,0),COLORGRAY;
当前个指线:SUM((C/REF(C,1)-1)*100,0),COLORLIMAGENTA,LINETHICK2;
Q1:=IF(BArslAST(CURRBARSCOUNT=2),10,0);
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),上证A,'上证'),COLORRED;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),深证A,'深证'),COLORGREEN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),金融改革,'金融改革'),COLORMAGENTA;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),交通设施,'交通设施'),COLORCYAN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),农林,'农林'),COLORLIBLUE;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),互联网,'互联网'),COLORBROWN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),烯土,'烯土'),COLORLIGREEN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),证券,'证券'),COLORLICYAN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),纺织A,'纺织'),COLORLIRED;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),石化,'石化'),COLORBLUE;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),电子A,'电子'),COLORLIMAGENTA;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),有色,'有色'),COLORYELLOW;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),机械A,'机械'),COLORGRAY;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),医药A,'医药'),COLORWHITE;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),水电A,'水电'),COLORBROWN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),建筑A,'建筑'),COLORGREEN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),运输A,'运输'),COLORLIGRAY;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),化工,'化工'),COLORRED;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),地产A,'地产'),COLORBLUE;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),服务A,'服务'),COLORLIGREEN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),传媒,'传媒'),COLORLIRED;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),航天军工A,'航天军工'),COLORLIGREEN;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),新能源A,'新能源'),COLORGRAY;