|
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.
Backtesting exception with strange tick time |
hashcat
|
Post subject: Backtesting exception with strange tick time |
Post rating: 0
|
Posted: Tue 21 Apr, 2015, 15:28
|
|
User rating: 1
Joined: Mon 27 Jan, 2014, 14:03 Posts: 7 Location: TaiwanTaiwan
|
When I use below, the code works correctly without hassles: client.setDataInterval(DataLoadingMethod.ALL_TICKS, dateFrom.getTime(), dateTo.getTime()); But if I use this, it throws a lot of similiar errors: client.setDataInterval(Period.ONE_HOUR, OfferSide.ASK, InterpolationMethod.FOUR_TICKS, dateFrom.getTime(), dateTo.getTime()); Why these two's results are quite different? The error message is below, It looks data is not loaded. Can this be fixed?
c.d.d.g.a.s.t.d.AbstractHTFlowDataCreator - to(2015-02-06 05:59:59:999) > last tick time (292269055-12-02 16:47:04:192 -9223372036854775808) java.lang.IllegalArgumentException: to(2015-02-06 05:59:59:999) > last tick time (292269055-12-02 16:47:04:192 -9223372036854775808) at com.dukascopy.charts.data.datacache.customticks.AbstractLoadCustomTicksFromCandlesAction.validateFromTo(AbstractLoadCustomTicksFromCandlesAction.java:65) ~[greed-common-315.2.jar:315.2] at com.dukascopy.charts.data.datacache.customticks.AbstractLoadCustomTicksFromCandlesAction.<init>(AbstractLoadCustomTicksFromCandlesAction.java:59) ~[greed-common-315.2.jar:315.2] at com.dukascopy.charts.data.datacache.customticks.LoadFourTicksAction.<init>(LoadFourTicksAction.java:39) ~[greed-common-315.2.jar:315.2] at com.dukascopy.charts.data.datacache.FeedDataProvider.createCustomTicksLoadingAction(FeedDataProvider.java:2675) ~[greed-common-315.2.jar:315.2] at com.dukascopy.charts.data.datacache.FeedDataProvider.loadCustomTicksSynched(FeedDataProvider.java:2634) ~[greed-common-315.2.jar:315.2]
|
|
|
|
 |
API Support
|
Post subject: Re: Backtesting exception with strange tick time |
Post rating: 0
|
Posted: Thu 30 Apr, 2015, 11:50
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We were unable to reproduce this problem. Please provide a code sample.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|