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.

Time and Tester
 Post subject: Time and Tester Post rating: 0   New post Posted: Sun 19 Dec, 2010, 19:46 
User avatar

User rating: 0
Joined: Tue 07 Dec, 2010, 10:51
Posts: 39
Hello everyone,

Many of my strategies focus on certain hours of the day to trade, mostly london and new york open hours. Currently I use the following code to determine the hour of the day:

Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
calendar.setTimeInMillis(_signalBarTime);

_hours=calendar.get(Calendar.HOUR_OF_DAY);

My question is, does the hours stay constant through history? Is it affected by daylight savings? For instance London opens at 08:00 UTC, if I use hour 8 throughout three years of testing will it always be London open or can it change because of certain factors?

I know this is a weird question but I need to be 100% sure that I am always trading at the hour that I need to trade at.


 
 Post subject: Re: Time and Tester Post rating: 0   New post Posted: Mon 20 Dec, 2010, 12:30 

User rating: 3
Joined: Tue 17 May, 2011, 16:51
Posts: 38
Location: Sweden, Jonkoping
JForex time is always GMT. I think you can find what you are looking for in this thread: https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=44&t=24240


 
 Post subject: Re: Time and Tester Post rating: 0   New post Posted: Mon 20 Dec, 2010, 17:40 
User avatar

User rating: 0
Joined: Tue 07 Dec, 2010, 10:51
Posts: 39
Cashbone wrote:
JForex time is always GMT. I think you can find what you are looking for in this thread: https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=44&t=24240


Thanks will take a look


 

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