I am getting an error message when I execute any strategy that involves retrieving data via a data feed. For example, I get the following error when I execute the FeedHistory strategy found on the wiki (
https://www.dukascopy.com/wiki/#Feed_history) in Jforex client (Dukascopy Bank ver. 2.39.2, JForex API ver. 2.10.1)
Strategy tester: com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192] @ jforex.strategy.FeedHistory.onStart(FeedHistory.java:32
)
I get the same error if I execute the strategy in eclipse using JForex SDK (DDS2-jClient-JForex-2.39.jar, JForex-API-2.10.1.jar)
2014-09-04 12:36:15.295 ERROR StrategyRunner - Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
at com.dukascopy.api.impl.util.HistoryUtils.validateBeforeTimeAfter(HistoryUtils.java:288)
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.getRangeBars(TesterHistory.java:1566)
at com.dukascopy.api.impl.History.getFeedData(History.java:2882)
at jforex.strategy.FeedHistory.onStart(FeedHistory.java:32)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:321)
at java.lang.Thread.run(Thread.java:745)
Strategy tester: com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192] @ jforex.strategy.FeedHistory.onStart(FeedHistory.java:32)
Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]: com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
at com.dukascopy.api.impl.util.HistoryUtils.validateBeforeTimeAfter(HistoryUtils.java:288)
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.getRangeBars(TesterHistory.java:1566)
at com.dukascopy.api.impl.History.getFeedData(History.java:2882)
at jforex.strategy.FeedHistory.onStart(FeedHistory.java:32)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:321)
at java.lang.Thread.run(Thread.java:745)
2014-09-04 12:36:15.310 ERROR TesterClientImpl$DefaultStrategyExceptionHandler - Exception thrown while running onStart method: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
at com.dukascopy.api.impl.util.HistoryUtils.validateBeforeTimeAfter(HistoryUtils.java:288)
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.getRangeBars(TesterHistory.java:1566)
at com.dukascopy.api.impl.History.getFeedData(History.java:2882)
at jforex.strategy.FeedHistory.onStart(FeedHistory.java:32)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:321)
at java.lang.Thread.run(Thread.java:745)
2014-09-04 12:36:15.312 ERROR TesterClientImpl - Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
com.dukascopy.api.JFException: Passed Time [2014-09-04 16:34:42:741] has to be in interval [2003-05-04 21:00:00:914; 292269055-12-02 16:47:04:192]
at com.dukascopy.api.impl.util.HistoryUtils.validateBeforeTimeAfter(HistoryUtils.java:288)
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.getRangeBars(TesterHistory.java:1566)
at com.dukascopy.api.impl.History.getFeedData(History.java:2882)
at jforex.strategy.FeedHistory.onStart(FeedHistory.java:32)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:321)
at java.lang.Thread.run(Thread.java:745)
I was not getting this error when i used the previous JForex SDK (DDS2-jClient-JForex-2.36.1jar, JForex-API-2.9.10.jar) in eclipse.
Is there a new way to retrieve using the data feed method?