Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3558 There is no enough data to calculate values
 Post subject: JFOREX-3558 There is no enough data to calculate values Post rating: 0   New post Posted: Thu 23 Feb, 2012, 11:11 

User rating: -
I´m getting lits of warnings on the java console, while running my strategy:

WARNUNG impl.bu ] There is no enough data to calculate values

The Strategy uses a couple of indicators on different periods. Is there any way to find out, which indicator/period/instrument is causing this warning?


 
 Post subject: Re: There is no enough data to calculate values Post rating: 0   New post Posted: Thu 23 Feb, 2012, 15:54 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide an example startegy which reproduces the issue.


 
 Post subject: Re: There is no enough data to calculate values Post rating: 0   New post Posted: Thu 23 Feb, 2012, 17:21 

User rating: 1
Joined: Thu 23 Feb, 2012, 16:38
Posts: 44
Well, I´m not allowed to post the strategy in this forum. I tried to write a simple strategy which reproduces the problem with no success.
This problem occured the first time, when i upgraded to version jforex-2.14.*/api-2.5*, with version 2.13.*/api-2.38* i never had that kind of warning.

Could you please explain to me what is causing these kind of warning. And are there any specific API changes related to this warning?
Maybe, if you help me to understand the problem, I can debug my code and find the problem myself.

Thank you.


 
 Post subject: Re: JFOREX-3558 There is no enough data to calculate values Post rating: 0   New post Posted: Fri 24 Feb, 2012, 10:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you at least provide the list of indicators you call with data feeds they use?


 
 Post subject: Re: JFOREX-3558 There is no enough data to calculate values Post rating: 0   New post Posted: Fri 24 Feb, 2012, 11:23 

User rating: 1
Joined: Thu 23 Feb, 2012, 16:38
Posts: 44
Sure just look at the example strategy attached.
But as I wrote, this strategy doesn´t reproduce the problem.


Attachments:
ExampleStrategy.java [3.26 KiB]
Downloaded 362 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: JFOREX-3558 There is no enough data to calculate values Post rating: 0   New post Posted: Mon 27 Feb, 2012, 17:04 

User rating: 1
Joined: Thu 23 Feb, 2012, 16:38
Posts: 44
Ok now I can provide a strategy, which reproduces the warning.
The AROON-Indicator is causing the problem, when you calculate it with candlesAfter=1. Other indicators, like Stochastic do not produce a warning with this setting.

Hope this helps to find the problem.


Attachments:
ExampleStrategy.java [2.07 KiB]
Downloaded 375 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: JFOREX-3558 There is no enough data to calculate values Post rating: 0   New post Posted: Tue 06 Mar, 2012, 14:02 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You are trying to calculate the indicator value for a bar that had not formed yet (by passing the time of the latest tick and specifying the number of candles after = 1). That's the reason why the warning occurs. Warning text fixed, made more clear.


 

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