Hi Graham,,, could you check this please,,,
applystop(0,2,ref(l,-2)+(ref)l,-1)-ref(l,-2))*0.5,1,False,0); sell=barsSince(buy)==3; back to thinking i've made a mistake with my applystop function ,,,,can you see any mistake there please. looking for applystop function,,,to be max stop loss,,,on points,,,calc=the difference of the lows,,,exit-on-stop,,no volatility ie fixed stop,,,no re-entry requirement, regards Paul