I bought MATLAB and Trading toolbox to automate my trading with Interactive brokers (IB) in Dec. 2017, but it doesn't work.

6 Ansichten (letzte 30 Tage)
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 Kommentare
Gilles Desvilles
Gilles Desvilles am 23 Feb. 2019
Hi Peter
With R2015a 32 bit and API 9.73.07 and TWS 974.4m on Windows OS Seven 32 bit SP1 I get the infamous "invalid progid tws.twsctrl.1" error message.
Would you send me your API 9.71.06 ? If it works on yours, il should on mine.
Trading toolbox seems to not support IB anymore judging by the nearest dates of mathworks videos and weminars about IB, 2012 2013 at most. Crazy ...
Thank you for helping !

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Yair Altman
Yair Altman am 29 Dez. 2017
Bearbeitet: Yair Altman am 23 Okt. 2018
As you've noticed, using IB's COM/ActiveX API (which is used by the Trading Toolbox) has severe limitations. In addition to the 32-bit limitation, ActiveX also has the drawback of only working on Windows, and of being slower, less robust, and not as reliable as IB's other APIs ( according to IB themselves )
If you need a Matlab-IB connector without any of these limitations, then try using my IB-Matlab toolbox instead: http://undocumentedmatlab.com/ib-matlab. IB-Matlab is based on IB's Java (not COM/ActiveX) API, so it runs well on all platforms that support Matlab: Windows (both 32 and 64 bits), Mac and Linux - including all releases of Matlab and TWS.
Yair Altman
  1 Kommentar
Javier Ossa
Javier Ossa am 30 Jun. 2020
Hey to every body, this service from Undocumented Matlab soves the problems of matlab api with IQFEED and IB, it has a cost but woth it and solve the problem with conectivity from matlab toolboxes.
I did used and work well for me.
whish that they develope other api or join with other brokers like AMP futures, Ameritrade. and other paltforms makers like Multichart, sierra chart, jigsaw trading and ninjatrading.
Javier Ossa

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Transaction Cost Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by