H1:=IF(CODELIKE('002'),"399005$H",INDEXH);
H2:=IF(CODELIKE('300'),"399006$H",H1);
O1:=IF(CODELIKE('002'),"399005$O",INDEXO);
O2:=IF(CODELIKE('300'),"399006$O",O1);
C1:=IF(CODELIKE('002'),"399005$C",INDEXC);
对应指数:IF(CODELIKE('300'),"399006$C",C1),COLORWHITE,NODRAW;
涨跌%:(对应指数/REF(对应指数,1)-1)*100,COLORYELLOW,NODRAW;
L1:=IF(CODELIKE('002'),"399005$L",INDEXL);
L2:=IF(CODELIKE('300'),"399006$L",L1);
DRAWKLINE(H2,O2,L2,对应指数);
MA5:MA(对应指数,5),COLORWHITE;
MA10:MA(对应指数,10),COLORYELLOW;
MA20:MA(对应指数,20),COLORMAGENTA;
MA60:MA(对应指数,60),COLOR008899,LINETHICK1;
MA120:MA(对应指数,120),COLORFF6600,LINETHICK1;
MA250:MA(对应指数,250),COLORGREEN,LINETHICK1;