After hours of failed attempts to connect to TWS using MATLAB, it turns out that I had to download and install an earlier 32-bit R2015b MATLAB version at the link below to make it work. Apparently, ActiveX doesn't work with 64-bit applications. I also downloaded and installed an earlier version of IB's TWS API (9.71.06) as instructed by an answer to a similar question, but I'm not sure if it was necessary. Hope this helps someone.
https://www.mathworks.com/downloads/web_downloads/download_release?release=R2015b
3 Comments
laserfocused (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/374811-i-bought-matlab-and-trading-toolbox-to-automate-my-trading-with-interactive-brokers-ib-in-dec-201#comment_541448
Walter Roberson (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/374811-i-bought-matlab-and-trading-toolbox-to-automate-my-trading-with-interactive-brokers-ib-in-dec-201#comment_541471
Gilles Desvilles (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/374811-i-bought-matlab-and-trading-toolbox-to-automate-my-trading-with-interactive-brokers-ib-in-dec-201#comment_674437
Sign in to comment.