A:=NDAY(C,O,2) AND C REF(C,1);
阳:=A AND HHV(H,2)=HHV(H,4) AND LLV(L,2)=LLV(L,4);
收阳:=阳 AND REFX(阳,1)
高1:=HHV(H,2)*收阳;
低1:=LLV(L,2)*收阳;
测距:=BARSNEXT(收阳)+1,NODRAW;
高2:=REFX(高1,测距-1);
低2:=REFX(低1,测距-1);
高值:=IF(H =高2,高2,DRAWNULL),NODRAW;
低值:=IF(L =低2,低2,DRAWNULL),NODRAW;
有效:=(H =高1 AND L =低1) OR ( L =低值 AND H =高值) ,NODRAW;
距:=BARSNEXT(收阳=1)+1,NODRAW;
A2:=有效 AND 距;
距今:=BARSNEXT(收阳 OR 有效 AND REFX(有效!=1,1))+1,NODRAW;
A3:=距今=距,NODRAW;
AW1:=A3+A2=2;
AW2:=AW1 AND (收阳 OR REFX(AW1,1) OR REF(AW1,1));
STICKLINE(AW2,高值,低值,3.5,0),COLORLIGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);