|
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.
Demo Server operating times |
[rjs2006]
|
Post subject: Demo Server operating times |
Post rating: 0
|
Posted: Mon 18 Jan, 2010, 00:48
|
|
User rating: 0
Joined: Mon 11 Jan, 2010, 16:13 Posts: 4
|
It is currently 6:45PM EST and I am attempting to test against the demo server.
Keep seeing:
om.dukascopy.api.JFException: Instrument [EUR/USD] not opened
in my logs. Can someone point me to any information on the availability of the demo server and when rates are 'open' ?
thanks much,
Bob
|
|
|
|
 |
API Support
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Mon 18 Jan, 2010, 10:20
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Answer: Market during winter time is opening at 22.00 GMT and during summer time - at 21:00 GMT. Also, please make sure that your are subscribed to EUR/USD.
|
|
|
|
 |
[rjs2006]
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Mon 18 Jan, 2010, 14:47
|
|
User rating: 0
Joined: Mon 11 Jan, 2010, 16:13 Posts: 4
|
thank you. I am writing a standalone app and didn't realize that I needed to subsribe. this works now.
|
|
|
|
 |
[LelioFX]
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Mon 27 Sep, 2010, 15:02
|
|
User rating: 0
Joined: Mon 27 Sep, 2010, 14:41 Posts: 6
|
Hello
I'm trying to familiarize myself with JForex Strategy API, and when I start the strategy there is a error that I can't understand.
I placed a small piece of code at the "onStart()" method in order to get the time of current bar. However, when I run the strategy the exception "Instrument [EUR/USD] not opened @ jforex...." is raised.
Then, just for a test, I changed place of that piece of code, placing it at the "onBar()" method. In that case it worked fine.
Why do this ocurr ?
Attachments: |
onStart.GIF [81.73 KiB]
Downloaded 535 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.
|
|
|
|
|
 |
[LelioFX]
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Mon 27 Sep, 2010, 15:05
|
|
User rating: 0
Joined: Mon 27 Sep, 2010, 14:41 Posts: 6
|
Here are the images regarding the problem I mentioned. Attachment:
onStart.GIF [81.73 KiB]
Downloaded 458 times
Attachment:
onBar.GIF [79.01 KiB]
Downloaded 467 times
|
|
|
|
 |
API Support
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Tue 28 Sep, 2010, 14:33
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
[LelioFX]
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Wed 29 Sep, 2010, 12:13
|
|
User rating: 0
Joined: Mon 27 Sep, 2010, 14:41 Posts: 6
|
Support wrote: Platform updated, version 2.5.8. It's ok now. Thank you.
|
|
|
|
 |
[LelioFX]
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Wed 06 Oct, 2010, 16:51
|
|
User rating: 0
Joined: Mon 27 Sep, 2010, 14:41 Posts: 6
|
A similar bug...
Please Support, check the method "getBar(Instrument instrument,Period period,OfferSide side,int shift) throws JFException"
It throws an exception when it is called in the "Strategy.onStart" method, as you can see -->> "com.dukascopy.api.JFException: Instrument [EUR/USD] not opened @ jforex.Strategy1.onStart"
However, the method above (getBar) works perfectly when I place it in the "Strategy.onBar(...) " method.
Thanks in advance.
|
|
|
|
 |
API Support
|
Post subject: Re: Demo Server operating times |
Post rating: 0
|
Posted: Tue 12 Oct, 2010, 09:40
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Will be fixed in next version. Workarond for current version would be calling History.getTimeOfLastTick in cycle in onStart method untill it returns correct value ignoring exception it throws.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|