Dukascopy
 
 
Wiki JStore Search Login

Strange error if backtesting of >= 8 instruments
 Post subject: Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Tue 11 Sep, 2012, 11:44 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Hi,

I am always getting this multiple error message if I want to backtest 8 or more instruments at the same time (visual mode)
10:39:44 Error in indicator: java.lang.NullPointerException @ java.util.Arrays.binarySearch0(Unknown Source)
....

Console shows me the following

11.09.2012 12:31:49.614   SEVERE                   datacache.bc ] Last candle time is bigger than new candle time, ignoring candle update
com.dukascopy.charts.data.datacache.DataCacheException: Last candle time is bigger than new candle time, ignoring candle update
   at com.dukascopy.charts.data.datacache.bc.a(Unknown Source)
   at com.dukascopy.charts.data.datacache.bc.b(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.au.c(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.a(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.u.run(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.a(Unknown Source)
   at com.dukascopy.dds2.greed.actions.StrategyTesterAction.AC(Unknown Source)
   at com.dukascopy.dds2.greed.actions.StrategyTesterAction.Ac(Unknown Source)
   at com.dukascopy.dds2.greed.actions.c.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source



Seen on Historical Tester of JForex DEMO version 2.18.10
There is no problem with Historical Tester on JForex Live, which is version 2.17.29


 
 Post subject: Re: APICLIENT-301 Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Tue 11 Sep, 2012, 16:32 

User rating: 0
Joined: Thu 30 Aug, 2012, 11:59
Posts: 11
Location: AustraliaAustralia
I also get this error on Standalone API 2.7.2, in my case, when subscribing to a large number of Renko feeds in backtesting mode.

Cheers.


 
 Post subject: Re: APICLIENT-301 Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Fri 14 Sep, 2012, 11:00 

User rating: 0
Joined: Thu 30 Aug, 2012, 11:59
Posts: 11
Location: AustraliaAustralia
This is the exception that I receive, when running a strategy that subscribes to a total of 15 Renko feeds, (made up by 3 instruments and 5 brick sizes)

[StrategyRunner Thread] ERROR com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator  - Last candle time is bigger than new candle time, ignoring candle update
com.dukascopy.charts.data.datacache.DataCacheException: Last candle time is bigger than new candle time, ignoring candle update
   at com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator.processCandle(IntraperiodCandlesGenerator.java:290)
   at com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator.processCandle(IntraperiodCandlesGenerator.java:252)
   at com.dukascopy.dds2.greed.agent.strategy.tester.TesterFeedDataProvider.barsReceived(TesterFeedDataProvider.java:93)
   at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:664)
   at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:473)
   at java.lang.Thread.run(Thread.java:662)


Cheers.


 
 Post subject: Re: APICLIENT-301 Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Mon 17 Sep, 2012, 00:24 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
During the weekend (GMT Saturday) my backtests worked, but there were no new ticks from the instruments.
But as soon as there were new ticks coming from the instruments at GMT Sunday night, the error appeared again.


 
 Post subject: Re: APICLIENT-301 Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Fri 21 Sep, 2012, 14:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
API 2.7.3


 
 Post subject: Re: APICLIENT-301 Strange error if backtesting of >= 8 instruments Post rating: 0   New post Posted: Mon 01 Oct, 2012, 16:02 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Thanks. It seems to be fixed.


 

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