-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to IB TWS from multiple instance of matlab #3
Comments
Hi Manish, Great to hear from you. Off the top of my head, you'll want to make sure that the CLIENTID in the session.eConnect call are unique. Typically, in matlab just use client id of "0", so you want to increment that Id for each matlab instance. See link: https://www.interactivebrokers.com/en/software/api/apiguide/java/econnect.htm I'll look into this more tonight or tomorrow morning when I'm back at my computer. Cheers Sent from my iPhone
|
Hi Manish I confirmed with multiple instances of matlab that as long as the CLIENT_ID is different for each matlab instance there does not appear to be any issues with multiple TWS connections. Don’t hesitate to follow up if for some reason it’s still not working on your end with unique client id’s. I’m happy to look into it some more. Cheers
|
Hi Abel, It does work with different client ID. Thank you so much you for your help again. Kind Regards, |
Hi Abel, I appreciate your help. If you don't mind me asking, are you a matlab IB Manish On Sat, Mar 19, 2016 at 3:46 PM, Abel Brown notifications@github.com
|
Hi Manish I have a lot of matlab experience both as a trader and scientist. What can I help you with? Cheers
|
Hi Manish Sounds like many of the typical growing pains of getting going in algo trading. I went through similar experiences in the beginning. There are a lot of great books out there. I got started with books by Ernie Chan and Jack Schwager (Market Wizards!!). Most important is to find your own groove. Develop strategy that resonates with your personality and tolerance levels for risk/reward. Backtesting is really important. Don’t skimp on backtesting! I’v coded up some strategies that look great on paper but fall flat as a real algorithm. Go slow and focus on building good “sea legs” and your intuition for the market. I don’t have a blog … but maybe I’ll start one :) Cheers
|
Hi Abel,
Thank you again for your great work! I have run into issue where I can not connect the IB4m through multiple instances of Matlab. For example, if I have a function in batch mode that is trying to connect while it is already connected to another function. You can test it by opening two matlabs and try to connect through each. Once it is connected to one, if throws java.eof.exception error into other.
Would you recommend a workaround for this? Always appreciate any help I can get on this.
Kind Regards,
Manish
The text was updated successfully, but these errors were encountered: