Hello,
I would like to get bar data from TWS into Matlab7 using TWS Link and its functions REQ_BAR_DATA and GET_BAR_DATA. All instaled under Vista system.
Everything works ok until I try to request bar data with: calllib
('twslink', 'REQ_BAR_DATA',uid,1,10,4,1); Available return values,
described on the TWS Link web page are
1 = Number of requested Bars.
-1 = Contract Not found (if #1 > 0).
-2 = Value read only.
I get always 0. If it is not possible to request bar data, it will
not be possible to get data later with GET_BAR_DATA.
Could somebody approve my observations? (other platforms as well). Does have somebody same problem or probably already solution?
Thanks giuseppe
I would like to get bar data from TWS into Matlab7 using TWS Link and its functions REQ_BAR_DATA and GET_BAR_DATA. All instaled under Vista system.
Everything works ok until I try to request bar data with: calllib
('twslink', 'REQ_BAR_DATA',uid,1,10,4,1); Available return values,
described on the TWS Link web page are
1 = Number of requested Bars.
-1 = Contract Not found (if #1 > 0).
-2 = Value read only.
I get always 0. If it is not possible to request bar data, it will
not be possible to get data later with GET_BAR_DATA.
Could somebody approve my observations? (other platforms as well). Does have somebody same problem or probably already solution?
Thanks giuseppe