Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Remote mode: onStart method: existing positions labels are not all printed out
 Post subject: Remote mode: onStart method: existing positions labels are not all printed out Post rating: 0   New post Posted: Wed 23 Oct, 2013, 17:57 
User avatar

User rating: 1
Joined: Thu 24 Nov, 2011, 09:09
Posts: 36
Location: FranceFrance
Dear Support,

Thanks for having fixed the bug (viewtopic.php?f=88&t=50245)
Sorry, but it remains however a little bit if it.

I remind the test code:

- subscribe to EUR/USD, check if it's ok;
- ask the engine to provide the list of positions (whatever their status);
- print order labels;
- print the number of positions, N;

Now, the positions are correctly listed when called from onBar method.
However, when called from onStart method, N is all right, but only some labels are printed out, not all.

INFO 23.10.2013 16:48:00 nPos: 3
INFO 23.10.2013 16:48:00 Position : jf19vod3b
INFO 23.10.2013 16:48:00 Position : jfh8yok18
INFO 23.10.2013 16:48:00 Position : jfr306913
INFO 23.10.2013 16:48:00 (onBar):10s- and 15min- Bar time: 2013-10-23 16:48:00, 2013-10-23 16:45:00
INFO 23.10.2013 16:47:57 nPos: 3
INFO 23.10.2013 16:47:57 Position : jfh8yok18
INFO 23.10.2013 16:47:57 (onStart): 10s- and 15min- Bar time: 2013-10-23 16:47:50, 2013-10-23 16:45:00

Please find attached the code.

In adavnce, thank you very much.

almc


Attachments:
acRemoteTests.java [2.83 KiB]
Downloaded 261 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Remote mode: onStart method: existing positions labels are not all printed out Post rating: 0   New post Posted: Thu 24 Oct, 2013, 09:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There is a limitation of 1ms per log record. If there is shorter time interval between the logs then consider aggregating them and printing them all at once.
We are currently working on removing this limitation.


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com