VAR1:=COST(1);
VAR2:=COST(10);
VAR3:=COST(20);
VAR4:=COST(30);
VAR5:=COST(40);
VAR6:=COST(50);
VAR7:=COST(60);
VAR8:=COST(70);
VAR9:=COST(80);
VAR10:=COST(90);
VAR11:=COST(99);
VAR12:=COST(5);
VAR13:=COST(15);
VAR14:=COST(25);
VAR15:=COST(35);
VAR16:=COST(45);
VAR17:=COST(55);
VAR18:=COST(65);
VAR19:=COST(75);
VAR20:=COST(85);
VAR21:=COST(95);
VAR22:=VAR12-VAR1;
VAR23:=VAR2-VAR12;
VAR24:=VAR13-VAR2;
VAR25:=VAR3-VAR13;
VAR26:=VAR14-VAR3;
VAR27:=VAR4-VAR14;
VAR28:=VAR15-VAR4;
VAR29:=VAR5-VAR15;
VAR30:=VAR16-VAR5;
VAR31:=VAR6-VAR16;
VAR32:=VAR17-VAR6;
VAR33:=VAR7-VAR17;
VAR34:=VAR18-VAR7;
VAR35:=VAR8-VAR18;
VAR36:=VAR19-VAR8;
VAR37:=VAR9-VAR19;
VAR38:=VAR20-VAR9;
VAR39:=VAR10-VAR20;
VAR40:=VAR21-VAR10;
VAR41:=VAR11-VAR21;
VAR42:=VAR11-VAR1;
VAR43:=VAR10-VAR7;
VAR44:=VAR9-VAR6;
VAR45:=VAR8-VAR5;
VAR46:=VAR7-VAR4;
VAR47:=VAR6-VAR3;
VAR48:=VAR5-VAR2;
VAR49:=VAR4-VAR1;
STICKLINE(VAR43/VAR42<0.08,VAR10,VAR7,5,0),COLORBLUE;
STICKLINE(VAR44/VAR42<0.08,VAR9,VAR6,5,0),COLORBLUE;
STICKLINE(VAR45/VAR42<0.08,VAR8,VAR5,5,0),COLORBLUE;
STICKLINE(VAR46/VAR42<0.08,VAR7,VAR4,5,0),COLORBLUE;
STICKLINE(VAR47/VAR42<0.08,VAR6,VAR3,5,0),COLORBLUE;
STICKLINE(VAR48/VAR42<0.08,VAR5,VAR2,5,0),COLORBLUE;
VAR50:=VAR10-VAR8;
VAR51:=VAR9-VAR7;
VAR52:=VAR8-VAR6;
VAR53:=VAR7-VAR5;
VAR54:=VAR6-VAR4;
VAR55:=VAR5-VAR3;
VAR56:=VAR4-VAR2;
STICKLINE(VAR50/VAR42<0.05,VAR10,VAR8,5,0),COLORBROWN;
STICKLINE(VAR51/VAR42<0.05,VAR9,VAR7,5,0),COLORBROWN;
STICKLINE(VAR52/VAR42<0.05,VAR8,VAR6,5,0),COLORBROWN;
STICKLINE(VAR53/VAR42<0.05,VAR7,VAR5,5,0),COLORBROWN;
STICKLINE(VAR54/VAR42<0.05,VAR6,VAR4,5,0),COLORBROWN;
STICKLINE(VAR55/VAR42<0.05,VAR5,VAR3,5,0),COLORBROWN;
STICKLINE(VAR56/VAR42<0.05,VAR4,VAR2,5,0),COLORBROWN;
VAR57:=MIN(VAR22,MIN(VAR23,MIN(VAR24,MIN(VAR25,MIN(VAR26,MIN(VAR27,MIN(VAR28,MIN(VAR29,MIN(VAR30,MIN(VAR31,MIN(VAR32,MIN(VAR33,MIN(VAR34,MIN(VAR35,MIN(VAR36,MIN(VAR37,MIN(VAR38,MIN(VAR39,MIN(VAR40,VAR41)))))))))))))))))));
STICKLINE(VAR57=VAR22,VAR1,VAR12,4,0),COLORGRAY;
STICKLINE(VAR57=VAR23,VAR2,VAR12,4,0),COLORGRAY;
STICKLINE(VAR57=VAR24,VAR13,VAR2,4,0),COLORGRAY;
STICKLINE(VAR57=VAR25,VAR3,VAR13,4,0),COLORGRAY;
STICKLINE(VAR57=VAR26,VAR14,VAR3,4,0),COLORGRAY;
STICKLINE(VAR57=VAR27,VAR4,VAR14,4,0),COLORGRAY;
STICKLINE(VAR57=VAR28,VAR15,VAR4,4,0),COLORGRAY;
STICKLINE(VAR57=VAR29,VAR5,VAR15,4,0),COLORGRAY;
STICKLINE(VAR57=VAR30,VAR16,VAR5,4,0),COLORGRAY;
STICKLINE(VAR57=VAR31,VAR6,VAR16,4,0),COLORGRAY;
STICKLINE(VAR57=VAR32,VAR17,VAR6,4,0),COLORGRAY;
STICKLINE(VAR57=VAR33,VAR7,VAR17,4,0),COLORGRAY;
STICKLINE(VAR57=VAR34,VAR18,VAR7,4,0),COLORGRAY;
STICKLINE(VAR57=VAR35,VAR8,VAR18,4,0),COLORGRAY;
STICKLINE(VAR57=VAR36,VAR19,VAR8,4,0),COLORGRAY;
STICKLINE(VAR57=VAR37,VAR9,VAR19,4,0),COLORGRAY;
STICKLINE(VAR57=VAR38,VAR20,VAR8,4,0),COLORGRAY;
STICKLINE(VAR57=VAR39,VAR10,VAR20,4,0),COLORGRAY;
STICKLINE(VAR57=VAR40,VAR21,VAR10,4,0),COLORGRAY;
STICKLINE(VAR57=VAR41,VAR11,VAR21,4,0),COLORGRAY;
撑压线:IF(VAR57=VAR22,(VAR1+VAR12)/2,IF(VAR57=VAR23,(VAR2+VAR12)/2,IF(VAR57=VAR24,(VAR2+VAR13)/2,IF(VAR57=VAR25,(VAR3+VAR13)/2,IF(VAR57=VAR26,(VAR3+VAR14)/2,IF(VAR57=VAR27,(VAR4+VAR14)/2,IF(VAR57=VAR28,(VAR4+VAR15)/2,IF(VAR57=VAR29,(VAR5+VAR15)/2,IF(VAR57=VAR30,(VAR5+VAR16)/2,IF(VAR57=VAR31,(VAR6+VAR16)/2,IF(VAR57=VAR32,(VAR6+VAR17)/2,IF(VAR57=VAR33,(VAR7+VAR17)/2,IF(VAR57=VAR34,(VAR7+VAR18)/2,IF(VAR57=VAR35,(VAR8+VAR18)/2,IF(VAR57=VAR36,(VAR8+VAR19)/2,IF(VAR57=VAR37,(VAR9+VAR19)/2,IF(VAR57=VAR38,(VAR9+VAR20)/2,IF(VAR57=VAR39,(VAR10+VAR20)/2,IF(VAR57=VAR40,(VAR10+VAR21)/2,(VAR11+VAR21)/2))))))))))))))))))),NODRAW;
VAR58:=HHV((HIGH+LOW)/2,120);
VAR59:=(2*CLOSE+HIGH+LOW)/4;
VAR60:=IF(DATE=10301201,1,1);
VAR61:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VAR62:=EMA(CLOSE,3);
VAR63:=(2*CLOSE+LOW+HIGH)/4*VAR60;
VAR64:=VAR61-VAR62;
VAR65:=CLOSE*VOL;
VAR66:=EMA((EMA(VAR65,3)/EMA(VOL,3)+EMA(VAR65,6)/EMA(VOL,6)+EMA(VAR65,12)/EMA(VOL,12)+EMA(VAR65,24)/EMA(VOL,24))/4,13);
VAR67:=EMA(CLOSE,9);
VAR68:=(CLOSE+OPEN)/2;
VAR69:=EMA(VAR67*1.14,15);
VAR70:=(EMA(VAR68,3)+EMA(VAR68,6)+EMA(VAR68,12)+EMA(VAR68,24))/4;
VAR71:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
VAR72:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
牛线:EMA(VAR71,90),COLORYELLOW;
VAR73:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
VAR74:=6*HHV(牛线,3)-5*牛线;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORYELLOW;
STICKLINE((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORWHITE;
VAR75:=MA(REF(HHV((CLOSE+LOW+OPEN+HIGH)/4,30),1),3);
VAR76:=MA((CLOSE+LOW+OPEN+HIGH)/4,13);
VAR77:=EMA((CLOSE+LOW+OPEN+HIGH)/4,21);
突破顶:CLOSE>VAR75 AND (REF(CLOSE,1)<VAR75 OR OPEN<VAR75),NODRAW,COLORMAGENTA;
STICKLINE(突破顶,CLOSE,OPEN,1.5,0),COLORMAGENTA;
筹码突破:CLOSE>撑压线 AND (REF(CLOSE,1)<撑压线 OR OPEN<撑压线),NODRAW,COLORRED;
STICKLINE(筹码突破,CLOSE,OPEN,(-1),1),COLORMAGENTA;
VAR78:=COST(85);
VAR79:=COST(15);
VAR80:=VAR78-VAR79;
VAR81:=(VAR78+VAR79)/2;
VAR82:=VAR80/VAR81*100<10;
VAR83:=HHV(HIGH,250);
VAR84:=LLV(LOW,250);
VAR85:=VAR83-VAR84;
VAR86:=VAR81-VAR84;
VAR87:=CLOSE/REF(CLOSE,1)>1.04 AND VOL/REF(VOL,1)>2 AND HIGH=CLOSE;
强势突破:VAR82 AND VAR86 AND WINNER(CLOSE)>=0.9 AND VAR87,NODRAW,COLORCYAN;
DRAWICON(强势突破,HIGH*1.02,23);
DRAWICON(强势突破,LOW*0.98,1);
NOTEXT:PLOYLINE(CURRBARSCOUNT<=20,CONST(撑压线)),COLORGREEN,LINETHICK