Q1:=IF(BArslAST(CURRBARSCOUNT=2),10,0);
VAR1:=("999999$C");
上证:SUM((VAR1/REF(VAR1,1)-1)*100,0)*2+100,COLORWHITE,LINETHICK1;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),上证,'上证');
VAR2:=("399001$C");
深:SUM((VAR2/REF(VAR2,1)-1)*100,0)*2+100;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),深,'深');
VAR3:=("399005$C");
中小:SUM((VAR3/REF(VAR3,1)-1)*100,0)*2+100;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),中小,'中小');
VAR4:=("399006$C");
创业:SUM((VAR4/REF(VAR4,1)-1)*100,0)*2+100;
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),创业,'创业');
当前线:SUM((C/REF(C,1)-1)*100,0)*2+100,COLORRED,LINETHICK1;