N:=10;
DRAWTEXT_FIX(1,0,0,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW;
SCCD:=STR2CON(DPZSCODE);
DPMC:=IF(SCCD=399006,'创业板',IF(SCCD=399001,'深证综指',IF(SCCD=999999,'上证指数',IF(SCCD=000688,'科创50',DPZSCODE))));
DRAWTEXT_FIX(1,0.12,0,0,STRCAT('对应大盘:',DPMC)),, COLORCYAN;
LC:=REF(CLOSE,1);
个股强弱:SMA(MAX(CLOSE-LC,0),N,1)/(SMA(Abs(CLOSE-LC),N,1))*100,LINETHICK2,COLORLIMAGENTA;
行业C:=HY_INDEXC;
行业C1:=REF(行业C,1);
行业指数强弱:SMA(MAX(行业C-行业C1,0),N,1)/(SMA(ABS(行业C-行业C1),N,1))*100,LINETHICK1,COLORYELLOW;
大盘C:=INDEXC;
大盘C1:=REF(大盘C,1);
大盘指数强弱:SMA(MAX(大盘C-大盘C1,0),N,1)/(SMA(ABS(大盘C-大盘C1),N,1))*100,LINETHICK1, COLORCYAN;
个股八天强弱:MA(个股强弱,8),LINETHICK2,COLORWHITE;
行业强弱度:100*(行业指数强弱-大盘指数强弱)/大盘指数强弱,COLORWHITE,NODRAW;