Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Error with FeedHistory example with API 2.10.1
 Post subject: Error with FeedHistory example with API 2.10.1 Post rating: 0   New post Posted: Thu 04 Sep, 2014, 20:52 

User rating: 0
Joined: Mon 26 Sep, 2011, 22:31
Posts: 3
Location: Trinidad and Tobago,
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?


 
 Post subject: Re: Error with FeedHistory example with API 2.10.1 Post rating: 0   New post Posted: Fri 05 Sep, 2014, 08:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We can't replicate this, what parameters do you use? If you run it in the Historical Tester please provide a print-screen of the Historical Tester parameters.


 
 Post subject: Re: Error with FeedHistory example with API 2.10.1 Post rating: 0   New post Posted: Fri 05 Sep, 2014, 09:49 

User rating: 0
Joined: Mon 26 Sep, 2011, 22:31
Posts: 3
Location: Trinidad and Tobago,
Thanks for the quick response. I have attached the requested print-screen of the Historical Tester show the problem when I executed the FeedHistory strategy example.
Image


Attachments:
File comment: Error shown in Historical Tester
jforex_err.png [144.83 KiB]
Downloaded 444 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Error with FeedHistory example with API 2.10.1 Post rating: 0   New post Posted: Fri 05 Sep, 2014, 10:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We will fix this as soon as available.


 
 Post subject: Re: Error with FeedHistory example with API 2.10.1 Post rating: 0   New post Posted: Sun 19 Oct, 2014, 12:03 
User avatar

User rating: 0
Joined: Sat 13 Aug, 2011, 10:00
Posts: 6
Location: Hungary, Budapest
I get the same error with JForex API 2.10.1 for most of my strategies which worked well with previous versions.
This bug hasn't been fixed for 1.5 months. You should fix bugs faster.


 

Jump to:  

  © 1998-2025 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