GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP2:=SMA(SMA(GUP1,3,1),3,1)/28.57;
GUP3:=EMA(GUP2,5);
GUP4:=3*GUP2-2*GUP3;
GUP5:=CROSS(GUP4,GUP2) AND GUP2<2.1 AND CLOSE>OPEN;
STICKLINE(GUP5,82,0,0.005,0),colorred;
DRAWICON(GUP5>0,85,13),coloryellow;
GUP6:=CROSS(GUP4,GUP2) AND GUP2<2.1 AND CLOSE>OPEN;
GUP7:=(2*CLOSE+HIGH+LOW)/4;
GUP8:=LLV(LOW,13);
GUP9:=HHV(HIGH,13);
GUP10:=EMA((GUP7-GUP8)/(GUP9-GUP8)*100,13);
GUP11:=EMA(0.667*REF(GUP10,1)+0.333*GUP10,2);
STICKLINE(GUP10>GUP11,GUP10,GUP11,3,0),COLOR0055AA;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.8,0),COLOR0066BB;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.5,0),COLOR0077CC;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.2,0),COLOR0088DD;
STICKLINE(GUP10>GUP11,GUP10,GUP11,1.7,0),COLOR0099EE;
STICKLINE(GUP10>GUP11,GUP10,GUP11,1.2,0),COLOR00AAFF;
STICKLINE(GUP10>GUP11,GUP10,GUP11,0.7,0),COLOR00CCFF;
STICKLINE(GUP10>GUP11,GUP10,GUP11,0.2,0),coloryellow;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,3,0),COLOR990099;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.8,0),COLOR990088;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.5,0),COLOR990077;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.2,0),COLOR990066;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,1.7,0),COLOR990055;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,1.2,0),COLORBB00BB;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,0.7,0),COLORDD00DD;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,0.2,0),colormagenta;
安全区:20,colorlired;
中位:50,coloryellow;
高位:80,colorliblue;
启动:EMA(0.382*REF(GUP10,2)+0.618*GUP10,6),colorred;
买进:IF(CROSS(4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1),8),58,0),STICK,coloryellow,LINETHICK3;
STICKLINE(买进,50,0,3.5,0),colorgreen;
STICKLINE(买进,50,0,3.4,0),colorgreen;
STICKLINE(买进,50,0,3.1,0),colorgreen;
STICKLINE(买进,50,0,2.8,0),COLOR009900;
STICKLINE(买进,50,0,2.5,0),COLOR009900;
STICKLINE(买进,50,0,2,0),COLOR009900;
STICKLINE(买进,50,0,1.5,0),COLOR00BB00;
STICKLINE(买进,50,0,0.9,0),COLOR00DD00;
STICKLINE(买进,50,0,0.3,0),colorgreen;
STICKLINE(买进,50,0,0.05,0),coloryellow;
DRAWICON(买进>0,60,25),coloryellow;