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

Re: Exit Question



PureBytes Links

Trading Reference Links

At 11:13 AM 12/04/2002, Vince Batla wrote:
>Is it possible to code an exit at the high or low of the bar preceding
>the entry bar?
>
>Thanks

Easy enough, if you have a decent idea of where you're going to get filled, like on the close.

If the previous H is > than the anticipated entry price:
ExitLong at H[1] limit;

If it's lower, then 
ExitLong at H[1] stop;

Put this order into effect before the entry, and it'll be active on the first bar of the trade, even though you're not already in a trade.

HTH

Mike Gossland