NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-09-2009, 07:47 AM   #1
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default Non-US users and the daylight savings time change

This mainly applies to non-US users. The daylight savings time doesn't change at the same time everywhere. So when it changes in the US and doesn't change for me, then my strategies are all out of sync. I just realized that this will impact backtesting as well. In europe the two times are out of sync for 3 or more weeks of the year..
cunparis is offline  
Reply With Quote
Old 03-09-2009, 07:55 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

cunparis,

If this influences your strategy you would need to address in your code for those particular weeks.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-09-2009, 08:10 AM   #3
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
cunparis,

If this influences your strategy you would need to address in your code for those particular weeks.
I don't see how I can.

Regular market hours in the US are 15:00 - 22:00 here. For 3 weeks (starting sunday) it is 14:00 - 21:00. The problem is I have no control over session times in the strategy. The only thing I can do is stop and restart my strategies using the new session time. i should have stopped them over the weekend and restarted but I didn't think the US was going on daylight savings time so soon.
cunparis is offline  
Reply With Quote
Old 03-09-2009, 08:13 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You can try using a time filter. http://www.ninjatrader-support2.com/...ead.php?t=3226
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-09-2009, 09:39 AM   #5
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
At first I discounted this idea because I only want my indicators to use regular market hours data. But now I'm thinking with time filter + custom dataseries I can get the behavior I want and just leave the session time at the default 12am-12am. Do you see any problem with this approach?
cunparis is offline  
Reply With Quote
Old 03-09-2009, 09:41 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Seems fine to me.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-09-2009, 10:03 AM   #7
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

I think the solution is for me to configure the timezone of my PC in US time and then the daylight savings time would be totally transparent. Why didn't I think of that before?
cunparis is offline  
Reply With Quote
Old 03-10-2009, 05:52 AM   #8
1800promote
Junior Member
 
Join Date: Nov 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Did that work for you? I have the same issue .
1800promote is offline  
Reply With Quote
Old 03-10-2009, 03:03 PM   #9
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by 1800promote View Post
Did that work for you? I have the same issue .
Yes, I did it last night and today the strategies worked fine. I have a dedicated pc for trading so the timezone difference isn't a problem.
cunparis is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trend line going off when i change time frame price777999 Charting 1 03-06-2009 08:06 AM
change time frame junkone Charting 1 02-17-2009 05:50 PM
How to change the display time to EST toyogo00 Miscellaneous Support 1 06-09-2008 12:28 AM
Chart background color change - defined time intervals astra Indicator Development 1 03-12-2008 08:38 PM
Time change Quicktrader10 Charting 1 03-12-2007 04:15 AM


All times are GMT -6. The time now is 10:23 PM.