Search the web
Sign In
New User? Sign Up
amibroker · AmiBroker User's List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
IB Controller and multiple IB accounts   Message List  
Reply | Forward Message #132240 of 143735 |
Re: [amibroker] IB Controller and multiple IB accounts

Use any port number .. they are arbitrary .. I am sure there are restrictions ... just make them similar .. 7490, 7491 ... or whatever they are ... etc
----- Original Message -----
From: ges x
Sent: Friday, November 21, 2008 1:28 AM
Subject: Re: [amibroker] IB Controller and multiple IB accounts

Thanks Ara,

Does it matter what port number you use?

ges

On Thu, Nov 20, 2008 at 10:02 PM, Ara Kaloustian <ara1@...> wrote:

Change the port number in TWS to agree with ibc ... so that will be the only communication path.
 
A second TWS can have a different port number, so you're sure it will not comunicate with ibc
 
----- Original Message -----
From: ges x
Sent: Thursday, November 20, 2008 8:31 PM
Subject: Re: [amibroker] IB Controller and multiple IB accounts

Thanks Ara,

No, it does not seem to connect to both and that is good.  As far as I can tell, it connects to the first TWS that is loaded.

But is there some other way to control which TWS the AB trades are routed to?

ges

On Thu, Nov 20, 2008 at 6:50 PM, Ara Kaloustian <ara1@...> wrote:

ges,
 
icb should not connect to both... if for some reason it does, things can get to be very confusing ... very fast
----- Original Message -----
From: ges x
Sent: Thursday, November 20, 2008 3:53 PM
Subject: Re: [amibroker] IB Controller and multiple IB accounts

Thanks Ara for the pointer.

I can see that both TWS IB accounts that I have open have the port set to 7496 and the IB Controller is set to 7496.  But when I send an order from IBC, it just goes to the first TWS that was opened.

I'll do some more experimenting and see if I can figure it out.

ges

On Thu, Nov 20, 2008 at 12:44 PM, Ara Kaloustian <ara1@...> wrote:

IB and ibc both have a parameter to control which TWS you connect to. You can only connect to one TWS. This is done by selecting a port number. Look in TWS configuration section and API area. ibc is easier to find the parameter, but don't remember exactly where it is.
 
I beleive you can use that one connection to send orders to multiple IB accounts in the same way that you would if you were using TWS to place your orders.
 
I have not used multiple accounts, but ibc can communicate with ONE TWS and you can do whatever you can normally do from TWS.
 
 
----- Original Message -----
From: ges x
Sent: Thursday, November 20, 2008 11:39 AM
Subject: Re: [amibroker] IB Controller and multiple IB accounts

Thanks Ed,

The second computer is a possibility, but I'd rather work off of one computer if possible.

ges

On Thu, Nov 20, 2008 at 12:20 PM, Edward Pottasch <empottasch@...> wrote:

I believe you need a "professional account" at IB but I am not sure.  A second computer works for sure.
 
rgds, Ed
 
 
 
 
 
----- Original Message -----
From: ges x
Sent: Thursday, November 20, 2008 8:14 PM
Subject: Re: [amibroker] IB Controller and multiple IB accounts

OK, I opened 2 IB accounts (2 TWS) and sent an order from IB Controller and it went to the account that was opened first.

Is that the only option?  Or is there a way to control which account receives the order from Amibroker?

ges

On Thu, Nov 20, 2008 at 9:33 AM, ges <ges8ges@...> wrote:

I usually have 2 or 3 IB accounts open. With IB Controller, how do
you specify which account the trade is to go to?








Fri Nov 21, 2008 4:00 pm

Akaloustian
Offline Offline
Send Email Send Email

Forward
Message #132240 of 143735 |
Expand Messages Author Sort by Date

I usually have 2 or 3 IB accounts open. With IB Controller, how do you specify which account the trade is to go to?...
ges
gesges
Offline Send Email
Nov 20, 2008
4:33 pm

OK, I opened 2 IB accounts (2 TWS) and sent an order from IB Controller and it went to the account that was opened first. Is that the only option? Or is there...
ges x
gesges
Offline Send Email
Nov 20, 2008
7:14 pm

I believe you need a "professional account" at IB but I am not sure. A second computer works for sure. rgds, Ed ... From: ges x To: amibroker@yahoogroups.com ...
Edward Pottasch
ed2000nl
Offline Send Email
Nov 20, 2008
7:20 pm

Thanks Ed, The second computer is a possibility, but I'd rather work off of one computer if possible. ges...
ges x
gesges
Offline Send Email
Nov 20, 2008
7:39 pm

IB and ibc both have a parameter to control which TWS you connect to. You can only connect to one TWS. This is done by selecting a port number. Look in TWS...
Ara Kaloustian
Akaloustian
Offline Send Email
Nov 20, 2008
7:45 pm

Thanks Ara for the pointer. I can see that both TWS IB accounts that I have open have the port set to 7496 and the IB Controller is set to 7496. But when I...
ges x
gesges
Offline Send Email
Nov 20, 2008
11:53 pm

I have 5 accounts with IB - all controlled from an Advisor account. When you log into the Advisor account you can direct orders into any of the client...
Ed Hoopes
reefbreak_sd
Offline Send Email
Nov 21, 2008
4:42 am

Thanks Ed. Are you using IB controller to send orders to your different TWS accounts? I gather that you just use SetAccount to designate where the trade is...
ges x
gesges
Offline Send Email
Nov 21, 2008
9:28 am

My experience has been positive. Here are a couple of negatives: 1. you cannot trade from a client account - only from the advisor. Which makes sense of course...
Ed Hoopes
reefbreak_sd
Offline Send Email
Nov 22, 2008
3:53 am

Thanks Tomas, Ed, and everyone. That is very helpful. It all makes sense now. ges...
ges x
gesges
Offline Send Email
Nov 23, 2008
5:31 pm

ges, icb should not connect to both... if for some reason it does, things can get to be very confusing ... very fast ... From: ges x To:...
Ara Kaloustian
Akaloustian
Offline Send Email
Nov 21, 2008
1:50 am

Thanks Ara, No, it does not seem to connect to both and that is good. As far as I can tell, it connects to the first TWS that is loaded. But is there some...
ges x
gesges
Offline Send Email
Nov 21, 2008
4:31 am

Change the port number in TWS to agree with ibc ... so that will be the only communication path. A second TWS can have a different port number, so you're sure...
Ara Kaloustian
Akaloustian
Offline Send Email
Nov 21, 2008
5:02 am

Thanks Ara, Does it matter what port number you use? ges...
ges x
gesges
Offline Send Email
Nov 21, 2008
9:29 am

Use any port number .. they are arbitrary ... I am sure there are restrictions ... just make them similar .. 7490, 7491 ... or whatever they are ... etc ... ...
Ara Kaloustian
Akaloustian
Offline Send Email
Nov 21, 2008
4:01 pm

Yes, IBController has a address/port preferences (from File dialog) that allows to specify where it connects. You can configure each TWS to use different port....
Tomasz Janeczko
amibroker
Offline Send Email
Nov 22, 2008
2:00 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help