Dukascopy
 
 
Wiki JStore Search Login

Indicator and History Request Producing Different Number of Outputs for Same Time Period
 Post subject: Indicator and History Request Producing Different Number of Outputs for Same Time Period Post rating: 0   New post Posted: Sun 28 Jul, 2013, 23:54 
User avatar

User rating: 0
Joined: Fri 19 Apr, 2013, 11:35
Posts: 11
Location: Canada, Ottawa
Quote:
22:46:54 Fractal Indicator Length: 53
22:46:54 Bars List Length: 54
22:46:54 Length Data for Period: Hourly
22:46:54 Fractal Indicator Length: 71
22:46:54 Bars List Length: 73
22:46:54 Length Data for Period: Daily
22:46:54 Fractal Indicator Length: 71
22:46:54 Bars List Length: 73
22:46:54 Length Data for Period: Daily
22:46:54 Fractal Indicator Length: 85
22:46:54 Bars List Length: 87
22:46:54 Length Data for Period: Daily
22:46:54 Fractal Indicator Length: 100
22:46:54 Bars List Length: 101
22:46:54 Length Data for Period: Weekly


I have attached the file that has produced the above noted output.

I have been requesting two pieces of information for each time period:
- A number of bars for a specific time period
- The corresponding fractal indicator values for that time period.

In both cases, I have opted to filter all flats.

Can someone please explain to me why, for the same time period, I am receiving different numbers of bars and corresponding fractal values?

Thank you,

Brad


Attachments:
ErrorDemo.java [5.03 KiB]
Downloaded 381 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: Indicator and History Request Producing Different Number of Outputs for Same Time Period Post rating: 0   New post Posted: Tue 26 Nov, 2013, 15:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You have to increase the value of 'numberOfBars' you specify when calculating the 'to' time, otherwise fractal won't be able to calculate its value for the bar that includes that 'to' time. fractal(3) has a lookforward of 3 which means the last bar (that includes the 'to' time) needs to have 3 bars ahead of it.


 

Jump to:  

cron
  © 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