Forum

Idea for trailing stop

Can someone code a trailing stop indicator in the style of the parabolic SAR. Modifying the existing code of the parabolic may be a shortcut to getting the idea working. So, if the condition is "long", then we want the stop moved to the midpoint of the lows of the two previous bars. the psuedo