PureBytes Links
Trading Reference Links
|
Hello,
I am trying to call the TWX active object from AFL, and I am using
this kind of code:
twsIni="I15";
if (StaticVarGetText(twsIni)!="OK") {
tws3 = CreateStaticObject("TWS.TwsCtrl.1");
//tws2 = CreateStaticObject("TWS");
//tws = CreateStaticObject("C:\Jts\ActiveX\Tws.ocx");
tws3.connect("",7497,1);
StaticVarSetText(twsIni,"OK");}
tws3.reqCurrentTime();
(an adaptation from matlab trader)
but I get com errors
I think the object is created but is the not handled properly.
(I have two TWS running, and one has API configure with port=7497,but
the problem happens even with only one TWS, and the default port=7496
both in API configuration and the above code).
I have registered tws.ocx with regsvr32.
Did anybody try the same?Am I using the right object name?
In this way we could access from AFL marketscanners and Reuters
fundamental data, or simply use the full IB API functionality.
Thanks
Ly
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|