Diamondjag![]() Legend ![]() ![]() ![]() ![]() Posts: 404 Joined: 3/12/2006 Location: Brighton, Colorado ![]() | Jim, I really appreciate the response. I put in the code and get one error. Tried all kinds of things but can't straighten it out. Simple, I'm sure but my coding skill is pretty far down the scale. myLevel = EntryPrice-1.67*ATR(5) elseif Signal = ShortSignal then myLevel = EntryPrice+1.67*ATR(5) If Signal = LongSignal and C < myLevel then Signal = ExitSignal elseif Signal = ShortSignal and C > myLevel then Signal = ExitSignal end if Line: 13; 'ElseIf' must be preceded by a matching 'If' or 'ElseIf'. |