Hi, I've been trying to get this to work, are you using the standalone Gateway or the browser version? I can't seem to get the browser version to work at all and when I try and download the standalone Gateway, the IB website directs to the TWS download page.
If the connection get lost for some reason, does it automatically log back on or does it ask for login again?
I've tested it with the standalone Gateway.
You are right, it's not possible to download the IB Gateway for Windows from IB website, a mistake on their side. I can put a .zip of it here, if needed.
If the connection is lost, it will automatically reconnect itself.
Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)
I found out the standalone Gateway gets downloaded with the standalone TWS and is accessable only thru the Start>All programs>IB menu.
I am experiencing inconsistancies with the Historical data, it loads some pairs and not others and it changes when I log off and back on again (same with some live data feeds). Also, when running the default "instrument" in the market analyzer to record historical data, I get a pacing violation before it gets thru loading. Have you found this also?
I also was extremely frustrated with IB Trader Workstation automatically shutting down every 24 hours and in the process killing any active multiday strategy I had running. I was using the workaround of changing the am to pm and pm to am every 12 hours. However, after finding this thread, I thought I would work on it some more and I have come up with two solutions that work well for me. Both solutions use the IB Gateway that is automatically downloaded when you download the Trader Workstation.
These two solutions should not have the problem many run in to (and workarounds were attempted in this thread), these two solutions do not use and will not start up Trader Workstation at all.
First start up the IB Gateway and log in (log in with your live account or the test account IB gives you). Log in with the TWS/API selected as the account type. Go in to the Configure/Settings/API menu and select the checkboxes you want. I have all selected except "Enable DDE Clients", "Create API Message log file and "include market data in API message".
Solution #1. IB Gateway and Ninja on same PC:
The key to this one is to prevent Ninja from automatically starting up Trader workstation. When you configure the Account connection and select that the provider is InteractiveBrokers, make sure that you change the host name, changing it from 127.0.0.1 to the actual IP address of your PC. To find your PC IP address, open a dos window (or cmd prompt) and type ipconfig. If you are on a home network you will typically see an address like 192.168.0.4 or something like that. Type that IP address in the Host field and change the port number to the normal IB Gateway port number of 4001. IMO, Ninjatrader should give us a checkbox to select that we do not want TWS started automatically, however changing the host name selection works for me.
Solution #. IB gateway on one PC and Ninja on second PC.
The Ninja gateway appears to use very little resources compared to the full TWS. I run it on an older PC that is running the gateway only. Once the gateway is running on that PC, I go to the PC with Ninja. Create a IB account connection and simply put in the IP address of the PC that is running IB Gateway in the Host field, since the host name is not 127.0.0.1, TWS is not automatically loaded when you start up the connection.
After connecting the first time, hardly any data was loaded or displayed. I loaded a chart and a couple T&S windows with no success. I then disconnected and reconnected and then everything fired up and has worked great.
The following 3 users say Thank You to dsherman for this post:
Is it still possible to do this? I tried but when I exit out of TWS, I loose connection. I have TWS version 921.5 which is the one you're suppose to use with Ninjatrader. Also, I could not find anywhere in TWS where I could start IB Gateway. Is it now called "Market Data Connection"?
----------------------------------------------------------------------------------------------------------- PS ----- NEVER MIND, I FOUND THE ANSWER ON POST #15. .. . THANKS!!!!!
Last edited by john2000; February 23rd, 2012 at 06:11 AM.