Use some conditional statements to try and trap the open price from your
strategy, then store it and do the appropriate math to do a percentage based
calculation.

Also be sure to handle the case where you don't get any messages on the
instant of the market open  (so look for a transition in time from before
the market open, until after it, and maybe cancel trading for the day if you
don't get an update close enough to market open).  There is always the
chance that there is a hiccup in the data feed from either the exchange or
IB or your internet provider.

On Mon, Apr 25, 2011 at 7:24 PM, jbkr23 <[email protected]> wrote:

> is it possible to have long and short entry points as a percentage
> increase from the open price (that's updated daily utilizing a call to
> IB with the tickPrice(14)) rather than a fixed number? a bit rusty
> with my java so figured i'd ask here.
>
> --
> You received this message because you are subscribed to the Google Groups
> "JBookTrader" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jbooktrader?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en.

Reply via email to