Search found 212 matches

by board_admin
Fri Feb 05, 2021 4:00 pm
Forum: IBPlugin
Topic: How to guarantee the success of order deletion
Replies: 1
Views: 129

Re: How to guarantee the success of order deletion

Function ibgORDER_STATUS(int64 uid) returns the last order status reported back from IB Server. "However I met a situation where I sent the deletion signal, and the order was not really deleted" This should not happen at all. Function ibgORDER_DELETE (int connection_id, int64 uid) should always work...
by board_admin
Wed Feb 03, 2021 12:37 pm
Forum: IBPlugin
Topic: Account Historical Net Value Enquiry/Calculation by day
Replies: 2
Views: 71

Re: Account Historical Net Value Enquiry/Calculation by day

IBPlugin records order-,account-,protfolio- and execution data in a sqlite database.
The database is located in:

Code: Select all

C:\trade-commander.com\ibplugin\<your_config>\nbr_pending_orders\api\ibdata.db
There are not encrypted and you can use any sqlite viewer to query data.
by board_admin
Fri Jan 22, 2021 3:29 pm
Forum: IBPlugin
Topic: Correct way of unloading objects/functions to avoid connection issue
Replies: 2
Views: 80

Re: Correct way of unloading objects/functions to avoid connection issue

Usually there is no need to call disconnect at all. The plugin keeps connection and if you should change connection parameters, just call connect again with new parametes. Also deinit is not really required. What happens if you skip both: disconnect ant deinit ? I recommend to drop the wrapper and t...
by board_admin
Tue Jan 19, 2021 4:31 pm
Forum: IBPlugin
Topic: Negative UID but successful action when sending order
Replies: 2
Views: 86

Re: Negative UID but successful action when sending order

In a prior version negative uids where possible to use full range of integer 64 bit.
In latest version 1503 (and i believe version before 1502) uid should always be positive. Microseconds since 2010.
by board_admin
Tue Jan 19, 2021 2:32 pm
Forum: IBPlugin
Topic: License stopped working suddenly
Replies: 4
Views: 106

Re: License stopped working suddenly

I got your mail and it seems license temporarily granted . So no problem but license seems to be in use elsewhere. This can happen, when you restart host of IBPlugin and the IBPlugin got no chance by host to unregister license on our license server. When you start next time, license server thinks yo...
by board_admin
Tue Jan 19, 2021 2:03 pm
Forum: IBPlugin
Topic: License stopped working suddenly
Replies: 4
Views: 106

Re: Certificate stopped working suddenly

It seems your license is also used on another machine.
Please write us an email with license id and machine name.
Thank you
by board_admin
Fri Jan 15, 2021 3:06 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 259

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

New version uploaded:
https://trade-commander.com/de/ibpluginsetup/
Just over install, make sure MetaTrader closed before installation.

Please checkout, if you get comment and let me know. Thank you.
by board_admin
Fri Jan 15, 2021 2:41 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 259

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

Dont do this please. It works differently. The problem seems only to be in function ibgORDER_SEND in MetaTrader. Just use ibgORDER_SEND_STR instead or wait for fix. MetaTrader has a convenient string implementation which allows to easily create the attribute string for this function using StringForm...
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: 259

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: 259

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: 259

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: 259

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: 259

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: 112

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: 1052

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: 1
Views: 867

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: 317

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: 945

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: 945

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...