|
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 |
[Saidar]
|
Post subject: Time and Tester |
Post rating: 0
|
Posted: Sun 19 Dec, 2010, 19:46
|
|
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.
|
|
|
|
 |
Cashbone
|
Post subject: Re: Time and Tester |
Post rating: 0
|
Posted: Mon 20 Dec, 2010, 12:30
|
|
User rating: 3
Joined: Tue 17 May, 2011, 16:51 Posts: 38 Location: Sweden, Jonkoping
|
|
|
|
 |
[Saidar]
|
Post subject: Re: Time and Tester |
Post rating: 0
|
Posted: Mon 20 Dec, 2010, 17:40
|
|
User rating: 0
Joined: Tue 07 Dec, 2010, 10:51 Posts: 39
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|