Without SET_ORDER_VAL this is not possible.
Just call PLACE_ORDER with transmit flag=-1 (so it goes not to IB).
Then use SET_ORDER_VAL to set the ref with transmit flag=1.
There is no information about twslink.xml. Normally no need to change it and also some parts may not have an impact at all.
Search found 244 matches
- Thu Sep 27, 2018 10:27 am
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Order setup
- Replies: 5
- Views: 23302
- Wed Sep 26, 2018 5:53 pm
- Forum: MetaTrader-InteractiveBrokers Order Copier
- Topic: SHARE /LOT PROBLEM with -1 value
- Replies: 1
- Views: 15090
Re: SHARE /LOT PROBLEM with -1 value
Hello,
negative shares per lot factor to get fixed ordersize makes no sense in conjunction with ib_position_sync.
Because ib_position_sync itself calculates what size required in order to sync IB positions with MT positions.
negative shares per lot factor to get fixed ordersize makes no sense in conjunction with ib_position_sync.
Because ib_position_sync itself calculates what size required in order to sync IB positions with MT positions.
- Wed Sep 26, 2018 5:52 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: IBStarter Traders Workstation / Gateway Startup Automation Tool
- Replies: 1
- Views: 17951
Re: IBStarter Traders Workstation / Gateway Startup Automation Tool
Hello,
unfortunately the IBStarter is no longer developped.
IBStarter used IBController. This free open source java tool can prevent TWS from logging off.
How to use this tool is explained in this tutorial:
https://trade-commander.com/disable-tws ... ic-logoff/
unfortunately the IBStarter is no longer developped.
IBStarter used IBController. This free open source java tool can prevent TWS from logging off.
How to use this tool is explained in this tutorial:
https://trade-commander.com/disable-tws ... ic-logoff/
- Thu Sep 20, 2018 5:54 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Link without IB API installation
- Replies: 3
- Views: 20643
Re: Link without IB API installation
Hi,
you can just copy the DLL into Windows/system32 or Windows/syswow64. Depending where you need it.
But in this case, you can't use it as COM or ActiveX. Just as DLL. The setup also does a registration.
you can just copy the DLL into Windows/system32 or Windows/syswow64. Depending where you need it.
But in this case, you can't use it as COM or ActiveX. Just as DLL. The setup also does a registration.
- Mon Sep 17, 2018 12:39 pm
- Forum: MetaTrader-InteractiveBrokers Order Copier
- Topic: Fixed Size is possible?
- Replies: 2
- Views: 16090
Re: Fixed Size is possible?
You can do this per symbol. On the contract page, double click on the contract you want to have a fix size for. In the upcoming dialog set the "shares per lot factor" to a negativ number equal to the size you like to have fix for this contract. For instance, if you like always 20, then set this fact...
- Thu Sep 06, 2018 12:22 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Python 3.6 wrapper issue
- Replies: 4
- Views: 21618
Re: Python 3.6 wrapper issue
Hello, i am sorry but you need to get familar with visual studio. I can't give support for Visual Studio here. The project setup is based on a python 3.6 installation on c:\python36 If your python is installed elsewhere, just change the project settings (include path and library linking) accordingly...
- Wed Sep 05, 2018 6:23 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Link without IB API installation
- Replies: 3
- Views: 20643
Re: Link without IB API installation
Hi, the API is only a protocol definition. Not more. Any API client, like TWSLink, connects per TCP/IP to TWS or Gateway and sends commands according this protocol. If the command you send via TCP/IP is not in line with what the protocol defines, TWS or gateway immediately closes connection. --- The...
- Wed Sep 05, 2018 1:19 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Two machines with same code giving different return codes
- Replies: 7
- Views: 25547
Re: Two machines with same code giving different return codes
I just made quick test:
It works fine with TWS 972.1p on Windows 10 64 bit,
Code: Select all
int uid = REGISTER_CONTRACT("EUR", "CASH", "USD", "IDEALPRO", "", "", "", 0, "", 0, 0.0);
int connected = CONNECT("", 7496, 1,20000);
int uido = PLACE_ORDER(uid, 0, "BUY", "MKT", 100000, 0.0, 0.0, "DAY", 1, 0);
- Wed Sep 05, 2018 12:52 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Python 3.6 wrapper issue
- Replies: 4
- Views: 21618
Re: Python 3.6 wrapper issue
Hello, i downloaded the python wrapper project and opened it. The first thing was to upgrade the project to vc141. As platform i chosed Windows 8.1. I got similar errors like you because my python installation changed meanwhile. The point: You need to either adjust your python installation to match ...
- Wed Sep 05, 2018 12:14 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Two machines with same code giving different return codes
- Replies: 7
- Views: 25547
Re: Two machines with same code giving different return codes
Hello Rick, thank you for giving feedback. Good possible it is because of the version of TWS (and so API). Because TWSLink is no longer maintained, TWSLink still uses old API paradigma which will be sooner or later outdated by IB. Probably this is now the case with version 972 . But good possible yo...
- Fri Aug 31, 2018 4:42 pm
- Forum: MetaTrader-InteractiveBrokers Order Copier
- Topic: tws automatic logoff
- Replies: 1
- Views: 15394
Re: tws automatic logoff
What is IBGateway: The IB Gateway is a lightweighted tool used as a conjunction between Interactive Brokers and API clients like the bridge. Unlike TWS, the gateway is not closing itself. Once started it runs until closed. The gateway just provides minial functionality. You can't place orders or que...
- Fri Aug 31, 2018 4:28 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Two machines with same code giving different return codes
- Replies: 7
- Views: 25547
Re: Two machines with same code giving different return codes
What is different on those 2 machines ? (Same TWS,...)
What code (TWSLink function calls) is running ?
What does the logfiles tell ?
Logfiles are best place to get information.
(Usually located in C:\trade-commander\twslink2\log)
What code (TWSLink function calls) is running ?
What does the logfiles tell ?
Logfiles are best place to get information.
(Usually located in C:\trade-commander\twslink2\log)
- Wed Aug 15, 2018 2:16 pm
- Forum: MetaTrader-InteractiveBrokers Order Copier
- Topic: Problem with offset pips
- Replies: 5
- Views: 20028
Re: Problem with offset pips
Hello,
thank you, there is a bug and it has been fixed.
New version:
http://trade-commander.com/download/1326/
thank you, there is a bug and it has been fixed.
New version:
http://trade-commander.com/download/1326/
- Tue Aug 14, 2018 10:59 am
- Forum: MetaTrader-InteractiveBrokers Order Copier
- Topic: Problem with offset pips
- Replies: 5
- Views: 20028
Re: Problem with offset pips
Can you tell me what IB symbol exactly used for your MT order ? So i can try to reproduce this.
Thank you
Thank you
- Wed Aug 08, 2018 7:27 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Market-on-Close (MOC) and Market-on-Open (MOO)
- Replies: 2
- Views: 19032
Re: Market-on-Close (MOC) and Market-on-Open (MOO)
Hello Harrison,
its long time ago i made such order.
I am sorry, i don't know, if MOO or MOC is only possible with live account.
You need to ask IB support for this.
What is the problem when placing an MOO order ?
its long time ago i made such order.
I am sorry, i don't know, if MOO or MOC is only possible with live account.
You need to ask IB support for this.
What is the problem when placing an MOO order ?
- Sat Jun 30, 2018 1:14 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: how to setup a futures option vertical spread contract?
- Replies: 13
- Views: 35954
Re: how to setup a futures option vertical spread contract?
When i remove the SET_ORDER_VAL for price and execute again, i get a new error: API-error: error validating request:-'bh' : cause - the combo details for leg '0' are invalid. - conid, ratio, side: -1, 1, 2 code=321 id=1 It points to wrong parameters provided by ADD_COMBO_LEG. So far, i don't think t...
- Sat Jun 30, 2018 12:58 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: how to setup a futures option vertical spread contract?
- Replies: 13
- Views: 35954
Re: how to setup a futures option vertical spread contract?
When i executed your code i get no order placed. The logfiles show an error message: 20180630 14:50:19:240 [IN ERROR] uid=100 BUY E1AN8 P2725 MKT 1 DAY GLOBEX lmt=0 aux=0 Invalid acc_? clientid=0 transmit=IB ref= nref= oca= filled=0 lastfill=0 fa group= fa profile= fa method= fa percentage= gat= gtd...
- Fri Jun 29, 2018 6:29 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: how to setup a futures option vertical spread contract?
- Replies: 13
- Views: 35954
Re: how to setup a futures option vertical spread contract?
I don't think you can register a leg contract.
Only single contracts.
You create a leg by ADD combo leg. For this, just need a conid, not uid. I think this is still a problem in your code.
Add_COMBO_LEG returns a leg uid. This can be added to an order by SET_ORDER_VAL.
Only single contracts.
You create a leg by ADD combo leg. For this, just need a conid, not uid. I think this is still a problem in your code.
Add_COMBO_LEG returns a leg uid. This can be added to an order by SET_ORDER_VAL.
- Thu Jun 28, 2018 4:11 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: how to setup a futures option vertical spread contract?
- Replies: 13
- Views: 35954
Re: how to setup a futures option vertical spread contract?
Hi, i tested first part of your code and found the expiry is wrong. change uidESopt1 = REGISTER_CONTRACT("ES","FOP","USD","GLOBEX","","20180927","P",2725,"50",0,0.0); to uidESopt1 = REGISTER_CONTRACT("ES","FOP","USD","GLOBEX","","20180921","P",2725,"50",0,0.0); or, if you can get conid, call REGISTE...
- Wed Jun 27, 2018 1:29 am
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: how to setup a futures option vertical spread contract?
- Replies: 13
- Views: 35954
Re: how to setup a futures option vertical spread contract?
What do you mean by contract id. The ADD_COMBO_LEG expects the conid, not the contract uid. The conid is the unique id provided by IB. So for each leg, just provide its contract conid. You get the contract id by right click on contract in TWS. Then search for info menu. Select details. A website sho...