GSPT1:=EMA(C,6)-EMA(CLOSE,12);
GSPT2:=EMA(GSPT1,5);
GSPT3:=GSPT1-GSPT2;
GSPT4:=ABS(CLOSE-OPEN);
GSPT5:=VOL/((H-L)*2-GSPT4);
GSPT6:=IF(C>OPEN,GSPT5*(H-LOW),IF(C<OPEN,GSPT5*(H-O+(C-LOW)),VOL/2))+IF(C>OPEN,0-GSPT5*(H-C+(O-L)),IF(C<O,0-GSPT5*(H-L),0-VOL/2));
GSPT7:=GSPT6/20/1.15;
GSPT8:=EMA(GSPT7*0.55+REF(GSPT7,1)*0.33+REF(GSPT7,2)*0.22,3);
GSPT9:=100-3*SMA((CLOSE-LLV(L,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GSPT10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
GSPT11:=GSPT9<REF(GSPT10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
GSPT12:=(HIGH+LOW+C)/3;
GSPT13:=(GSPT12-MA(GSPT12,14))/(0.015*AVEDEV(GSPT12,14));
GSPT14:=(GSPT12-MA(GSPT12,70))/(0.015*AVEDEV(GSPT12,70));
GSPT15:=IF(GSPT13>=150 AND GSPT13<200 AND GSPT14>=150 AND GSPT14<200,10,0);
GSPT16:=IF(GSPT13<=-150 AND GSPT13>-200 AND GSPT14<=-150 AND GSPT14>-200,-10,GSPT15);
GSPT17:=(C-MA(C,13))/MA(C,13)*100;
GSPT18:=100-ABS(GSPT17);
GSPT19:=IF(GSPT18<90,GSPT18,100);
GSPT20:=IF(MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20>0,MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20,0);
GSPT21:=IF(GSPT14>=200 AND GSPT13>=150,15,IF(GSPT14<=-200 AND GSPT13<=-150,-15,GSPT16))+60;
GSPT22:=GSPT20>48 AND GSPT21>60 AND GSPT19<100;
DRAWTEXT(GSPT11 AND COUNT(GSPT11,30)=1,0.65,' ↙※主力建仓