Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
what is Period.createCustomPeriod not compliant? http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=24483 |
Page 1 of 1 |
Author: | [quantisan] [ Wed 15 Dec, 2010, 15:39 ] |
Post subject: | what is Period.createCustomPeriod not compliant? |
I tried to create a custom 7 seconds period using: Period.createCustomPeriod(Unit.Second, 7); Then I got an error saying the period is not compliant with Daily. What does that mean? How do I fix it? What is a compliancy period as said in Period.getCompliancyPeriod()? |
Author: | API Support [ Fri 17 Dec, 2010, 11:49 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
Hi, Custom period must be dividable by a day milliseconds count (24*60*60*1000) Because in a day all bars must be whole. |
Author: | SFXbernhard [ Mon 24 Aug, 2015, 16:47 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
why does Period.createCustomPeriod(Unit.Minute, 90); not work then? 24h/1.5h = 16 |
Author: | API Support [ Wed 26 Aug, 2015, 15:47 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
Could you please elaborate. Here is an example that works. Period period = Period.createCustomPeriod(Unit.Minute, 90); |
Author: | SFXbernhard [ Sun 30 Aug, 2015, 19:11 ] | ||
Post subject: | Re: what is Period.createCustomPeriod not compliant? | ||
See the following example. 90 min chart does not open! I used the current JForex 2.45.15 Please fix this bug. package jforex; Console throws the following exception java.lang.IllegalArgumentException: JFTimeZone is not appropriate for this unit. Received Unit = Minute, numOfUnits = 90, JFTimeZone = EET with standard offset -7200000(milliseconds) and daylight offset -10800000(milliseconds). Offsets cannot be other than 0 for periods with Unit smaller than Unit.Day.
|
Author: | API Support [ Mon 31 Aug, 2015, 07:07 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
Only GMT timezone can be used with 90 minute charts. And we are not planning to implement compatibility with other timezones. |
Author: | SFXbernhard [ Mon 31 Aug, 2015, 13:32 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
JForex Platform time zone is "GMT (UTC)"! I also tried the following change, but it did not work either. Period NeunzigMinutePeriode = Period.createCustomPeriod(Unit.Minute,90, JFTimeZone.UTC ); Please clarify what must I do to open a 90 min chart. It seems more like a bug to me at the moment. |
Author: | API Support [ Tue 01 Sep, 2015, 13:07 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
Please set time zone to UTC in JForex platform Tools > Preferences > Charts. |
Author: | SFXbernhard [ Tue 01 Sep, 2015, 15:12 ] |
Post subject: | Re: what is Period.createCustomPeriod not compliant? |
This helped. But why do you set the Day Start Time to EET (UTC+2h) by default? I never changed it. Shouldn't this be UTC to avoid confusions like this? |
Page 1 of 1 |