Apply stop function

Continuing the discussion from How to plot trailing stop, was: ApplyStop() function: