N:=0.92;{N:=0.9就是比最高收盘价跌10个 点,跌5个点就是N:=0.95}
VAR4:=PEAKBARS(3,15,1)
VAR5:=IF(VAR4=1,2,0);
顶:= IF(VAR5=2,2,0);
中线卖出:=IF(顶 REF(顶,1),1,0);
止损价:=IF(中线卖出=1, C*N,0), POINTDOT,COLOR00FF00,LINETHICK5;
STICKLINE(止损价,C*N,C*N,200,1),COLORRED,LINETHICK1;{画线};