Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2215 DataCacheException
 Post subject: JFOREX-2215 DataCacheException Post rating: 0   New post Posted: Tue 07 Sep, 2010, 14:30 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
the following error appeared before the strategy code starts executing.
(strategy run on tester, USD/JPY, period 2007.06.10 to 2007.07.21, ticks)

Quote:
2010-09-07 14:33:50.915 INFO Main - Strategy started: 1
2010-09-07 14:33:50.915 DEBUG DCClientImpl - Strategy execution progress: Getting prices before start time
2010-09-07 14:33:50.916 INFO Main - Getting prices before start time
2010-09-07 14:33:50.934 ERROR t - Time is not valid candle start time for period requested
com.dukascopy.charts.data.datacache.DataCacheException: Time is not valid candle start time for period requested
at com.dukascopy.charts.data.datacache.p.<init>(Unknown Source)
at com.dukascopy.charts.data.datacache.b.b(Unknown Source)
at com.dukascopy.charts.data.datacache.b.a(Unknown Source)
at com.dukascopy.dds2.greed.agent.strategy.tester.t.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


 
 Post subject: Re: JFOREX-2215 DataCacheException Post rating: 0   New post Posted: Wed 08 Sep, 2010, 22:29 

User rating: 0
Joined: Fri 07 May, 2010, 02:59
Posts: 61
Round the time you pass into it for the start & end time. As I recall, I just had to round off the milliseconds.

-Brian


 
 Post subject: Re: JFOREX-2215 DataCacheException Post rating: 0   New post Posted: Mon 13 Sep, 2010, 20:43 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Hi Brian,

thanks for your hint. We are already cutting ms off the start time when retrieving bars.
The error did occur before onStart() or onTick() are called (i.e. while DK is "getting prices before start time").
However, after restarting the client and starting the strategy again for the very same period, no error did occur.

Best,
RR.


 
 Post subject: Re: JFOREX-2215 DataCacheException Post rating: 0   New post Posted: Tue 14 Sep, 2010, 07:46 

User rating: 0
Joined: Fri 07 May, 2010, 02:59
Posts: 61
The intermittent behavior you describe is exactly what I was seeing. I haven't encountered it since I started rounding the times. If you figure it out, please post a message about it; heaven knows I might run into the same thing.

-Brian


 
 Post subject: Re: JFOREX-2215 DataCacheException Post rating: 0   New post Posted: Sat 11 Dec, 2010, 14:32 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
this post is already moved to "fixed bugs".

However I would like to report the cause of the error message, that I recently detected.

It did happen by setting client.setDataInterval (...) to from/to times that included milliseconds != 0.

Best, RR.


 

Jump to:  

  © 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