ISST:=CODELIKE('6') || CODELIKE('30') || CODELIKE('00');
ISZS:=CODELIKE('88');
SHAMO:= 999999$AMO /100000000;
SZAMO:= 399001$AMO /100000000;
SHZA:=SHAMO+SZAMO;
HYAMO:=IF(ISST,CALCSTOCKINDEX(HYZSCODE,'AMO',1)/10000,IF(ISZS,AMO/100000000,DRAWNULL));
HYB:=HYAMO/SHZA*100;{相对成交量=板块指数交易量/沪深两市成交量}
HYMA:=SMA(HYB,20,1);
两市成交:SHZA,NODRAW;
行业成交:HYAMO,NODRAW;
行业总额比:HYB;
行比均线:HYMA;
对比差:HYB,COLORSTICK;
GGHYB:=(V*C)/HYAMO/10000;
个股行业比:IF(GGHYB 100,GGHYB,0),COLORYELLOW;
DRAWTEXT_FIX(ISST,0.99,0,1,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISZS,0.99,0,1,STKNAME),COLORWHITE;