[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why the need for convoluted stop loss expression?



PureBytes Links

Trading Reference Links

Actually adding "If marketposition = 1/-1" to the exit statement made the
simpler version work.  I'm not sure why this was neccesary since it already
specifies to exitLONG or exitSHORT, but anyway...

It's good because the other more convoluted version was not quite precise
anyhow.

David


> Please pardon my ignorance.  I am wondering why I needed to express this
> stop loss in such a convoluted way to get it to work.  This is what works
> (RefHigh is a breakout variable):
>
> If MarketPosition = 1 and
>      C < EntryPrice(0)
>      then ExitLong at RefHigh[BarsSinceEntry(0)] - (AvgTrueRange(30) *
2.5)
> Stop;
>
> When I can't see why this simpler version doesn't work:
>
> ExitLong at EntryPrice(0) - (AvgTrueRange(30) * 2.5) Stop;