最后涨停距今数:BARSLAST(ZBVAR3),NODRAW,COLOR00CCCC;
ZBVAR4:=(REF(C,BARSLAST(ZBVAR3))+REF(OPEN,BARSLAST(ZBVAR3)))/2;
STICKLINE(C,ZBVAR4,REF(LOW,BARSLAST(ZBVAR3)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,C);
STICKLINE(ZBVAR3,OPEN,C,2.6,0),COLOR0000E5;
STICKLINE(ZBVAR3,OPEN,C,2.4,0),COLOR335555;
STICKLINE(ZBVAR3,OPEN,C,1.8,0),COLOR338888;
STICKLINE(ZBVAR3,OPEN,C,1.2,0),COLOR33AAAA;
STICKLINE(ZBVAR3,OPEN,C,0.6,0),COLOR33CCCC;
STICKLINE(ZBVAR3,OPEN,C,0.1,0),COLOR33EEEE;
ZBVAR5:=REF(C,1);
ZBVAR6:=IF((ZBVAR5-C)*100/ZBVAR5>=10-0.01*100/ZBVAR5,1,0);
STICKLINE(ZBVAR6,OPEN,C,2.6,0),COLORE50000;
MA13:MA(C,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:MA(C,21),COLOR00CCCC,LINETHICK2;
ZBVAR7:=C>MA21 AND MA13>REF(MA13,1) AND ZBVAR6!=1;
ZBVAR8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
ZBVAR9:=REF(C,1);
ZBVAR10:=SMA(MAX(C-ZBVAR9,0),2,1)/SMA(ABS(C-ZBVAR9),2,1)*100;
ZBVAR11:=SMA(MAX(C-ZBVAR9,0),14,1)/SMA(ABS(C-ZBVAR9),14,1)*100;
ZBVAR12:=45;
ZBVAR13:=80;
ZBVAR14:=20;
ZBVAR15:=5;
ZBVAR16:=ZBVAR10< ZBVAR12 AND REF(ZBVAR10,1)>ZBVAR12;
ZBVAR17:=ZBVAR10< ZBVAR14 AND REF(ZBVAR10,1)>ZBVAR14;
ZBVAR18:=COUNT(ZBVAR3,13)>=1;
ZBVAR19:=SMA(LOW,4,3);
ZBVAR20:=ZBVAR16 OR ZBVAR17 AND ZBVAR18;
ZBVAR21:=REF(ZBVAR16,1) OR REF(ZBVAR17,1) AND LOW< MA(C,5) AND ZBVAR18 AND ZBVAR7 AND C>REF(LOW,BARSLAST(ZBVAR3));
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,2.4,0),COLOR550055;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.8,0),COLOR880088;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLORAA00AA;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLORCC00CC;
STICKLINE(ZBVAR20,OPEN,C,0.1,0),COLOREE00EE;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLOR000088;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLOR0000AA;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.3,0),COLOR0000CC;
STICKLINE(ZBVAR21,OPEN,C,0.1,0),COLOR0000EE;
STICKLINE(ZBVAR21,ZBVAR19*0.995,ZBVAR19,5,0),COLORGREEN;
DRAWICON(ZBVAR21,LOW*0.98,1);
ZBVAR22:=AMOUNT/VOL/100;
ZBVAR23:=REF(C,1);
STICKLINE(CURRBARSCOUNT< 21 AND ZBVAR3=1,ZBVAR22,ZBVAR22,2.5,0),COLORYELLOW;
STICKLINE(C,ZBVAR4,ZBVAR4,2,0),COLORRED;
STICKLINE(C,REF(LOW,BARSLAST(ZBVAR3)),REF(LOW,BARSLAST(ZBVAR3)),2,0),COLORCCCC00;