Search found 244 matches

by board_admin
Fri Jan 15, 2021 2:02 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 35796

Re: Managing multiple positions - is there a "comment" field in position?

I checked it always outside MetaTrader and got the comment with both function calls.

But when testing in MetaTrader, i also get no comment returned.
Sorry for this. Need to investigate.
by board_admin
Thu Jan 14, 2021 9:25 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 35796

Re: Managing multiple positions - is there a "comment" field in position?

There are in fact some changes to version of last year. Please use the help. it was thoroughly revised. For order attributes, the attribute table is what matters. I could not reproduce the problem. I get the order comment returned correctly with attribute id = 49. This function call string comment=i...
by board_admin
Thu Jan 14, 2021 4:27 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 35796

Re: Managing multiple positions - is there a "comment" field in position?

Are you sure there are strict pending orders for that conid ?
Strict means, you can see them in TWS with one of the pending status colors (blue,green)
by board_admin
Thu Jan 14, 2021 4:13 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 35796

Re: Managing multiple positions - is there a "comment" field in position?

This function makes only sense, when prior called:

Code: Select all

ibgCREATE_PENDING_ORDER_SNAPSHOT
Have you done this ?
by board_admin
Thu Jan 14, 2021 3:08 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 35796

Re: Managing multiple positions - is there a "comment" field in position?

A position is an accumulation of executions.
There is always only one position per Symbol.

ibgORDER_SEND_STR

has a field where you can set a comment. This comment is pegged to order (and execution).
The atribute identfier is 49 -> see help of IBPlugin.


But you can not peg a comment to a position.
by board_admin
Thu Jan 14, 2021 1:24 pm
Forum: IBPlugin
Topic: -1 return value of ibgCREATE_POSITION_SNAPSHOT in IB dem/live account
Replies: 2
Views: 12247

Re: -1 return value of ibgCREATE_POSITION_SNAPSHOT in IB dem/live account

Hello,

In the call of

ibgCREATE_POSITION_SNAPSHOT(__conid);

it seems you pass a contract uid, which is wrong.

Pass a connection id, the same you pass for function

ibgCONNECT
by board_admin
Sun Dec 13, 2020 10:48 pm
Forum: IBPlugin
Topic: Import contracts and IB Symbol Limit
Replies: 2
Views: 12984

Re: Import contracts and IB Symbol Limit

Hello Sir, sorry for late answer - got no notification. As you paid for support you can ask per email. Just to clarify: Import contracts is not really required. When you have a conid, so a unique id for contract provided by InteractiveOrders, you just can use this conid as 2nd parameter for function...
by board_admin
Wed Sep 23, 2020 6:51 pm
Forum: MetaTrader-InteractiveBrokers Order Copier
Topic: Market orders in TWS when Limit order filled in MT4
Replies: 6
Views: 20433

Re: Market orders in TWS when Limit order filled in MT4

You could disable limit orders when attaching ib_order_copy. Copy only MKT orders=true This makes a limit order is ignored. But when this limit order gets filled, a MKT order is placed at IB. ---- I believe, that a limit fill at MT in any case forces a MKT at TWS. (Turns LMT into MKT). To test this,...
by board_admin
Wed Sep 23, 2020 5:40 pm
Forum: MetaTrader-InteractiveBrokers Order Copier
Topic: Manual trade on TWS
Replies: 1
Views: 12628

Re: Manual trade on TWS

Hello, sorry for late answer. This refers to manual trade a symbol in TWS that is also traded by MetaTrader for obvious reasons: You strategy could get confused. It may mentions flat in Symbol A but when you traded A manually in TWS, you are not flat. --- It is a copier. I see no problem to trade sa...
by board_admin
Fri Sep 04, 2020 6:46 pm
Forum: IBPlugin
Topic: How do I manage my position like MQL5
Replies: 4
Views: 14620

Re: How do I manage my position like MQL5

Orders that are not in the new pending list, are filled, cancelled or invalid.
If you have an uid, you can call:

Code: Select all

ibgORDER_STATUS(uid)
to get order status.

The order uid is a 64 bit integer.
On TradeStation / MultiCharts, you need to store it in a double variable.
On MetaTrader in a long variable.
by board_admin
Fri Sep 04, 2020 11:37 am
Forum: IBPlugin
Topic: How do I manage my position like MQL5
Replies: 4
Views: 14620

Re: How do I manage my position like MQL5

With new version >= 1.5.0.0 you do this: // [#2] List all non zero positions: Print("+++ positions START"); // create a snapshot of current non zero positions (resolution down to (sub-) account) int total_objects=ibgCREATE_POSITION_SNAPSHOT(__connection_id); Print("#positions=",total_objects ); // l...
by board_admin
Thu Sep 03, 2020 11:36 am
Forum: IBPlugin
Topic: New Version 1.5.0.0 Major Update
Replies: 0
Views: 24403

New Version 1.5.0.0 Major Update

A new version has been uploaded: https://trade-commander.com/wp-content/uploads/2020/05/ibpluginSetup.exe This version is a major update and has in parts a changed interface. So using it, means update some code (not much). It has a complete help and also some Video Tutorials with examples for TradeS...
by board_admin
Tue Aug 25, 2020 2:49 pm
Forum: MetaTrader-InteractiveBrokers Order Copier
Topic: How to set the "Hidden" option for an order which is sent to TWS in MT-IB-copier.
Replies: 2
Views: 14046

Re: How to set the "Hidden" option for an order which is sent to TWS in MT-IB-copier.

Hello, you can set this in api setup xml file. (Usually let all by default;make only changes you really understand meaning and impact. Thank you) Close the copier. Go to folder: C:\Program Files\trade-commander.com\MTIB Order Copier\xml Open file api.xml in an editor (notepad). Search tag (Category:...
by board_admin
Fri Aug 14, 2020 10:09 am
Forum: IBPlugin
Topic: How do I manage my position like MQL5
Replies: 4
Views: 14620

Re: How do I manage my position like MQL5

Hello, with IB it works a bit differently. To get a position, you need to know the symbol. ibgPOSITIONS(uidc...) uidc is the symbol id. Unfortunately, there is no information about time when you opened position. Function ibgPORTFOLIO_INFO(uidc...) provides some additonal information like realized pn...
by board_admin
Tue Nov 26, 2019 8:21 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: TWSLink no longer supported
Replies: 0
Views: 35766

TWSLink no longer supported

Dear Forum,
Unfortunately I have to stop my forum activities due to time reasons. Also a bugfix for TWSLink2 will no longer be available.

Users can continue to use the forum and give answers.

Board Admin
by board_admin
Wed Aug 14, 2019 10:47 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Git Repository for TWSLink2
Replies: 0
Views: 29821

Git Repository for TWSLink2

Hello TWSLink2 users,
have a Git repository created where you can find most important samples
and collaborate on:

https://github.com/trade-commander1/twslink2
by board_admin
Thu May 16, 2019 3:03 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: VWAP Orders
Replies: 1
Views: 16396

VWAP Orders

Hello Community,
has anyone already placed VWAP orders with TWSLink in MultiCharts or TradeStation ?
Thank you
by board_admin
Wed Mar 27, 2019 7:02 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 27091

Re: Failure on production machine

Thank you, please keep us updated
by board_admin
Wed Mar 27, 2019 4:47 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 27091

Re: Failure on production machine

This message comes form IB. I don't believe it is a TWSLink problem. You either missed to pass a paramter or the parameter you passed are not valid. This can be related to account, precautions... Please contact IB support about this. First make sure to have the logfiles. In the API settings of TWS, ...