Hey Robert, I'm hoping you'd be willing to help my with a problem I'm having..I have the following code I use as a trailing stop loss: #ATR Stoploss input Length = 20; input ATRFactor = 3; input AverageType = AverageType.WILDERS; def HiLo = Min(high - low, 1.5 * Average(high - low, Length)); def HRef = if low <= High[1] then high - close[1] else (high - close[1]) - 0.5by BombaFett - Trading Discussion