gspt35:=ABS(LOW-OPEN)< ABS(OPEN-CLOSE) AND CLOSE/REF(CLOSE,1)>1.033 AND REF(CLOSE,1)/REF(CLOSE,2)< 1.093 AND REF(CLOSE,2)/REF(CLOSE,3)< 1.093 AND REF(CLOSE,3)/REF(CLOSE,4)< 1.093 AND REF(CLOSE,4)/REF(CLOSE,5)< 1.093 AND REF(CLOSE,5)/REF(CLOSE,6)< 1.093 AND NOT(CLOSE=OPEN AND CLOSE/REF(CLOSE,1)>1.033);
gspt36:=ABS(LOW-OPEN)< ABS(OPEN-CLOSE) AND CLOSE/REF(CLOSE,1)>1.093 AND REF(CLOSE,1)/REF(CLOSE,2)< 1.093 AND REF(CLOSE,2)/REF(CLOSE,3)< 1.093 AND REF(CLOSE,3)/REF(CLOSE,4)< 1.093 AND REF(CLOSE,4)/REF(CLOSE,5)< 1.093 AND REF(CLOSE,5)/REF(CLOSE,6)< 1.093 AND NOT(CLOSE=OPEN AND CLOSE/REF(CLOSE,1)>1.033);
gspt37:=CLOSE/REF(CLOSE,1)>1.033 AND VOL< REF(VOL,1) AND REF(CLOSE,1)/REF(CLOSE,2)< 1.093 AND COUNT(CLOSE/REF(CLOSE,1)>1.093,20)< 3;
gspt43:=gspt35 OR gspt37 AND COUNT(CLOSE/REF(CLOSE,1)>1.05,10)<=4;
gspt44:=gspt36 OR gspt37 AND COUNT(CLOSE/REF(CLOSE,1)>1.05,10)<=4;
gspt45:=CLOSE-REF(CLOSE,1);
gspt46:=100*EMA(EMA(gspt45,9),9)/EMA(EMA(ABS(gspt45),9),9);
gspt47:=MA(gspt46,5);
gspt48:=gspt46< 0 AND gspt47< 0;
gspt50:=MA(CLOSE,10);
gspt53:=MA(CLOSE,54);
gspt56:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
gspt57:=FILTER(gspt56,10);
gspt58:=BARSLAST(gspt57);
gspt59:=REF(HIGH,gspt58+2);
gspt60:=REF(HIGH,gspt58+1);
gspt61:=REF(HIGH,gspt58);
gspt62:=MAX(gspt59,gspt60);
gspt63:=MAX(gspt62,gspt61);
gspt64:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
gspt65:=gspt58< 150;
gspt66:=(OPEN-gspt63)/gspt63*100< 30;
gspt67:=(CLOSE-LLV(LOW,gspt58))/LLV(LOW,gspt58)*100< 50;
gspt68:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
gspt69:=VOL/MA(VOL,5)< 3.5;
gspt70:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
gspt71:=gspt64 AND gspt65 AND gspt66 AND gspt67 AND gspt68 AND gspt69 AND gspt70;
DRAWTEXT_FIX(1,0.980,20,1,'公式平台,公式源码 http://www.gspt.com'),COLOR333333;
gspt72:=FILTER(gspt71,15);
gspt73:=(CLOSE-gspt53)/gspt53< 0.1;
gspt74:=(CLOSE-gspt50)/gspt50< 0.3;
gspt75:=(gspt73=1 AND gspt74=1)*0.2;
gspt76:=(gspt75=0 AND REF(gspt75,1)=0.2 AND REF(COUNT(gspt75=0.2,10)=10,1)=1)*(-0.1);
gspt77:=gspt76=(-0.1);
gspt78:=gspt72 OR gspt77;
gspt80:=CLOSE/REF(CLOSE,1)>1.033 AND CLOSE/OPEN>1.033;
gspt81:=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);
gspt82:=gspt78 AND CLOSE/REF(CLOSE,1)>1.033 AND gspt81 AND gspt80;
小妖精:gspt48 AND gspt82 AND gspt43,COLORYELLOW LINETHICK2;
老妖婆:gspt48 AND gspt82 AND gspt44,COLORRED LINETHICK3;