|
NullPointerException in ITesterClient.runStrategy |
vietllc
|
Post subject: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Wed 01 Feb, 2017, 12:39
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
I wrote an app using the JForex API to run backtesting. It used to work fine until recently when I get the following exception:
Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test interval start 2017-01-01 00:00:00:000 at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HTCandlesCreator.<init>(HTCandlesCreator.java:85) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createCandlesLoader(HistoricalTesterDataManager.java:710) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddCandlesLoader(HistoricalTesterDataManager.java:240) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddDefaultDataLoaders(HistoricalTesterDataManager.java:888) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddDefaultDataLoaders(HistoricalTesterDataManager.java:224) at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.initBeforeRun(StrategyRunner.java:273) at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:323)
There has been no change in my code except updating to the latest API version. I thought this update was the cause of the problem but when I backed down to the previous API version, I still got the same exception. Please note that I never had to explicitly download the tick data prior to running the strategy. It seems the JForex client library does this automatically. Please help!
|
|
|
|
|
vietllc
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Wed 01 Feb, 2017, 12:55
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
I tried running backtesting of my strategy on the JForex platform and it didn't run either.
|
|
|
|
|
sowona
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Thu 02 Feb, 2017, 03:09
|
|
User rating: 0
Joined: Tue 30 Jul, 2013, 23:11 Posts: 10 Location: United Kingdom, Reading
|
|
|
|
|
Platform Support
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Fri 03 Feb, 2017, 08:18
|
|
JForex Master | |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
We are looking into this.
|
|
|
|
|
Platform Support
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Wed 08 Feb, 2017, 16:11
|
|
JForex Master | |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
Please update to version 3.1.0 (JForex 3) or 2.45.67 (JForex)
|
|
|
|
|
vietllc
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Wed 08 Feb, 2017, 17:55
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
When will you release a new client build with this bug fix?
|
|
|
|
|
Platform Support
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Thu 09 Feb, 2017, 17:33
|
|
JForex Master | |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
It has been released on DEMO. We plan to release it on LIVE on next Monday.
|
|
|
|
|
vietllc
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Fri 10 Feb, 2017, 03:40
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
How about the client library for custom app development? I need this for my custom app. Thanks.
|
|
|
|
|
khofx
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Tue 14 Feb, 2017, 21:11
|
|
User rating: 0
Joined: Tue 08 Apr, 2014, 15:03 Posts: 7 Location: GermanyGermany
|
Maven repo is updated and backtesting works again as of today.
|
|
|
|
|
vietllc
|
Post subject: Re: NullPointerException in ITesterClient.runStrategy |
Post rating: 0
|
Posted: Sat 03 Jun, 2017, 05:56
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
Backtesting is working now but I found 2 major problems with it:
1. The client library now downloads too much data. For example, I ran backtesting on NZDJPY but when I looked in the cache directory, I also saw data for USDJPY and other pairs. This causes my disk to fill up very quickly aside from slowing down the backtest.
2. Sometimes it looks like the library is using the wrong data set. There are several times when I ran a backtest and got one result. Then I moved to a different machine and ran the same backtest and got another, completely different result. I made sure to clean out the cache directory on both machines before I and the backtests.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|