Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

How does Deprecated DAILY_SUNDAY_IN_MONDAY affect old strategies ?
 Post subject: How does Deprecated DAILY_SUNDAY_IN_MONDAY affect old strategies ? Post rating: 0   New post Posted: Tue 15 Apr, 2014, 14:29 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Hi,

I see DAILY_SUNDAY_IN_MONDAY and DAILY_SKIP_SUNDAY are now Deprecated.

Can please support tell us what it is modifying for strategies using it ?

Which default timezone is now used for daily Bars ?


For instance, to get daily bars we used :

history.getBar(instrument, Period.DAILY_SUNDAY_IN_MONDAY, OfferSide.BID, shift);
now it should be :
history.getBar(instrument, Period.DAILY, OfferSide.BID, shift);

How do we set the timezone on UTC+2 in order to avoid the Sunday bar ?

Thanks


 
 Post subject: Re: How does Deprecated DAILY_SUNDAY_IN_MONDAY affect old strategies ? Post rating: 0   New post Posted: Tue 06 May, 2014, 14:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
nicofr0707 wrote:
I see DAILY_SUNDAY_IN_MONDAY and DAILY_SKIP_SUNDAY are now Deprecated.

Can please support tell us what it is modifying for strategies using it ?
You will need to set the timezone for the Period, this will be documented in the javadocs of the upcoming JForex-SDK release for JForex-API 2.9.10.
nicofr0707 wrote:
Which default timezone is now used for daily Bars ?
Period.DAILY.
nicofr0707 wrote:
For instance, to get daily bars we used :

history.getBar(instrument, Period.DAILY_SUNDAY_IN_MONDAY, OfferSide.BID, shift);
now it should be :
history.getBar(instrument, Period.DAILY, OfferSide.BID, shift);

How do we set the timezone on UTC+2 in order to avoid the Sunday bar ?
You can still use the Period.DAILY_SUNDAY_IN_MONDAY from API, but you won't be able to see the same feed in the platform.


 
 Post subject: Re: How does Deprecated DAILY_SUNDAY_IN_MONDAY affect old strategies ? Post rating: 0   New post Posted: Wed 07 May, 2014, 07:33 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
OK thanks.

Quote:
nicofr0707 wrote:
Which default timezone is now used for daily Bars ?

Period.DAILY


The answer is not clear to me.
What I'd like to know is, when we don't specify any timezone for the period,
which one is the default one (UTC ? UTC+2 ?...)

Best regards


 
 Post subject: Re: How does Deprecated DAILY_SUNDAY_IN_MONDAY affect old strategies ? Post rating: 0   New post Posted: Thu 08 May, 2014, 15:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
nicofr0707 wrote:
What I'd like to know is, when we don't specify any timezone for the period,
which one is the default one (UTC ? UTC+2 ?...)
UTC


 

Jump to:  

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