GSPT27:=GSPT20 AND GSPT21 AND GSPT22 AND GSPT23 AND GSPT24 AND GSPT25 AND GSPT26;
GSPT28:=FILTER(GSPT27,15);
GSPT29:=(CLOSE-GSPT11)/GSPT11<0.1;
GSPT30:=(CLOSE-GSPT10)/GSPT10<0.3;
GSPT31:=(GSPT29=1 AND GSPT30=1)*0.2;
GSPT32:=(GSPT31=0 AND REF(GSPT31,1)=0.2 AND REF(COUNT(GSPT31=0.2,10)=10,1)=1)*(-0.1);
GSPT33:=GSPT32=(-0.1);
GSPT34:=GSPT28 OR GSPT33;
GSPT35:=DYNAINFO(7)/REF(CLOSE,1)>1.05 AND DYNAINFO(7)/OPEN>1.05;
GSPT36:=VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
GSPT37:=GSPT34 AND CLOSE/REF(CLOSE,1)>1.099 AND GSPT36 AND GSPT35;
GSPT38:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);
GSPT39:=DYNAINFO(4)>0 AND HHV(HIGH,8)/LLV(LOW,8)<2 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15)) AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,120);
GSPT40:=MAX(GSPT8,GSPT9);
GSPT41:=CLOSE>GSPT40 AND GSPT38 AND (CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07);
GSPT42:=GSPT2+GSPT2>GSPT1;
GSPT43:=CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07 AND GSPT39 AND GSPT42;
GSPT49:=CLOSE>GSPT47 AND LOW<GSPT48 AND (CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.09);
GSPT50:=FILTER(GSPT49>0,0)=1;
GSPT51:=MA(REF(HHV(CLOSE,26),1),2);
GSPT52:=POW(CLOSE-GSPT4,2);
GSPT53:=MA(GSPT52,13);
GSPT54:=SQRT(GSPT53);
GSPT55:=GSPT4+2*GSPT54;
GSPT56:=CROSS(CLOSE,GSPT51) AND HIGH>REF(GSPT55,1) OR (CLOSE>GSPT51 AND CROSS(CLOSE,REF(GSPT55,1))) AND CLOSE/OPEN>0.998;
GSPT57:=MACD.MACD;
GSPT58:=KD.K;
GSPT59:=KD.D;
GSPT60:=RSI.RSI1;
GSPT61:=RSI.RSI3;
GSPT62:=CLOSE-REF(CLOSE,1);
GSPT63:=IF(GSPT62>=0,GSPT62,0);
GSPT64:=IF(GSPT62<0,-GSPT62,0);
GSPT65:=MEMA(GSPT63,10);
GSPT66:=MEMA(GSPT64,10);
GSPT67:=MEMA(GSPT63,6);
GSPT68:=MEMA(GSPT64,6);
GSPT69:=MA(100*GSPT65/(GSPT65+GSPT66),10);
GSPT70:=MA(100*GSPT67/(GSPT67+GSPT68),6);
GSPT71:=MA(CLOSE,5)/MA(CLOSE,10)>0.999 AND MA(CLOSE,10)/MA(CLOSE,20)>0.9847 AND MA(CLOSE,20)>MA(CLOSE,60) AND REF(COUNT(MA(CLOSE,10)/MA(CLOSE,20)<1.017 OR MA(CLOSE,5)/MA(CLOSE,10)<1.017,8)>=1,1) AND MA(CLOSE,20)/MA(CLOSE,60)<1.121;
GSPT72:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100;
GSPT73:=COUNT(GSPT72<35,100)>=95;
GSPT74:=GSPT56 AND GSPT71>0 AND NOT(DYNAINFO(4)=0) AND GSPT73 AND REF(COUNT(MA(CLOSE,20)>MA(CLOSE,30),4)=4 AND COUNT(CLOSE>MA(CLOSE,5),3)>=2,1) AND VOL>REF(VOL,1) AND (REF(COUNT(CLOSE>OPEN,10)>=6 OR COUNT(CLOSE>OPEN,5)>=4,1) OR CLOSE=HIGH) AND (CROSS(GSPT70,GSPT69) OR CROSS(GSPT57,0) OR REF(COUNT(CROSS(GSPT57,0),3)=1 AND GSPT57<0.15 AND CLOSE/OPEN>0.989 AND CLOSE/REF(CLOSE,1)<1.03,1) OR CROSS(GSPT58,GSPT59) OR CROSS(GSPT60,GSPT61)) AND REF(CLOSE/OPEN>0.988 AND (CLOSE>OPEN OR (CLOSE<=OPEN AND HIGH/LOW<1.049)),1) AND HIGH/CLOSE<1.013 AND CLOSE/OPEN>1.05;
GSPT75:=GSPT41+GSPT43+GSPT45+GSPT50+GSPT74>=2;
GSPT76:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1);
GSPT77:=CLOSE>REF(CLOSE,1)*1.1-0.01;
GSPT78:=HHV(HIGH,20)=HHV(CLOSE,1) AND VOL>0 AND BARSCOUNT(CLOSE)>=20;
GSPT79:=VOL/REF(VOL,1)>1.9;
GSPT80:=GSPT76 AND GSPT77 AND GSPT78 AND GSPT79;
GSPT81:=CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND CLOSE/LLV(CLOSE,10)<1.4;