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

6 vues (au cours des 30 derniers jours)
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 commentaires
Gilles Desvilles
Gilles Desvilles le 23 Fév 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 !

Connectez-vous pour commenter.

Réponse acceptée

Yair Altman
Yair Altman le 29 Déc 2017
Modifié(e) : Yair Altman le 23 Oct 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 commentaire
Javier Ossa
Javier Ossa le 30 Juin 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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Transaction Cost Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by