VAR1:=DYNAINFO(4)=0;
VAR2:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
VAR3:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
VAR4:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
VAR5:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
VAR6:=CLOSE>=REF(HHV(HIGH,250),1);
VAR7:=VAR6 AND REF(CLOSE,1)<REF(HHV(HIGH,250),2);
VAR8:=VAR7 AND REF(CLOSE,2)<REF(HHV(HIGH,250),3);
VAR9:=VAR8 AND REF(CLOSE,3)<REF(HHV(HIGH,250),4);
VAR10:=VAR9 AND REF(CLOSE,4)<REF(HHV(HIGH,250),5);
VAR11:=VAR10 AND REF(CLOSE,5)<REF(HHV(HIGH,250),6);
VAR12:=VAR11 AND REF(CLOSE,6)<REF(HHV(HIGH,250),7);
VAR13:=VAR12 AND REF(CLOSE,7)<REF(HHV(HIGH,250),8);
VAR14:=VAR13 AND REF(CLOSE,8)<REF(HHV(HIGH,250),9);
VAR15:=VAR14 AND REF(CLOSE,9)<REF(HHV(HIGH,250),10);
VAR16:=VAR15 AND REF(CLOSE,10)<REF(HHV(HIGH,250),11);
VAR17:=VAR16 AND REF(CLOSE,12)<REF(HHV(HIGH,250),13);
VAR18:=VAR17 AND REF(CLOSE,13)<REF(HHV(HIGH,250),14);
VAR28:=VAR18 AND REF(CLOSE,14)<REF(HHV(HIGH,250),15);
VAR26:=VAR28 AND REF(CLOSE,16)<REF(HHV(HIGH,250),17);
主升浪:VAR26 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND NOT(VAR1),NODRAW;
DRAWTEXT(主升浪,0.95,' 主升'),COLORYELLOW;
STICKLINE(主升浪,0,1,2,0),COLORFFFF00;