gsptZS:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
gsptN4:=COUNT(gsptZS,2)=1 AND gsptZS;
gsptVG := 58;
gsptLL:=VOL/700000000;
gsptY1 := CLOSE;
gsptFU:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
gsptA6 := CLOSE;
gsptI1:=2.5*MAX(gsptLL,gsptFU);
gsptE6 := MA(VOL, 10);
gsptP7:=DMA(CLOSE,gsptI1);
gsptOK := CLOSE;
ZAB_RXW := SUM(VOL, 24);
gspt5C := MA(VOL, 4);
gspt63:=SMA(20*(gsptP7/REF(gsptP7,1)-1),2,1);
gspt2M := MA(VOL, 1);
gsptFV:=EMA(gspt63,2);
gspt5I := 67;
gsptTU:=CLOSE>=REF(CLOSE,1);
gspt8T := REF(HIGH, 3);
gspt7H:=IF(gspt63>0.3 AND gsptFV>=0.005 AND gsptTU,1,0);
gspt21 := CLOSE;
gsptUR:=CROSS(gspt7H,0.5) AND COUNT(gspt7H>0.5,10)=1;
gsptU4 := 56;
gsptJY:=KDJ.J-REF(KDJ.J,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND MACD.MACD>0 AND MACD.DEA>0;
gsptFJ := OPEN - LOW;
gsptZF:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
gsptNY := OPEN - LOW;
gsptIG:=FILTER(gsptZF,28)*100 AND LOW>REF(CLOSE,1)*0.93;
gsptV7 := CLOSE;
gsptMP:=gsptJY OR gsptIG AND gsptUR;
gspt2C := REF(HIGH, 3);
ZAB_XUW := (HIGH - LOW) / CLOSE * 100;
ZAB_FV9 := SUM(VOL, 24);
gsptG8:=CLOSE/REF(CLOSE,1)>1+0.01*9;
gsptTD:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*9,10);
gsptUN:=CLOSE/REF(CLOSE,1)>1+0.01*9;
gspt0T:=IF(gsptG8+gsptTD+gsptUN=3,1,0);
gsptEX:=(HIGH-CLOSE)/(CLOSE-OPEN)< 0.33;
gsptKY:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND (OPEN-LOW)/(CLOSE-OPEN)>=1.48 AND LOW< REF(LOW,1) AND LOW< REF(LOW,2);
gsptB8:=CLOSE/REF(CLOSE,1)-1>=0.08;
gsptWL:=VOL>REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1>=0.049 AND gsptEX;
DRAWTEXT_FIX(1,0.980,20,1,'公式平台,公式源码 http://www.gspt.com'),COLOR333333;
gsptY2:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1) AND VOL>REF(VOL,1)*2.5 AND gsptEX;
gspt4W:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5);
gspt5D:=IF(FILTER(gsptWL OR gsptY2 OR gsptKY OR gsptB8 AND gspt4W>CLOSE,34),1,0) AND gspt0T;
gspt3N:=gsptMP OR gspt5D;
gsptE9:=gspt3N-gspt3N*0.14 AND gsptN4;
gspt5H:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=0.93 AND H=C;
gsptGI:=BARSLAST(gsptE9);
gsptFR:gsptGI AND gspt5H AND gsptGI<=1;