DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);
GUP1:=((LLV(LOW,5) = LLV(LOW,45)) AND (CLOSE >= (OPEN * 1.04)));
GUP2:=(CLOSE>((REF(HIGH,1)+REF(LOW,1)) / 2));
GUP3:=REF(CLOSE,1);
GUP4:=((SMA(MAX((CLOSE-GUP3),0),6,1) / SMA(ABS((CLOSE-GUP3)),6,1)) * 100);
GUP5:=MAX(GUP4,5);
GUP6:=MAX(GUP5,10);
GUP7:=MAX(GUP6,20);
GUP8:=MAX(GUP7,30);
GUP9:=MAX(GUP8,60);
GUP10:=MAX(GUP9,90);
大底:GUP5<GUP6 AND GUP4<5,STICK,COLORRED,LINETHICK2;
DRAWTEXT(大底,10,'大'),COLORRED;DRAWTEXT(大底,5,'底'),COLORRED;
中底:GUP6<GUP7 AND GUP4<20 AND GUP4>10,STICK,COLORYELLOW,LINETHICK2;
DRAWTEXT(中底,20,'中'),COLORYELLOW;DRAWTEXT(中底,10,'底'),COLORYELLOW;
小底:GUP7<GUP8 AND GUP4<30 AND GUP4>20,STICK,COLORYELLOW,LINETHICK2;
DRAWTEXT(小底,30,'小'),COLORYELLOW;DRAWTEXT(小底,20,'底'),COLORYELLOW;
IF((GUP4=GUP5),GUP5,DRAWNULL),COLORGREEN,LINETHICK2;
IF((GUP4=GUP6),GUP6,DRAWNULL),COLORWHITE,LINETHICK2;
IF((GUP4=GUP7),GUP7,DRAWNULL),COLORYELLOW,LINETHICK2;
IF((GUP4=GUP8),GUP7,DRAWNULL),COLORRED,LINETHICK2;
IF((GUP4=GUP9),GUP9,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF((GUP4=GUP10),GUP10,DRAWNULL),COLORBLUE,LINETHICK2;
TT:=GUP4-REF(GUP4,1);粘合:(CROSS(GUP4,60) AND TT>15 AND GUP9>60)*30,LINETHICK2,COLORGREEN;
险:=CROSS(GUP4,90);STICKLINE(险,险,30,0.5,0),COLORFFCC00;DRAWTEXT(险,35,'险'),COLORFFCC00;
顶:=GUP8<90 AND GUP10<REF(GUP10,1);
STICKLINE(顶,顶,30,0.5,0),COLORFFCC00;DRAWTEXT(顶,35,'清仓'),COLORFFCC00;