HGW1:=DYNAINFO(4)=0;
HGW2:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
HGW3:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
HGW4:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
HGW5:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
HGW6:=CLOSE>=REF(HHV(HIGH,250),1);
HGW7:=HGW6 AND REF(CLOSE,1)<REF(HHV(HIGH,250),2);
HGW8:=HGW7 AND REF(CLOSE,2)<REF(HHV(HIGH,250),3);
HGW9:=HGW8 AND REF(CLOSE,3)<REF(HHV(HIGH,250),4);
HGW10:=HGW9 AND REF(CLOSE,4)<REF(HHV(HIGH,250),5);
HGW11:=HGW10 AND REF(CLOSE,5)<REF(HHV(HIGH,250),6);
HGW12:=HGW11 AND REF(CLOSE,6)<REF(HHV(HIGH,250),7);
HGW13:=HGW12 AND REF(CLOSE,7)<REF(HHV(HIGH,250),8);
HGW14:=HGW13 AND REF(CLOSE,8)<REF(HHV(HIGH,250),9);
HGW15:=HGW14 AND REF(CLOSE,9)<REF(HHV(HIGH,250),10);
HGW16:=HGW15 AND REF(CLOSE,10)<REF(HHV(HIGH,250),11);
HGW17:=HGW16 AND REF(CLOSE,12)<REF(HHV(HIGH,250),13);
HGW18:=HGW17 AND REF(CLOSE,13)<REF(HHV(HIGH,250),14);
HGW28:=HGW18 AND REF(CLOSE,14)<REF(HHV(HIGH,250),15);
HGW26:=HGW28 AND REF(CLOSE,16)<REF(HHV(HIGH,250),17);
主升浪:HGW26 AND HGW2 AND HGW3 AND HGW4 AND HGW5 AND NOT(HGW1),NODRAW;
DRAWTEXT(主升浪,0.95,' 主升'),COLORYELLOW;
STICKLINE(主升浪,0,1,2,0),COLORFFFF00;