rajmohan
rajmohan

Reputation: 1

Got Error while linking MATLAB with TWS

I am using MATLAB2017b version & Interactive brokers API version is 9.73 Windows 64bit version. I am unable to register the Tws.ocx file & regsvr32.exe file through command prompt. If I go to register the file, they show a binary error

image of error message

enter image description here

While executing this command on MATLAB Command window
ib = ibtws('',7496).

They show the error....

Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.

Error in ibtws

Upvotes: 0

Views: 387

Answers (1)

Yair Altman
Yair Altman

Reputation: 5722

As I explained in detail here, this is due to an unhandled error in the Trading Toolbox, which relies on the IB ActiveX/COM connector, which changed it ProgID a while ago, thereby causing the toolbox to break.

Consider using the IB-Matlab connector instead.

Upvotes: 0

Related Questions