{数字显示涨跌停K线天数}
A1:=REF(C,1);
涨停:=IF((C-A1)*100/A1>=(10-0.01*100/A1),1,0);
跌停:=IF((A1-C)*100/A1>=(10-0.01*100/A1),1,0);
涨停次数:=COUNT(涨停,BARSSINCE(涨停)+1);
跌停次数:=COUNT(跌停,BARSSINCE(跌停)+1);
DRAWNUMBER(涨停,HIGH*1.04,涨停次数),COLORYELLOW;
DRAWNUMBER(跌停,HIGH*1.04,跌停次数),COLORCYAN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.52,0.04,0,涨停次数),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.62,0.04,0,跌停次数),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.04,0,'上市以来共涨停:'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.55,0.04,0,'上市以来共跌停:'),COLORCYAN;
涨停K线:=IF((C-A1)*100/A1>=(10-0.01*100/A1),1,0);
跌停K线:=IF((A1-C)*100/A1>=(10-0.01*100/A1),1,0);
STICKLINE(涨停K线,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(跌停K线,OPEN,CLOSE,2.5,0),COLORBLUE;