SR1:=REF(HIGH,4)=HHV(HIGH,2*5+1);
SR2:=FILTER(SR1,6);
SR3:=BACKSET(SR2,4+1);
HD:=FILTER(SR3,4);
前高:=REF(H,BARSLAST(HD));
LC:=REF(CLOSE,1);
方向线:=((SMA(MAX((CLOSE - LC),0),4,1) / SMA(ABS((CLOSE - LC)),4,1))
* 100);
选股:CROSS(C,前高) AND 方向线>75 OR 方向线=75,COLORCYAN,LINETHICK3;