Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

JForex Standalone SDK GUI BackTesting TICK_BAR not working
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=50321
Page 1 of 1

Author:  ayp [ Mon 04 Nov, 2013, 16:20 ]
Post subject:  JForex Standalone SDK GUI BackTesting TICK_BAR not working

Hello,
I hope to run "GUIModeChartTypes.java" (at https://www.dukascopy.com/wiki/#JForex_S ... hart_theme)
on JForex-API 2.9.4.1, Demo Account

When "TIME_PERIOD_AGGREGATION" selected -> works fine!
However, when "TICK_BAR" selected, it doesn't work...

I suspected that requesting historical data was too large size,
so I tried to use client.setDataInterval() method to set very short period(about 2 hour),
but result was changed nothing

What's the best way to go?

-------------------------
2013-11-04 23:30:25.256 INFO StrategyTester - Connected
2013-11-04 23:30:25.256 INFO StrategyTester - Subscribing instruments...
2013-11-04 23:30:25.257 INFO StrategyTester - Downloading data
2013-11-04 23:30:28.616 INFO StrategyTester - Starting strategy
2013-11-04 23:30:29.021 INFO StrategyTester - Strategy started: 1
2013-11-04 23:30:31.117 INFO StrategyTester - dataLoaded Getting prices before start time
2013-11-04 23:30:31.118 INFO StrategyTester - Pause execution for max 300 secs till chart gets loaded. For quicker loading please decrease currentChart.getBarsCount() - manually decrease chart's horizontal scale.
2013-11-04 23:30:31.134 INFO StrategyTester - dataLoaded Creating data loading threads
2013-11-04 23:30:31.149 INFO StrategyTester - dataLoaded Getting prices before start time
2013-11-04 23:30:31.215 WARN WLabelData - White Label Image is not received
2013-11-04 23:30:31.227 INFO StrategyTester - dataLoaded Filling in-progress candles
2013-11-04 23:30:31.385 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=300 secs
2013-11-04 23:30:31.642 INFO StrategyTester - dataLoaded Executing onStart
Started

2013-11-04 23:30:31.656 INFO StrategyTester - dataLoaded Running
2013-11-04 23:30:32.385 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=299 secs
2013-11-04 23:30:33.385 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=298 secs

... (an omission)

2013-11-04 23:32:11.279 WARN AbstractLoadNumberOfPriceAggregationAction - Can not wait so much time for in prgress bar is being created for - EUR/USD Ticks Bid 3
2013-11-04 23:32:11.279 ERROR AbstractLoadNumberOfPriceAggregationAction - Unable to retrieve in progress bar for EUR/USD Ticks Bid 3
java.lang.IllegalStateException: Unable to retrieve in progress bar for EUR/USD Ticks Bid 3
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.run(AbstractLoadNumberOfPriceAggregationAction.java:163)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2013-11-04 23:32:11.404 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=200 secs
2013-11-04 23:32:12.404 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=199 secs
2013-11-04 23:32:13.405 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=198 secs

... (an omission)

2013-11-04 23:35:30.524 INFO StrategyTester - Min price=0.00000, bar count on chart=227, time left=1 secs
2013-11-04 23:35:31.524 INFO StrategyTester - Chart loaded after 300 secs. Please press continue.
-------------------------

It say "Chart loaded after 300 secs. Please press continue."
I press continiue
but it doesn't start rendering chart.

Sorry for my poor English.
Please help me.

Author:  ayp [ Mon 04 Nov, 2013, 19:26 ]
Post subject:  Re: JForex Standalone SDK GUI BackTesting TICK_BAR not working

I tried to run "MainOpenChart.java" (at https://www.dukascopy.com/wiki/#JForex_S ... om_IClient).
It doesn't render TICK_BAR chart, too.
Please advise me.

My environment : Win8, JDK 1.7.0_45, JRE 7.0.45, all 64bit

-----------------------------------------
2013-11-05 03:16:53.632 WARN AbstractLoadNumberOfPriceAggregationAction - There is no in progress bar subscribtion for - EUR/USD Ticks Bid 2
2013-11-05 03:16:53.633 ERROR AbstractLoadNumberOfPriceAggregationAction - Unable to retrieve in progress bar for EUR/USD Ticks Bid 2
java.lang.IllegalStateException: Unable to retrieve in progress bar for EUR/USD Ticks Bid 2
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.run(AbstractLoadNumberOfPriceAggregationAction.java:163)
at com.dukascopy.charts.data.datacache.priceaggregation.dataprovider.PriceAggregationDataProvider.loadTickBarDataSynched(PriceAggregationDataProvider.java:594)
at com.dukascopy.charts.data.datacache.priceaggregation.dataprovider.PriceAggregationDataProvider.loadTickBarData(PriceAggregationDataProvider.java:608)
at com.dukascopy.charts.data.datacache.intraperiod.IntraperiodBarsGenerator.loadTickBarsForBuffer(IntraperiodBarsGenerator.java:1790)
at com.dukascopy.charts.data.datacache.intraperiod.IntraperiodBarsGenerator.access$2100(IntraperiodBarsGenerator.java:68)
at com.dukascopy.charts.data.datacache.intraperiod.IntraperiodBarsGenerator$6.run(IntraperiodBarsGenerator.java:718)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2013-11-05 03:16:53.711 ERROR AbstractLoadNumberOfPriceAggregationAction -
java.lang.NullPointerException
at com.dukascopy.charts.data.datacache.DataCacheUtils.getCandleStartFast(DataCacheUtils.java:528)
at com.dukascopy.charts.data.datacache.DataCacheUtils.getTradingSessionStart(DataCacheUtils.java:1241)
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.performDirectBarsLoadForTimeInterval(AbstractLoadNumberOfPriceAggregationAction.java:624)
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.run(AbstractLoadNumberOfPriceAggregationAction.java:221)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
FeedDescriptor [dataType=TICK_BAR, instrument=EUR/USD, offerSide=Bid, period=Ticks, tickBarSize=2, filter=NO_FILTER] 1383589025875[2013-11-04 18:17:05.875+0000] / 1.35103 / 1.351
FeedDescriptor [dataType=TICK_BAR, instrument=EUR/USD, offerSide=Bid, period=Ticks, tickBarSize=2, filter=NO_FILTER] 1383589026538[2013-11-04 18:17:06.538+0000] / 1.35102 / 1.351
2013-11-05 03:17:02.913 ERROR AbstractLoadNumberOfPriceAggregationAction -
java.lang.NullPointerException
at com.dukascopy.charts.data.datacache.DataCacheUtils.getCandleStartFast(DataCacheUtils.java:528)
at com.dukascopy.charts.data.datacache.DataCacheUtils.getTradingSessionStart(DataCacheUtils.java:1241)
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.performDirectBarsLoadForTimeInterval(AbstractLoadNumberOfPriceAggregationAction.java:624)
at com.dukascopy.charts.data.datacache.priceaggregation.AbstractLoadNumberOfPriceAggregationAction.run(AbstractLoadNumberOfPriceAggregationAction.java:221)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Author:  API Support [ Tue 05 Nov, 2013, 16:08 ]
Post subject:  Re: JForex Standalone SDK GUI BackTesting TICK_BAR not working

This will be fixed as soon as available.

Author:  ayp [ Tue 05 Nov, 2013, 19:58 ]
Post subject:  Re: JForex Standalone SDK GUI BackTesting TICK_BAR not working

Thank you for your reply! I'm glad
Really!? I'll wait for fix. Thanks.

  Page 1 of 1