总涨家:=”999999$ADVANCE”+”399001$ADVANCE”,COLORRED,NODRAW;
总跌家:=”999999$DECLINE”+”399001$DECLINE”,COLORGREEN,NODRAW;
上涨占比:100*总涨家/(总涨家+总跌家),COLORWHITE;
涨停数:SCJYVALUE(3,1,0),COLORRED,NODRAW;
曾涨停:=SCJYVALUE(3,2,0),COLORRED,NODRAW;
跌停数:SCJYVALUE(4,1,0),COLORBROWN,NODRAW;
炸板率:100*曾涨停/(曾涨停+涨停数),COLORGREEN;
曾跌停:=SCJYVALUE(4,2,0),COLORRED,NODRAW;
连板率:100*SCJYVALUE(23,1,0)/SCJYVALUE(3,1,0),COLORMAGENTA;
行业涨跌率:100*HY_INDEXADV/(HY_INDEXADV+HY_INDEXDEC),NODRAW,COLORYELLOW;
DRAWTEXT(ISLASTBAR,上涨占比,STRCAT(STRCAT(‘沪深上涨率:’,CON2STR(上涨占比,2)),’%’)),COLORWHITE;
DRAWTEXT(ISLASTBAR,炸板率,STRCAT(STRCAT(‘炸板率:’,CON2STR(炸板率,2)),’%’)),COLORGREEN;
DRAWTEXT(ISLASTBAR,连板率,STRCAT(STRCAT(‘连板率:’,CON2STR(连板率,2)),’%’)),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,行业涨跌率,STRCAT(HYBLOCK,STRCAT(STRCAT(‘行业涨跌率:’,CON2STR(行业涨跌率,2)),’%’))),COLORYELLOW;
打板成功资金:SCJYVALUE(15,1,0),COLORWHITE,NODRAW;
打板失败资金:SCJYVALUE(15,2,0),COLORWHITE,NODRAW;
打板成功率:100*打板成功资金/(打板成功资金+打板失败资金),COLORCYAN,LINETHICK5;
DRAWTEXT(ISLASTBAR,打板成功率,STRCAT(STRCAT(‘打板成功率:’,CON2STR(打板成功率,2)),’%’)),COLORCYAN;
代码不全 无法复制输入建立指标