VAR3:=IF(1,(C/REF(C,1)-1)*100>9.5,0),NODRAW;
最后涨停距今数:BARSLAST(VAR3),NODRAW,COLOR00CCCC;
VAR4:=(REF(C,BARSLAST(VAR3))+REF(OPEN,BARSLAST(VAR3)))/2;
STICKLINE(C,VAR4,REF(LOW,BARSLAST(VAR3)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,C);
STICKLINE(VAR3,OPEN,C,2.6,0),COLOR0000E5;
STICKLINE(VAR3,OPEN,C,2.4,0),COLOR335555;
STICKLINE(VAR3,OPEN,C,1.8,0),COLOR338888;
STICKLINE(VAR3,OPEN,C,1.2,0),COLOR33AAAA;
STICKLINE(VAR3,OPEN,C,0.6,0),COLOR33CCCC;
STICKLINE(VAR3,OPEN,C,0.1,0),COLOR33EEEE;
VAR5:=REF(C,1);
VAR6:=IF((VAR5-C)*100/VAR5>=10-0.01*100/VAR5,1,0);
STICKLINE(VAR6,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;
VAR7:=C>MA21 AND MA13>REF(MA13,1) AND VAR6!=1;
VAR8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
VAR9:=REF(C,1);
VAR10:=SMA(MAX(C-VAR9,0),2,1)/SMA(Abs(C-VAR9),2,1)*100;
VAR11:=SMA(MAX(C-VAR9,0),14,1)/SMA(ABS(C-VAR9),14,1)*100;
VAR12:=45;
VAR13:=80;
VAR14:=20;
VAR15:=5;
VAR16:=VAR10< VAR12 AND REF(VAR10,1)>VAR12;
VAR17:=VAR10< VAR14 AND REF(VAR10,1)>VAR14;
VAR18:=COUNT(VAR3,13)>=1;
VAR19:=SMA(LOW,4,3);
VAR20:=VAR16 OR VAR17 AND VAR18;
VAR21:=REF(VAR16,1) OR REF(VAR17,1) AND LOW< MA(C,5) AND VAR18 AND VAR7 AND C>REF(LOW,BARSLAST(VAR3));
STICKLINE(VAR20 AND NOT(VAR3),OPEN,C,2.4,0),COLOR550055;
STICKLINE(VAR20 AND NOT(VAR3),OPEN,C,1.8,0),COLOR880088;
STICKLINE(VAR20 AND NOT(VAR3),OPEN,C,1.2,0),COLORAA00AA;
STICKLINE(VAR20 AND NOT(VAR3),OPEN,C,0.6,0),COLORCC00CC;
STICKLINE(VAR20,OPEN,C,0.1,0),COLOREE00EE;
STICKLINE(VAR21 AND NOT(VAR3),OPEN,C,1.2,0),COLOR000088;
STICKLINE(VAR21 AND NOT(VAR3),OPEN,C,0.6,0),COLOR0000AA;
STICKLINE(VAR21 AND NOT(VAR3),OPEN,C,0.3,0),COLOR0000CC;
STICKLINE(VAR21,OPEN,C,0.1,0),COLOR0000EE;
STICKLINE(VAR21,VAR19*0.995,VAR19,5,0),COLORGREEN;
DRAWICON(VAR21,LOW*0.98,1);
VAR22:=AMOUNT/vol/100;
VAR23:=REF(C,1);
STICKLINE(CURRBARSCOUNT< 21 AND VAR3=1,VAR22,VAR22,2.5,0),COLORYELLOW;
STICKLINE(C,VAR4,VAR4,2,0),COLORRED;
STICKLINE(C,REF(LOW,BARSLAST(VAR3)),REF(LOW,BARSLAST(VAR3)),2,0),COLORCCCC00;