Search found 134 matches

by board_admin
Wed Aug 15, 2018 2:16 pm
Forum: MTIBBridge MetaTrader-Interactive Brokers trade-copier
Topic: Problem with offset pips
Replies: 4
Views: 31

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/
by board_admin
Tue Aug 14, 2018 10:59 am
Forum: MTIBBridge MetaTrader-Interactive Brokers trade-copier
Topic: Problem with offset pips
Replies: 4
Views: 31

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
by board_admin
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: 41

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 ?
by board_admin
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: 259

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...
by board_admin
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: 259

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...
by board_admin
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: 259

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.
by board_admin
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: 259

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...
by board_admin
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: 259

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...
by board_admin
Sun Jun 24, 2018 2:15 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 259

Re: how to setup a futures option vertical spread contract?

Honestly, i never tested combo orders and also i am not familar with combo orders. For details of TWSLink functions, use the help file please file:///C:/Program%20Files%20(x86)/trade-commander/twslink2/Documentation/html/tbl_orderval.html From what i see in the code, a combo order is created in mult...
by board_admin
Sat Jun 23, 2018 1:02 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 259

Re: how to setup a futures option vertical spread contract?

Hello,
never did this before.

The general approach is: Pick the contract in TWS. Right click on contract, get information / description or details.
Use the information provided there for the register contract functions.
by board_admin
Thu May 10, 2018 12:41 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: How call Average Price of an Open Position in TWS-Link?
Replies: 1
Views: 220

Re: How call Average Price of an Open Position in TWS-Link?

The average price is a portfolio value.

(open help file from browser:)

Code: Select all

file:///C:/Program%20Files%20(x86)/trade-commander/twslink2/Documentation/html/fct_GET_PORTFOLIO_VAL.html

GET_PORFOLIO_VAL(uidcontract,5,"")
by board_admin
Thu May 03, 2018 12:10 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 327

Re: WAITDLL

WAIT_FOR_FILLED should be good for this. It breaks when an order been rejected. It returns 1, when filled. 0 when timeout. -2 when order rejected or cancelled, -1 when initial or inactive (can't reach filled state). Are you sure you get a timeout when you place a reverse order which violates margin ?
by board_admin
Wed May 02, 2018 10:49 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 327

Re: WAITDLL

The time will be proper etc. It just sets the thread to idle. The script pauses script execution the denoted time at this point. Thats all. I have no TradeStation and also do not use MultiCharts this time so i can't make a definite statements how WAITDLL exactly affects your script. But i guess, whe...
by board_admin
Wed May 02, 2018 8:02 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 327

Re: WAITDLL

The calling thread is suspended, goes into idle state.
So the calling script stops. If another script runs in the same thread, this stops as well.
by board_admin
Fri Apr 27, 2018 2:13 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New tool in the town
Replies: 0
Views: 226

New tool in the town

Hello TWSLink users, just want to point to a new tool which is coming soon. It is called IBPlugin and it has already its own forum. It is a more reduced but advanced version of TWSLink. It focuses on MetaTrader. For more information just read the 1st post in its forum: https://trade-commander.com/tc...
by board_admin
Fri Apr 27, 2018 2:05 pm
Forum: IBPlugin
Topic: What is IBPlugin
Replies: 0
Views: 128

What is IBPlugin

IBPlugin is further development of TWSLink. It is focused for the useage with MetaTrader. However, as it is a DLL, you can use it everywhere on Windows which supports DLL, e.g. Trade Station, Excel or C++ applications or make wrapper for Perl, Python etc. In comparison to TWSLink it has a reduced in...
by board_admin
Fri Apr 27, 2018 1:43 pm
Forum: IB Trade Panel
Topic: How IB Trade Panel works
Replies: 0
Views: 92

How IB Trade Panel works

Video introduction into IB Trade Panel
https://youtu.be/C6R2j7tQPZQ
by board_admin
Fri Apr 27, 2018 1:15 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down
Replies: 9
Views: 392

Re: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down

You find the settings file in the x86 programs folder on x64 machines or in the programs folder on x86 machines: C:\Program Files (x86)\trade-commander\twslink2\xml\twslink.xml Open the xml in an editor and search the line below and set the loglevel 4 behind the "v". <dllll ttl="DLL Loglevel" v="4" ...
by board_admin
Wed Apr 25, 2018 11:26 am
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down
Replies: 9
Views: 392

Re: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down

Thank you for update. Just for clarification. A WAITDLL call puts a thread into an idle state. It locks the calling thread for this time. It is the opposite of what could "overheat" an CPU. A high loglevel can raise CPU load. In particular loglevel 0. Because this means full logging and also it prod...
by board_admin
Wed Apr 18, 2018 10:24 am
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down
Replies: 9
Views: 392

Re: Calling Get_Acc_Val & Get_Postions functions 50 times in a row caused my PC to overheat and shut down

WAITDLL makes a stop of the calling thread for the specified time. The thread is going into idle state. No CPU load. It can cause a TradeStation lock (freeze) for the time of sleep, presumed it is called in all threads, but for sure not a machine lock. WAITDLL does nothing else than calling a Window...