as nonlinear already has written:
it is in JBookTrader.java

here it is located in the main() function:
       if (channel.tryLock() == null) {
                MessageDialog.showMessage(APP_NAME + " is already
running.");
                return;
       }

simply comment this code out and JBT can run multiple times.

On Jun 17, 11:55 pm, khalid wardak <[email protected]> wrote:
> Non-linear, I agree. I guess we can drop this discussion. how about
> elaborating on this:
>
> Yes, this is certainly possible. JBT has a mechanism to prevent from
> launching more than one instance of itself, but it's straightforward
> to override this mechanism. This will enable you to run two instances
> of JBT, each connecting to two different ports opened in TWS. Some
> people have already tried it, and I know this works.
>
> Is this somewhere in the preferenceholder or dispatcher classes.
>
> On Thu, Jun 17, 2010 at 2:31 PM, nonlinear5 <[email protected]>wrote:
>
>
>
> > > How am I to manage let's say two trades that will automatically cancel
> > each
> > > other if executed
> > > on a live contract. (let's sat  stop sell order ECZ10) followed by a stop
> > > buy order ECZ10 yet for
> > > some reason wanted to keep separate.
>
> > Well, we are going in circles. As I had tried to explain, having no
> > position in ECZ10 is exactly equivalent to being long ECZ10 in one
> > account and being short ECZ10 in the other account. Thus, you don't
> > gain anything by keeping these positions separately in two different
> > accounts.
>
> > --
> > 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]<jbooktrader%[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