DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK),COLOR0080FF;
DRAWBAND(MA(CLOSE,58),RGB(68,0,0),MA(CLOSE,118),RGB(0,91,0));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA15:MA(CLOSE,15),COLOR00FFFF;
MAL:MA(CLOSE,58),COLORGREEN;
MAH:MA(CLOSE,118),COLOR004080;
gspt1:=MAX(MAL,MAH);
gspt2:=MIN(MAL,MAH);
gspt3:=CROSS(C,gspt1) AND C/REF(C,1)>=(1+0.01*2);
MAK:MA(CLOSE,450),COLORFF00FF;
MAQ:MA(CLOSE,550),COLOR0080FF;
gspt4:=CROSS(C,MAX(MAK,MAQ)) AND C/REF(C,1)>=(1+0.01*2);
gspt5:=EMA(SLOPE(C,20)*20+C,55);
gspt6:=(3*CLOSE+LOW+OPEN+HIGH)/6;
gspt7:=16*gspt6+15*REF(gspt6,1)+14*REF(gspt6,2)+13*REF(gspt6,3);
gspt8:=gspt7+12*REF(gspt6,4)+11*REF(gspt6,5)+10*REF(gspt6,6)+9*REF(gspt6,7);
gspt9:=gspt8+8*REF(gspt6,8)+7*REF(gspt6,9)+6*REF(gspt6,10)+5*REF(gspt6,11);
gspt10:=(gspt9+4*REF(gspt6,12)+3*REF(gspt6,13)+2*REF(gspt6,14)+REF(gspt6,15))/135;
gspt11:=EMA(C,2)>=gspt5 AND C>MA(CLOSE,31) AND gspt10>=EMA(gspt10,5);
gspt12:=BARSCOUNT(C)+1;
gspt13:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
gspt14:=REF(gspt12,5)<=gspt12*1.0025 AND REF(MAX(MAK,MAQ),5)<=MAX(MAK,MAQ)*1.01;
gspt15:=gspt14 AND 100*(gspt1-gspt2)/gspt2<=5 AND gspt3 AND gspt11 AND MAH>=MAL;
gspt16:=gspt15 AND EXIST(gspt4,10) AND 100*(C-REF(C,1))/REF(C,1)>=4 AND C>=MA(C,gspt13);
gspt17:=REF(MA(VOL,5),1);
gspt18:=C/gspt1<=1.05 OR O/gspt1<=1.05 OR CROSS(C,gspt1);
gspt19:=REF(C,2)<REF(O,2);
gspt20:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(MA(VOL,5),1);
gspt21:=C>O AND C>REF(C,1);
gspt22:=(C-REF(C,1))/REF(C,1)*100>=2;
gspt23:=COUNT(REF(C,3)>REF(C,4),13)>=8;
gspt24:=gspt19 AND gspt20 AND gspt21 AND gspt22 AND VOL/gspt17>2 AND gspt23 AND C>=gspt1 AND gspt18;
gspt25:=REF(C,3)<REF(O,3);
gspt26:=REF(C,2)<REF(O,2);
gspt27:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(MA(VOL,5),1);
gspt28:=C>O AND C>REF(C,1);
gspt29:=(C-REF(C,1))/REF(C,1)*100>=2;
gspt30:=COUNT(REF(C,4)>REF(C,5),14)>=8;
gspt31:=gspt25 AND gspt26 AND gspt27 AND gspt28 AND gspt29 AND VOL/gspt17>2 AND gspt30 AND C>=gspt1 AND gspt18;
gspt32:=REF(C,4)<REF(O,4);
gspt33:=REF(C,3)<REF(O,3);
gspt34:=REF(C,2)<REF(O,2) AND REF(V,2)<REF(MA(VOL,5),2);
gspt35:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(MA(VOL,5),1);
gspt36:=C>O AND C>REF(C,1);
gspt37:=(C-REF(C,1))/REF(C,1)*100>=2;
gspt38:=COUNT(REF(C,5)>REF(C,6),15)>=10;
gspt39:=gspt33 AND gspt32 AND gspt34 AND gspt35 AND gspt36 AND gspt37;
gspt40:=gspt39 AND VOL/gspt17>2 AND gspt38 AND C>=gspt1 AND gspt18;
gspt41:=REF(C,5)<REF(O,5);
gspt42:=REF(C,4)<REF(O,4);
gspt43:=REF(C,3)<REF(O,3);
gspt44:=REF(C,2)<REF(O,2) AND REF(V,2)<REF(MA(VOL,5),2);
gspt45:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(MA(VOL,5),1);
gspt46:=C>O AND C>REF(C,1);
gspt47:=(C-REF(C,1))/REF(C,1)*100>=2;
gspt48:=COUNT(REF(C,6)>REF(C,7),16)>=10;
gspt49:=gspt43 AND gspt42 AND gspt41 AND gspt44 AND gspt45 AND gspt46;
gspt50:=gspt49 AND gspt47 AND VOL/gspt17>2 AND gspt48 AND C>=gspt1 AND gspt18;
gspt51:=gspt24 OR gspt31 OR gspt40 OR gspt50;
gspt52:=BARSLASTCOUNT(C>REF(C,4));
gspt53:=BARSLASTCOUNT(C<REF(C,4));
gspt54:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
gspt55:=SMA(gspt54,3,1)>SMA(SMA(gspt54,3,1),3,1);
gspt56:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
gspt57:=SMA(gspt56,3,1)>SMA(SMA(gspt56,3,1),3,1);
gspt58:=(SMA(MAX(C-REF(C,1),0),5,1))/(SMA(ABS(C-REF(C,1)),5,1))*100;
gspt59:=(SMA(MAX(C-REF(C,1),0),13,1))/(SMA(ABS(C-REF(C,1)),13,1))*100;
gspt60:=EMA(CLOSE,8)-EMA(CLOSE,13)>EMA(EMA(CLOSE,8)-EMA(CLOSE,13),5);
gspt61:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4;
gspt62:=CLOSE-REF(CLOSE,1);
gspt63:=100*EMA(EMA(gspt62,5),3)/EMA(EMA(ABS(gspt62),5),3);
gspt64:=100*EMA(EMA(gspt62,13),8)/EMA(EMA(ABS(gspt62),13),8);
gspt65:=IF(H=L,1,MAX(C,O)-(H+L+C)/3);
gspt66:=IF(H=L,1,MIN(O,C)-L);
gspt67:=IF(H=L,1,(H+L+C)/3-MIN(C,O));
gspt68:=((IF(H=L,1,H-MAX(O,C)))*(VOL/IF(H=L,4,H-L)));
gspt69:=(gspt65*(VOL/IF(H=L,4,H-L)));
gspt70:=(gspt66*(VOL/IF(H=L,4,H-L)));
gspt71:=SMA(SMA((MA(((gspt67*(VOL/IF(H=L,4,H-L)))+gspt70)-(gspt68+gspt69),5)*20),3,1),3,1);
gspt72:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
gspt73:=IF(C>O,gspt72*(H-L),IF(C<O,gspt72*((H-O)+(C-L)),VOL/2));
gspt74:=IF(C>O,0-gspt72*((H-C)+(O-LOW)),IF(C<O,0-gspt72*(H-L),0-VOL/2));
gspt75:=(gspt73-(-gspt74))/V*(V/CAPITAL*100);
gspt76:=SUM(gspt75,6)>MA(SUM(gspt75,6),5);
gspt77:=(2*CLOSE+HIGH+LOW)/4;
gspt78:=EMA(EMA(EMA(gspt77,4),4),4);
gspt79:=(gspt78-REF(gspt78,1))/REF(gspt78,1)*100;
gspt80:=MA(gspt79,1)>MA(gspt79,3);
gspt81:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
gspt82:=SUM(IF(H-REF(H,1)>0 AND H-REF(H,1)>REF(L,1)-LOW,H-REF(H,1),0),14);
gspt83:=SUM(IF(REF(L,1)-L>0 AND REF(L,1)-LOW>H-REF(H,1),REF(L,1)-L,0),14);
gspt84:=(gspt82*100/gspt81)>(gspt83*100/gspt81);
gspt85:=HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1);
gspt86:=gspt55 AND gspt57 AND gspt58>gspt59 AND gspt60 AND C>gspt61;
gspt87:=SMA((MA(((gspt67*(VOL/IF(H=L,4,H-L)))+gspt70)-(gspt68+gspt69),5)*20),3,1);
gspt88:=(gspt86 AND gspt63>gspt64 AND gspt87>gspt71 AND gspt76 AND gspt80 AND gspt84);
gspt89:=gspt88 AND REF(gspt88,1)=0;
gspt90:=IF(gspt89,10.4,DRAWNULL);
gspt91:=IF(CLOSE>=REF(CLOSE,1),gspt85,HIGH-OPEN+CLOSE-LOW);
gspt92:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
gspt93:=VOL*gspt91/(gspt91+gspt92);
gspt94:=EMA(SUM(gspt93,1)-SUM(VOL-gspt93,1),5)*VOL/CAPITAL*100;
gspt95:=SMA(SMA(gspt94,3,1),3,1);
gspt96:=gspt94>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(SMA(gspt94,3,1),gspt95);
gspt97:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
gspt98:=IF(gspt97>EMA(gspt97,9),gspt97,DRAWNULL);
gspt99:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
gspt100:=SUM(IF(CLOSE=REF(CLOSE,1),0,gspt99),0);
gspt101:=gspt98 AND gspt90 AND gspt100>MA(gspt100,30);
gspt102:=gspt98 AND gspt96 AND gspt90 AND gspt100>MA(gspt100,30);
gspt103:=MA(CLOSE*VOL,20);
gspt104:=MA(CLOSE*VOL,60);
gspt105:=1000*(gspt103-REF(gspt103,1))/REF(gspt103,1)*2;
gspt106:=1000*(gspt104-REF(gspt104,1))/REF(gspt104,1)*2;
gspt107:=(gspt105-gspt106)*VOL*CLOSE/MA(REF(VOL*CLOSE,1),5);
gspt108:=EMA((CLOSE-LLV(LOW,200))/LLV(LOW,200),30)*100+200;
gspt109:=C>=REF(C,1)*1.05 AND gspt107>=gspt108/2 AND C>=O;
DRAWTEXT_FIX(C>O,0,0.07,0,'股票指标网'),COLOR222222;
DRAWTEXT(gspt15,L*0.96,'★'),COLOR00FFFF;
DRAWTEXT(gspt15,L*0.945,'潜伏A'),COLORMAGENTA;
STICKLINE(gspt15,H,L,0.1,0),COLORFF8000;
STICKLINE(gspt15,O,C,3,1),LINETHICK2,COLORFF8000;
STICKLINE(gspt16,H,L,0.1,0.1),COLORFF00FF;
STICKLINE(gspt16,C,O,3,0),COLORFF00FF;
DRAWTEXT(gspt51,L*0.93,'★金坑'),COLOR0000FF;
STICKLINE(gspt51,LOW,HIGH,0.0,1),COLOR00FFFF;
STICKLINE(gspt51,CLOSE,OPEN,3,0),COLOR00FFFF;
DRAWTEXT(gspt52=9,H*1.002,'9'),COLORGREEN;
DRAWTEXT(gspt53=9,L*0.998,'9'),COLORGREEN;
MA3:MA(C,60),LINETHICK2,COLORFF00FF;
起爆线:EMA(HHV(CLOSE,10),30),COLORMAGENTA,LINETHICK2;
IF(起爆线<=REF(起爆线,1),起爆线,DRAWNULL),COLORCYAN,LINETHICK2;
gspt110:=(C>起爆线 AND REF(L,1)<起爆线);
gspt618:=FILTER(gspt109 AND (CROSS(C,起爆线) OR gspt110),20);
gspt619:=SUMBARS(gspt618,1);
STICKLINE(gspt618,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(gspt619,REF(CLOSE,gspt619-1),REF(CLOSE,gspt619-1),2,0),COLORYELLOW;
STICKLINE(gspt619,REF(CLOSE,gspt619+1),REF(CLOSE,gspt619+1),2,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.46,LOW-0.65,3.8,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.44,LOW-0.65,3.6,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.42,LOW-0.65,3.4,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.4,LOW-0.65,3.2,0),COLOR444444;
STICKLINE(gspt618,LOW-0.38,LOW-0.65,3,0),COLOR555555;
STICKLINE(gspt618,LOW-0.36,LOW-0.65,2.8,0),COLOR666666;
STICKLINE(gspt618,LOW-0.34,LOW-0.65,2.6,0),COLOR777777;
STICKLINE(gspt618,LOW-0.32,LOW-0.65,2.4,0),COLOR888888;
STICKLINE(gspt618,LOW-0.3,LOW-0.65,2.2,0),COLOR999999;
STICKLINE(gspt618,LOW-0.28,LOW-0.55,2,0),COLOR003300;
STICKLINE(gspt618,LOW-0.26,LOW-0.55,1.8,0),COLOR004400;
STICKLINE(gspt618,LOW-0.24,LOW-0.55,1.6,0),COLOR005500;
STICKLINE(gspt618,LOW-0.22,LOW-0.55,1.4,0),COLOR006600;
STICKLINE(gspt618,LOW-0.2,LOW-0.55,1.2,0),COLOR007700;
STICKLINE(gspt618,LOW-0.18,LOW-0.55,1,0),COLOR008800;
STICKLINE(gspt618,LOW-0.16,LOW-0.55,0.8,0),COLOR009900;
STICKLINE(gspt618,LOW-0.14,LOW-0.55,0.6,0),COLOR00BB00;
STICKLINE(gspt618,LOW-0.12,LOW-0.55,0.4,0),COLOR00DD00;
STICKLINE(gspt618,LOW-0.1,LOW-0.55,0.2,0),COLORRED;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,2,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,1.8,0),COLORCYAN;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,1.6,0),COLOR000055;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,1.4,0),COLOR000066;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,1.2,0),COLOR000077;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,1,0),COLOR000088;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,0.8,0),COLOR000099;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,0.6,0),COLOR0000AA;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,0.4,0),COLOR0000CC;
STICKLINE(gspt618,LOW-0.48,LOW-0.3,0.2,0),COLOR0000EE;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,2,0),COLOR005566;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,1.8,0),COLOR006677;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,1.6,0),COLOR007788;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,1.4,0),COLOR008899;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,1.2,0),COLOR0099AA;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,1,0),COLOR00AABB;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,0.8,0),COLOR00BBCC;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,0.6,0),COLOR00CCDD;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,0.4,0),COLOR00DDEE;
STICKLINE(gspt618,LOW-0.38,LOW-0.3,0.2,0),COLOR00EEFF;
STICKLINE(gspt618,LOW-0.68,LOW-0.75,4,0),COLOR111188;
STICKLINE(gspt618,LOW-0.66,LOW-0.74,3.6,0),COLOR332299;
STICKLINE(gspt618,LOW-0.64,LOW-0.73,3.2,0),COLOR5533AA;
STICKLINE(gspt618,LOW-0.62,LOW-0.72,2.8,0),COLOR8844BB;
STICKLINE(gspt618,LOW-0.6,LOW-0.71,2.4,0),COLORAA55CC;
STICKLINE(gspt618,LOW-0.58,LOW-0.7,2,0),COLORCC66DD;
STICKLINE(gspt618,LOW-0.56,LOW-0.69,1.6,0),COLORYELLOW;
STICKLINE(gspt618,LOW-0.54,LOW-0.68,1.2,0),COLORYELLOW;
STICKLINE(gspt101 AND gspt618,H,L,0.1,0),COLORYELLOW;
STICKLINE(gspt101 AND gspt618,O,C,3,1),LINETHICK2,COLORYELLOW;
DRAWTEXT((gspt101 OR gspt102) AND gspt618,L*0.97,' 共振'),COLORRED;
DRAWICON((gspt101 OR gspt102) AND gspt618,L*0.99,11);