Search found 24 matches

by hkenrique
Fri Feb 05, 2021 12:53 pm
Forum: IBPlugin
Topic: Negative UID but successful action when sending order
Replies: 2
Views: 1971

Re: Negative UID but successful action when sending order

I am not sure how to check the version number of the plugin?
by hkenrique
Fri Feb 05, 2021 12:48 pm
Forum: IBPlugin
Topic: How to guarantee the success of order deletion
Replies: 1
Views: 2023

How to guarantee the success of order deletion

Hi, When deleting an order, normally it's deleted quickly. However I met a situation where I sent the deletion signal, and the order was not really deleted. On the next tick, my code still finds the order by ibgCreateOrderSnapshot. (Finally, the order got deleted in around 20 seconds) My own positio...
by hkenrique
Fri Feb 05, 2021 12:37 pm
Forum: IBPlugin
Topic: Account Historical Net Value Enquiry/Calculation by day
Replies: 2
Views: 1954

Re: Account Historical Net Value Enquiry/Calculation by day

Hi, Thank you for your answer. If I understand this correctly. The sqlite db records the activities that go through IBPlugin. What I am really asking is whether I can enquiry the historical data (trades, historical net value, etc) on IB INCLUDING trades from other source, say my manual trade, which ...
by hkenrique
Mon Feb 01, 2021 2:09 am
Forum: IBPlugin
Topic: Account Historical Net Value Enquiry/Calculation by day
Replies: 2
Views: 1954

Account Historical Net Value Enquiry/Calculation by day

Hi sir, Now I need to write a weekly report about my account net value on each day. Currently this is done by my logging into IB account and check the account activities -> reports ..... and mark down the number on each day. I wonder if the IBPlugin can enquiry the account value by date? Or there is...
by hkenrique
Mon Feb 01, 2021 2:06 am
Forum: IBPlugin
Topic: Correct way of unloading objects/functions to avoid connection issue
Replies: 2
Views: 1946

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

Thanks. This does not seem to happen recently.
by hkenrique
Fri Jan 22, 2021 2:22 pm
Forum: IBPlugin
Topic: Correct way of unloading objects/functions to avoid connection issue
Replies: 2
Views: 1946

Correct way of unloading objects/functions to avoid connection issue

Hello sir, Following the issue below that I believed to be the license issue: It seems restart of MT may result in such connection issues. I then need to restart my TWS to resolve this. I was told in email that it could be caused by unproper unload of the object/connections. But I did not experience...
by hkenrique
Tue Jan 19, 2021 3:39 pm
Forum: IBPlugin
Topic: Negative UID but successful action when sending order
Replies: 2
Views: 1971

Negative UID but successful action when sending order

Hi, It appears that the return value of order send function sometimes can be negative but successful. long uid= __ib.order_send(__conid_EURUSD ,orderType // defined in file include/trade-commander.com/ibplugin_types.mqh ,size ,0 ,targetPrice ,0 ,0 ,IntegerToString(magicNumber)+","+IntegerToString(po...
by hkenrique
Tue Jan 19, 2021 2:33 pm
Forum: IBPlugin
Topic: License stopped working suddenly
Replies: 4
Views: 2617

Re: License stopped working suddenly

Hi,

I restarted TWS and it worked again.
Thanks.
by hkenrique
Tue Jan 19, 2021 2:16 pm
Forum: IBPlugin
Topic: License stopped working suddenly
Replies: 4
Views: 2617

Re: License stopped working suddenly

Hi,

I sent the info via email to the one who sent me the license key. The license manager reads
more locks used than possible with license temporarily accepted.

This is the only machine I use this license. (but I have another purchased license on my live machine under the same email)
by hkenrique
Tue Jan 19, 2021 2:00 pm
Forum: IBPlugin
Topic: License stopped working suddenly
Replies: 4
Views: 2617

License stopped working suddenly

Hi commanders, My newly purchased license has just stopped working afer I restarted my MT5 just now. Previously it was working fine. But now it's having problem in its log: Tue 2021-Jan-19 21:42:19.511128;C:\projekte\brLic\libtools_lic\src\license\clientcomm.cpp;license_client_module::logon;879;1728...
by hkenrique
Mon Jan 18, 2021 11:52 am
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Hi,

It works now. Thanks a lot for the help.
by hkenrique
Fri Jan 15, 2021 2:30 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

thanks. I will stick with the old version for now.
by hkenrique
Fri Jan 15, 2021 1:29 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

I'm just trying to find out why my comment cannot be retrieved.
If you don't see a problem of the above order send function then probably it's fine.
by hkenrique
Fri Jan 15, 2021 3:01 am
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

thank you for your detailed explanation. maybe it's something with my order send function that caused the comment cannot be retrieved? my code that sends the order: long uid= __ib.order_send(__conid_EURUSD ,ibOrderType // defined in file include/trade-commander.com/ibplugin_types.mqh ,size ,0 ,targe...
by hkenrique
Thu Jan 14, 2021 5:11 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Hi,
I also tested the code:
comment = ibgORDER_ATTRIBUTE(IB_PLUGIN_DEF_CONNID,orderId,10);
this code works in the old version to retrieve the comment but seems not working in the new version any more.
I suspect there is some defect in the dll.
It's an important function for me so please take a look.
by hkenrique
Thu Jan 14, 2021 4:36 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Yes you can see my loop is able to retrieve the parent order id of the orders (490385839). but comment is void: CS 0 00:34:41.005 HFTLiteClassicIB (EURUSD,M1) CONNECTIONID: 1 MF 0 00:34:41.006 HFTLiteClassicIB (EURUSD,M1) Order Info: comment:, pid:490385839 NR 0 00:34:41.006 HFTLiteClassicIB (EURUSD...
by hkenrique
Thu Jan 14, 2021 4:21 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Hi, Yes I have done this but cannot retrieve the comment. full code: int orderNum=ibgCREATE_PENDING_ORDER_SNAPSHOT(IB_PLUGIN_DEF_CONNID,__conid,1); for(int i=0;i<orderNum;++i) { string comment=ibgORDER_INFO_STR(i,49); //comment of order unsigned long pid=ibgORDER_INFO_INT64(i,55); //pid of order Pri...
by hkenrique
Thu Jan 14, 2021 4:01 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Hi, Continuing our discussion about the comment field. So I sent an order with some comment but it seems I cannot get the comment with string comment=ibgORDER_INFO_STR(i,49); //comment of order long pid=ibgORDER_INFO_INT64(i,55); //pid of order PrintFormat("Order Info: comment:%s, pid:%d",comment,pi...
by hkenrique
Thu Jan 14, 2021 2:09 pm
Forum: IBPlugin
Topic: Managing multiple positions - is there a "comment" field in position?
Replies: 17
Views: 8318

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

Hello, I am trying to manage multiple positions in IB, where ibgCREATE_POSITION_SNAPSHOT seems to present a nice realization. Now, I need to be able to differentiate the positions created by different strategies, they can be of the same symbol or different symbols. In MT5 I normally use magic number...