GSPT1:=(2*C+H+L)/4;
GSPT2:=LLV(LOW,34);
GSPT3:=REF(CLOSE,1);
GSPT4:=((SMA(MAX((CLOSE-GSPT3),0),7,1)/SMA(ABS((CLOSE-GSPT3)),7,1))*100);
GSPT5:=(FILTER(CROSS(79,GSPT4),4)*190);
GSPT6:=((REF(HIGH,1)+REF(LOW,1))/2);
GSPT7:=(MA(CLOSE,20)+(2*STD(CLOSE,20)));
GSPT8:=(FILTER(CROSS(GSPT6,GSPT7),4)*200);
GSPT9:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25));
GSPT10:=((4*SMA((GSPT9*100),5,1))-(3*SMA(SMA(((GSPT9)*100),5,1),3,1)));
GSPT11:=IFF(CROSS(GSPT10,8),2,0);
GSPT12:=HHV(HIGH,34);
GSPT13:=EMA((GSPT1-GSPT2)/(GSPT12-GSPT2)*100,8);
GSPT14:=EMA(GSPT13,5);
GSPT18:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GSPT19:=SMA(GSPT18,3,1);
STICKLINE(GSPT11>0,0,50,2,0),COLORRED;
STICKLINE(GSPT13-GSPT14>0,GSPT13,GSPT14,0.5,1),COLORRED;
STICKLINE(GSPT13-GSPT14<0,GSPT13,GSPT14,0.5,0),COLOR00FF00;
50,LINETHICK2, COLORWHITE;{,公式源码 }
STICKLINE(GSPT13>0 AND GSPT13-GSPT14<0,49,51,1,0),COLORYELLOW;
K:SMA(GSPT19,3,1),LINETHICK2,COLORRED;
D:SMA(K,2,1),LINETHICK2,COLORGREEN;
危险:80,LINETHICK1,COLORMAGENTA;
疯狂:90,LINETHICK2,COLORRED;
伏击:19,LINETHICK1,COLORGREEN;
STICKLINE(GSPT5,100,80,4,0),COLORFFFF00;
STICKLINE(GSPT8,100,90,8,0),COLORFF00FF;
DRAWTEXT(GSPT5,80,'顶1'),COLORGREEN;
DRAWTEXT(GSPT8,100,'顶2');