PureBytes Links
Trading Reference Links
|
In-Reply-To: <200109041707.f84H78518251@xxxxxxxxxxxxxxx>
Seems a bit loopy. Can't it work out the entry price *after* the buy bar
but before the next one?
So is there any way to buy at the close and then get out on a stop or some
condition interbar on the following bar...? I can't believe this is an
unreasonable - or rare - requirement.
Cheers,
Ian
> > Even this doesn't work:
> > if blah blah blah... then buy this bar at close;
> > exitlong at entryprice-1 stop:
> > It's still completely ignoring the first bar after the buy.
>
> EntryPrice isn't set until the bar after the buy -- so it probably
> has a value of 0 on the bar when you enter. So you buy on bar 1,
> your entry price is X, but the exitlong price is -1. On bar 2
> EntryPrice is X, you issue the exitlong at X-1, and it takes effect
> on bar 3.
>
> Gary
>
|