源码
T1:=1;
GC:=IF(T1,C,DRAWNULL);
个股:(GC/REF(GC,BARSSINCE(GC))-1)*100;
IC:=IF(T1,INDEXC,DRAWNULL);
大盘:(IC/REF(IC,BARSSINCE(IC))-1)*100;
BC:=IF(T1,IF(HY_INDEXC=0,REF(HY_INDEXC,1),HY_INDEXC),DRAWNULL);
行业:(BC/REF(BC,BARSSINCE(BC))-1)*100;
DRAWTEXT(CURRBARSCOUNT=8,个股,STKNAME),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=8,大盘,'对应大盘'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=8,行业,'对应行业'),COLORMAGENTA;