|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Strategy don't see manually opened orders ? |
FXace
|
Post subject: Strategy don't see manually opened orders ? |
Post rating: 0
|
Posted: Mon 06 Feb, 2012, 07:25
|
|
User rating: 0
Joined: Tue 05 Jul, 2011, 15:21 Posts: 28 Location: Switzerland,
|
Dear Support,
I have a problem with following simple call in IStrategy implementation (ran through stand-alone Java API application):
List<IOrder> dukaOrders = context.getEngine().getOrders(instrument);
It returns empty list despite me opening a order in the same instrument (EURUSD) manually through Web application. The order is visible in JForex too.
Am I doing something wrong ? I'd assume IStrategy implementations can fetch orders opened manually.
Obviously I double-checked that IStrategy logs in with same username used for manual access.
Thanks in advance !
|
|
|
|
 |
API Support
|
Post subject: Re: Strategy don't see manually opened orders ? |
Post rating: 0
|
Posted: Mon 06 Feb, 2012, 08:50
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We did not manage to replicate the issue.
|
|
|
|
 |
FXace
|
Post subject: Re: Strategy don't see manually opened orders ? |
Post rating: 0
|
Posted: Tue 07 Feb, 2012, 07:29
|
|
User rating: 0
Joined: Tue 05 Jul, 2011, 15:21 Posts: 28 Location: Switzerland,
|
Hi Support,
thanks for the quick reply but unfortunately I'm still having this problem, please refer to the attachments.
Maybe one of these are causing this: 1. I'm running ITesterClient instance and its data is set like this:
client.setDataInterval(DataLoadingMethod.ALL_TICKS, startInterval.getMillis(), roundedEnd.getMillis()); LOGGER.info("Downloading data"); Future<?> future = client.downloadData(null);
roundedEnd is the start of the last formed 30min bar, for example for 7:27 CET it's 7:30 CET, and startInterval is simply previous bar, at 7:00 CET.
Obviously this should affect only the bars sent to the IStrategy but maybe somehow it affects also the orders reported (order was set on last Sunday night, 05.02)
2. I'm still on version 2.6.50...
Please revise, thanks in advance
Attachments: |
Eclips debug window.jpg [230.48 KiB]
Downloaded 315 times
|
WebTrader position.jpg [76.43 KiB]
Downloaded 299 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.
|
|
|
|
|
 |
API Support
|
Post subject: Re: Strategy don't see manually opened orders ? |
Post rating: 0
|
Posted: Tue 07 Feb, 2012, 08:19
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
FXace
|
Post subject: Re: Strategy don't see manually opened orders ? |
Post rating: 0
|
Posted: Wed 08 Feb, 2012, 06:52
|
|
User rating: 0
Joined: Tue 05 Jul, 2011, 15:21 Posts: 28 Location: Switzerland,
|
Oh of course, now I see. Thanks for the explanation !
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|