Dukascopy
 
 
Wiki JStore Search Login

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.

issue with history.getBar?
 Post subject: issue with history.getBar? Post rating: 0   New post Posted: Tue 03 Apr, 2012, 20:08 

User rating: 0
Joined: Mon 27 Feb, 2012, 00:59
Posts: 6
Hi,

Is there a current issue with the history.getBar api call? My strategy does a simple call :

history.getBar(instrument, this.TargetPeriod, OfferSide.BID, 1);

but it has started returning an exception when I run it:

com.dukascopy.api.JFException: Could not load bar for instrument [EUR/USD], period [Hourly], side [Bid], start time [2011.10.04 10:00:00 000], current bar start time [2011.10.04 11:00:00 000]
at com.dukascopy.api.impl.h.a(Unknown Source)
at com.dukascopy.api.impl.h.getBar(Unknown Source)
at james16.PinBar_v1_0.checkForOpenOrderCondition(PinBar_v1_0.java:344)
at james16.PinBar_v1_0.checkForNewOrders(PinBar_v1_0.java:248)
at james16.PinBar_v1_0.onBar(PinBar_v1_0.java:404)
at com.dukascopy.dds2.greed.agent.strategy.tester.b.a(Unknown Source)
at com.dukascopy.dds2.greed.agent.strategy.tester.t.run(Unknown Source)
at com.dukascopy.dds2.greed.agent.strategy.tester.b.a(Unknown Source)
at com.dukascopy.dds2.greed.actions.StrategyTesterAction.yK(Unknown Source)
at com.dukascopy.dds2.greed.actions.StrategyTesterAction.yk(Unknown Source)
at com.dukascopy.dds2.greed.actions.c.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Any idea what has gone wrong?

Thanks,

James.


 
 Post subject: Re: issue with history.getBar? Post rating: 0   New post Posted: Wed 04 Apr, 2012, 06:52 
User avatar

User rating: 0
Joined: Tue 05 Jul, 2011, 15:21
Posts: 28
Location: Switzerland,
Hi James,

might not be the real reason but last two days I observed occasional outages of historical data server. I have a strategy which ensures that it starts only when it receives full 30min bar in onBar call, even trying to repeat this for several times. It failed miserably :D the whole European afternoon yesterday for example...

Cheers,

FXace


 
 Post subject: Re: issue with history.getBar? Post rating: 0   New post Posted: Thu 05 Apr, 2012, 14:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
hartjr wrote:
Any idea what has gone wrong?
Apparently there had been a temporary datacache problem. If the problem does persist, please delete your local cache, such that the data can get reloaded from the data-feed server.


 

Jump to:  

cron
  © 1998-2025 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