GSPT1:=20;
GSPT2:=7;
GSPT3:=69;
GSPT4:=EMA(CLOSE,8);
GSPT5:=EMA(GSPT4,13);
GSPT6:=EMA(GSPT5,62);
GSPT7:=(CLOSE+HIGH+LOW)/(3);
GSPT8:=(EMA(GSPT7,10));
GSPT9:=(REF(GSPT8,1));
GSPT10:=((REF(HIGH,1)+REF(LOW,1))/(2));
GSPT11:=MA(CLOSE,GSPT1)+((2)*(STD(CLOSE,GSPT1)));
GSPT12:=REF(CLOSE,1);
GSPT13:=((SMA(MAX(CLOSE-GSPT12,0),GSPT2,1))/(SMA(ABS(CLOSE-GSPT12),GSPT2,1)))*(100);
GSPT14:=CROSS(GSPT3,GSPT13);
GSPT15:=(FILTER(GSPT14,4));
GSPT16:=((2)*(CLOSE)+HIGH+LOW)/(4);
GSPT17:=(EMA(((GSPT16-GSPT6)/(GSPT10-GSPT6))*(100),7));
GSPT18:=MA(C,20)>REF(MA(C,20),1) AND MA(C,90)>REF(MA(C,90),1) AND MA(C,7)>REF(MA(C,7),1);
GSPT19:=COUNT((CLOSE<REF(CLOSE,1)),8);
GSPT20:=(VOL>=(1.5)*(MA(VOL,5)));
GSPT21:=(REF(LOW,1)=LLV(LOW,120));
GSPT22:=COUNT((CLOSE<REF(CLOSE,1)),13);
GSPT23:=(REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3);
GSPT24:=REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1));
GSPT66:=(EMA((0.667)*(REF(GSPT17,1))+(0.333)*(GSPT17),5));
GSPT69:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));
MA7:MA(CLOSE,7),COLORWHITE;
MA20:MA(CLOSE,20),COLORFF00FF;
MA90:MA(CLOSE,90),COLORFFCC66;
STICKLINE((GSPT8>GSPT9),GSPT8,GSPT9,4,0),COLOR00FFFF;
STICKLINE((GSPT8<GSPT9),GSPT8,GSPT9,4,0),COLORFF0000;
DRAWTEXT(CROSS(GSPT8,GSPT9) AND GSPT18,(GSPT8)*(0.98),'★'),COLOR00FFFF;
DRAWTEXT(CROSS(GSPT10,GSPT11),(HIGH)*(1.04),'↓中卖'),COLOR008000;
DRAWTEXT(GSPT15,(HIGH)*(1.04),'↓短卖'),COLORFFFFFF;
DRAWTEXT(IF(((GSPT19)/(8)>0.6) AND GSPT20 AND COUNT((GSPT17>=GSPT66),3) AND GSPT21,1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((GSPT22)/(13)>0.6) AND COUNT((GSPT17>GSPT66),6) AND GSPT23 AND GSPT24,1,0),LOW,'●买进'),COLOR00FFFF;
DRAWTEXT(IF((C<GSPT69) AND ((V)/(240)>(MA(V,5))/(240)) AND (C>(REF(C,1))*(1.08)) AND (C<(MA(C,13))*(1.3)),1,0),L,'●抄底'),COLOR0000FF;