GSPT1:=EMA(CLOSE,10);
GSPT2:=(GSPT1/LLV(GSPT1,10)-1)*100;
GSPT3:=(-1)*GSPT2;
GSPT4:=100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
GSPT5:=REF(CLOSE,1);
GSPT6:=SMA(MAX(CLOSE-GSPT5,0),9,1)/SMA(Abs(CLOSE-GSPT5),9,1)*100;
GSPT7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GSPT8:=SMA(GSPT7,3,1);
GSPT9:=SMA(GSPT8,3,1);
GSPT10:=3*GSPT8-2*GSPT9;
GSPT11:=GSPT6 >=76 OR GSPT10 > 95;
GSPT12:=GSPT4 < 25;
GSPT13:=GSPT11 OR GSPT12;
GSPT14:=EMA(CLOSE,20);
GSPT15:=EMA(CLOSE,30);
GSPT16:=EMA(CLOSE,35);
GSPT17:=EMA(CLOSE,40);
GSPT18:=EMA(CLOSE,45);
GSPT19:=EMA(CLOSE,90);
GSPT20:=EMA(CLOSE,98);
GSPT21:=EMA(CLOSE,106);
GSPT22:=EMA(CLOSE,114);
GSPT23:=EMA(CLOSE,140);
GSPT24:=EMA(CLOSE,148);
GSPT25:=EMA(CLOSE,156);
GSPT26:=EMA(CLOSE,164);
GSPT27:=MAX(MAX(MAX(GSPT15,GSPT16),GSPT17),GSPT18);
GSPT28:=MIN(MIN(MIN(GSPT15,GSPT16),GSPT17),GSPT18);
GSPT29:=MAX(MAX(MAX(GSPT19,GSPT20),GSPT21),GSPT22);
GSPT30:=MIN(MIN(MIN(GSPT19,GSPT20),GSPT21),GSPT22);
GSPT31:=MAX(MAX(MAX(GSPT23,GSPT24),GSPT25),GSPT26);
GSPT32:=MIN(MIN(MIN(GSPT23,GSPT24),GSPT25),GSPT26);
GSPT33:=MAX(MAX(GSPT27,GSPT29),GSPT31);
GSPT34:=MIN(MIN(GSPT28,GSPT30),GSPT32);
GSPT35:=GSPT33/GSPT34;
GSPT36:=LOW/GSPT27;
GSPT37:=GSPT35 < 1.3 AND REF(GSPT36,1) < 1.05 AND CLOSE > GSPT14 AND CLOSE > GSPT33 AND GSPT36 < 1.08;
GSPT38:=AMOUNT/10000;
GSPT39:=LLV(GSPT38,2) > 2000 AND GSPT38 > 8000;
GSPT40:=CLOSE/REF(CLOSE,1);
GSPT41:=EMA(CLOSE,5);
GSPT42:=EMA(CLOSE,10);
GSPT43:=EMA(CLOSE,20);
GSPT44:=MAX(MAX(GSPT41,GSPT42),GSPT43);
GSPT45:=MIN(MIN(GSPT41,GSPT42),GSPT43);
GSPT46:=LOW < GSPT45 AND CLOSE > GSPT44 AND vol > REF(VOL,1)*1.2 AND GSPT39 AND GSPT40 > 1.029 AND GSPT37;
GSPT47:=(HIGH+LOW+CLOSE)/3;
GSPT48:=(GSPT47-MA(GSPT47,81))*1000/(15*AVEDEV(GSPT47,81));
GSPT49:=crOSS(GSPT48,100) AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT40 > 1.029 AND GSPT37;
GSPT50:=MA(CLOSE,30);
GSPT51:=MA(CLOSE,60);
GSPT52:=MA(CLOSE,90);
GSPT53:=MA(CLOSE,240);
GSPT54:=ABS(GSPT50/GSPT51-1);
GSPT55:=ABS(GSPT51/GSPT52-1);
GSPT56:=ABS(GSPT50/GSPT52-1);
GSPT57:=CLOSE/REF(CLOSE,1);
GSPT58:=GSPT57-1;
GSPT59:=(GSPT50+GSPT51+GSPT52)/3;
GSPT60:=IF(CLOSE > GSPT59*1.04 AND CLOSE < GSPT59*1.15,1,0);
GSPT61:=GSPT53/REF(GSPT53,20);
GSPT62:=ABS(GSPT61-1);
GSPT63:=IF(GSPT62 < 0.04,1,0);
GSPT64:=IF(GSPT54 < 0.04 AND GSPT55 < 0.04 AND GSPT56 < 0.04 AND GSPT58 > 0.04 AND GSPT60=1 AND GSPT63=1 AND GSPT59 > GSPT53,1,0);
GSPT65:=GSPT64 AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT37;
GSPT66:=GSPT35 < 1.15 AND REF(GSPT36,1) < 1.04 AND CLOSE > GSPT14 AND CLOSE > GSPT33 AND GSPT36 < 1.08 AND GSPT40 > 1.04 AND VOL > REF(VOL,1)*1.2 AND GSPT39 AND GSPT37;
GSPT67:=LOW < GSPT34 AND CLOSE > GSPT33 AND GSPT40 > 1.05 AND VOL > REF(VOL,1)*1.2;
GSPT68:=GSPT46 OR GSPT49 OR GSPT65 OR GSPT66 OR GSPT67;
GSPT69:=(GSPT1/LLV(GSPT1,10)-1)*200;
GSPT70:=(GSPT1/LLV(GSPT1,10)-1)*400;
GSPT71:=IF(GSPT68,GSPT2,0);
异动价启动:IF(GSPT68,1,0),NODRAW;
STICKLINE(1,GSPT2*2,GSPT3*2,2,0),COLORGRAY;
STICKLINE(GSPT2*2 > REF(GSPT2*2,1),GSPT2*2,GSPT3*2,2,0),COLOR4080FF;
STICKLINE(GSPT2*2 > 20 AND GSPT2*2 > REF(GSPT2*2,1),GSPT2*2,GSPT3*2,2,0),COLORFF0080;
STICKLINE(GSPT13,GSPT2,GSPT3,2,0),COLORRED;
STICKLINE(NOT(GSPT13) AND GSPT2 > 0,GSPT2,GSPT3,2,1),COLORGREEN;
STICKLINE(GSPT68,GSPT2,GSPT2*4,1,0),COLORYELLOW;
STICKLINE(GSPT68,GSPT3,GSPT3*4,1,0),COLORYELLOW;
NOTEXT1A:IF(GSPT68,GSPT71*6,GSPT71*4),COLORMAGENTA,LINETHICK2;
NOTEXT2A:IF(GSPT68,(-1)*GSPT71*6,(-1)*GSPT71*4),COLORMAGENTA,LINETHICK2;