PureBytes Links
Trading Reference Links
|
Nigel:
>I'm trying to place a limit order on the next bar based on the high of
>the current bar. i.e.: The current bar is forming and, when done, I
>want to have a limit order set on the next bar based on the just formed
>bar's high.
>Buy ("Buy_1_Lmt") next bar at High Limit ;
>None worked - in both cases, the purchase occurred at the open of the
>next bar.
Well of course. The next bar will almost always open lower than
the previous high, except during runaway uptrends. Did your next
bar open lower than the previous high? If so, your order will get
filled. "Limit" means "Limit or better" which means a buy order
will get filled at your limit price or lower, whichever comes first.
Perhaps you want to use a stop order instead? If you place a buy
stop order at the current bar's high, you won't get filled until the
next bar hits or exceeds the previous bar's high.
--
,|___ Alex Matulich -- alex@xxxxxxxxxxxxxx
// +__> Director of Research and Development
// \
// __) Unicorn Research Corporation -- http://unicorn.us.com
|