kmcintyre![]() Legend ![]() ![]() ![]() ![]() Posts: 410 Joined: 8/30/2007 Location: Valley Center, CA ![]() | I think I'm saying the same thing in all my posts LLV(2) returned the lowest low from L[0], L[1], and L[2]. This is absolutely not what I expected, but a PlotPrice() of the value returned from LLv(2) visually confirmed that result. I had to use LLV(1) to get the lowest low value between the current bar (L[0] if you will) and L[1]. Here's the code I am using... #stop ' implements Steve Primo's Strategy #4 stop loss #Param "Cushion", 0.10 ' 10 cents below LLV(1) or above HHV(1) Dim sLevel as Single if Signal = LongSignal then if sLevel = 0 then ' first call - uninitialized sLevel = LLV(1) - Cushion end if if L <= sLevel then Signal = ExitSignal end if else if Signal = ShortSignal then if sLevel = 0 then ' first call - uninitialized sLevel = HHV(1) + Cushion end if if H >= sLevel then Signal = ExitSignal end if end if PlotPrice("Primo4SL", sLevel, Black, 1 ) |