gspt1:=CLOSE/REF(CLOSE,1)>=1.095;
gspt2:=COUNT(gspt1,BARSLAST(gspt1+1));
gspt3:=COUNT(gspt1,90);
DRAWNUMBER(gspt1,HIGH*1.04,gspt3),COLORYELLOW;
gspt4:=STRCAT('共涨停:',CON2STR(gspt2,0));
gspt5:=STRCAT(gspt4,'次');
gspt6:=STRCAT('上市:',CON2STR(FINANCE(42),0));
gspt7:=STRCAT(gspt6,'天');
gspt8:=STRCAT('距今:',CON2STR(CONST(BARSLAST(gspt1)),0));
gspt9:=STRCAT(gspt8,'天有涨停');
gspt10:=STRCAT(gspt7,gspt5);
gspt11:=STRCAT(gspt10,gspt9);
gspt12:=STRCAT('涨停统计:',gspt11);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,gspt12),COLORYELLOW;
gspt13:=EMA(EMA(CLOSE,30),9);
gspt14:=EMA(EMA(INDEXC,45),9);
gspt15:=CLOSE/gspt13*100;
gspt16:=INDEXC/gspt14*100;
gspt17:=(gspt15-gspt16);
gspt18:=REF(BARSLAST((C-REF(C,1))/REF(C,1)*100>9.6&&C=H),1)+1;
gspt19:=COUNT(CROSS(MA(C,15),MA(C,5)),gspt18)=0&&HHV(gspt17,20)>23&&MA(C,5)>MA(C,30)&&gspt17< HHV(gspt17,30)&&gspt17>5&&(C-REF(C,1))/REF(C,1)*100>9.6&&C=H;
gspt20:=(C-REF(C,1))/REF(C,1)*100>9.5,COLORWHITE;
gspt21:=IF(REF(gspt20,1)>0,(O-REF(C,1))/REF(C,1)*100,0),NODRAW;
gspt22:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
gspt23:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
gspt24:=(gspt22-gspt23);
gspt25:=LLV(gspt22,3);
gspt26:=gspt20>0&&gspt25< 0&&gspt24>5&&MA(C,5)< MA(C,60);
DRAWTEXT(gspt26,L*0.98,'超跌涨停'),COLORGREEN;
gspt27:=MA(C,5);
gspt28:=MA(C,10);
gspt29:=MA(C,20);
gspt30:=MA(C,30);
gspt31:=MA(C,34);
gspt32:=(gspt27-gspt28)/gspt28*100;
gspt33:=(gspt28-gspt29)/gspt28*100;
gspt34:=(gspt29-gspt31)/gspt28*100;
gspt35:=gspt32>1&&gspt33>3&&gspt34>0&&gspt20>0;
gspt36:=REF(C,20)=HHV(C,2*20+1);
gspt37:=FILTER(gspt36,20);
gspt38:=BACKSET(gspt37,20+1);
gspt39:=FILTER(gspt38,20);
gspt40:=REF(H,BARSLAST(gspt39));
gspt41:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
gspt42:=gspt20>0&&gspt41=HHV(gspt41,5)&&gspt41>80;
gspt43:=gspt17>15&&gspt20>0&&gspt41=HHV(gspt41,5)&&gspt41>80&&REF(gspt17>15&&gspt20>0&&gspt41=HHV(gspt41,5)&&gspt41>80,1)=0;
gspt44:=COUNT(gspt20>0,BARSCOUNT(C))=1&&gspt20>0&&FINANCE(42)< 100;
gspt45:=CROSS(C,gspt40)&&gspt20>0;
DRAWTEXT(gspt19,L*0.94,'回光返照'),COLORBLUE;
DRAWTEXT(gspt35,L*0.99,'拉升涨停'),COLORRED;
DRAWTEXT(gspt45,L*0.97,'突破涨停'),COLORYELLOW;
DRAWTEXT(gspt44,L*0.96,'新股首次'),COLORMAGENTA;
DRAWTEXT(gspt43,L*0.98,'钝化涨停1'),COLORLIGRAY;
DRAWTEXT(gspt42,L*0.95,'钝化涨停'),COLORLIBLUE;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(gspt1)),REF(HIGH,BARSLAST(gspt1)),0.1,0),COLORDDDD00;
STICKLINE(CLOSE,REF(LOW,BARSLAST(gspt1)),REF(LOW,BARSLAST(gspt1)),0.1,0),COLOR00DDDD;