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 
  To: [email protected] 
  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 <[EMAIL PROTECTED]> 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 
      To: [email protected] 
      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 <[EMAIL PROTECTED]> 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 
          To: [email protected] 
          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 <[EMAIL PROTECTED]> 
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 
              To: [email protected] 
              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 <[EMAIL 
PROTECTED]> 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 
                  To: [email protected] 
                  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 <[EMAIL PROTECTED]> 
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?













   

Reply via email to