GSPT1:=DYNAINFO(4)=0;
GSPT2:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
GSPT3:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
GSPT4:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
GSPT5:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
GSPT6:=CLOSE>=REF(HHV(HIGH,250),1);
GSPT7:=GSPT6 AND REF(CLOSE,1)<REF(HHV(HIGH,250),2);
GSPT8:=GSPT7 AND REF(CLOSE,2)<REF(HHV(HIGH,250),3);
GSPT9:=GSPT8 AND REF(CLOSE,3)<REF(HHV(HIGH,250),4);
GSPT10:=GSPT9 AND REF(CLOSE,4)<REF(HHV(HIGH,250),5);
GSPT11:=GSPT10 AND REF(CLOSE,5)<REF(HHV(HIGH,250),6);
GSPT12:=GSPT11 AND REF(CLOSE,6)<REF(HHV(HIGH,250),7);
GSPT13:=GSPT12 AND REF(CLOSE,7)<REF(HHV(HIGH,250),8);
GSPT14:=GSPT13 AND REF(CLOSE,8)<REF(HHV(HIGH,250),9);
GSPT15:=GSPT14 AND REF(CLOSE,9)<REF(HHV(HIGH,250),10);
GSPT16:=GSPT15 AND REF(CLOSE,10)<REF(HHV(HIGH,250),11);
GSPT17:=GSPT16 AND REF(CLOSE,12)<REF(HHV(HIGH,250),13);
GSPT18:=GSPT17 AND REF(CLOSE,13)<REF(HHV(HIGH,250),14);
GSPT28:=GSPT18 AND REF(CLOSE,14)<REF(HHV(HIGH,250),15);
GSPT26:=GSPT28 AND REF(CLOSE,16)<REF(HHV(HIGH,250),17);
主升浪:GSPT26 AND GSPT2 AND GSPT3 AND GSPT4 AND GSPT5 AND NOT(GSPT1),NODRAW;
DRAWTEXT(主升浪,0.95,' 主升'),COLORYELLOW;
STICKLINE(主升浪,0,1,2,0),COLORFFFF00;