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 04-04-2008, 09:27 AM   #1
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default Session-only data in Strategy Analyzer?

In Strategy Analyzer, is there any way to define a session and only load data for the session time? For Forex, I only want to trade during 8 am EST and 12 noon EST.

So it only needs to load data during these times. I can't find where to define a session for Strategy Analyzer or control what data it loads other than entire day at a time.

Since 4 hours is a 1/6th of 24 hour period, I could load 6 times as many days if there's a way to control what hours in the day it trades.

Sincerely,
Wayne
wayneFH is offline  
Reply With Quote
Old 04-04-2008, 09:39 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

- right click->properties
- see Session begin/end properties
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-04-2008, 09:41 AM   #3
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

By the way, this is especially a concern because I'm using 1 second data for the strategy which loads tick data. So a way to limit the data loaded to only the hours per day that I need would be great. Is there a way?
wayneFH is offline  
Reply With Quote
Old 04-04-2008, 09:42 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please proceed as per my post below.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-04-2008, 09:43 AM   #5
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

Oh. Looks like we posted at the same time. Where do I right click on properties? The strategy? The Instrument ($USDJPY)?
wayneFH is offline  
Reply With Quote
Old 04-04-2008, 09:45 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

You have the issue on the market analyzer no? Right click there.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-04-2008, 10:02 AM   #7
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

The issue is on the Strategy Analyzer as in the title of this post and my original thread. I never used the Market Analyzer yet. Is it somehow related? Will changing session in the Market Analyzer also change in the Strategy Analyzer?

Thanks for your quick responses!!!

Wayne
wayneFH is offline  
Reply With Quote
Old 04-04-2008, 10:04 AM   #8
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

On the strategy analyzer you will find it in the strategy properties as you backtest a startegy.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-04-2008, 10:12 AM   #9
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

Well, I'm not at the computer with NT loaded right now. But I only remember start and end days to load. There wasn't any session start and end that I can remember. I'm running 6.5.0.10. Are you sure? If so, I'll look again more closely later this evening.

Thanks!
Wayne
wayneFH is offline  
Reply With Quote
Old 04-04-2008, 10:14 AM   #10
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Yes I'm sure.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-05-2008, 05:46 AM   #11
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

You were right, of course! Thanks, this worked beautifully. Is there a way to set the session per instrument or otherwise make it a default so I don't have to set it again everytime I open a chart or strategy analyzer? IF not, that's fine. It's a minor issue.

Wayne
wayneFH is offline  
Reply With Quote
Old 04-05-2008, 10:37 PM   #12
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Is there a way to set the session per instrument
Unfortunately not
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-10-2008, 12:40 AM   #13
Brian1
Member
 
Join Date: Feb 2008
Location: Overland Park, KS
Posts: 94
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to Brian1
Lightbulb

I hope you don't mind me jumping in for a quick, related question ... Is there a way to set the Start Session / End Session in code, instead of entering them in the properties dialog when running a Backtest?

Brian1
Brian1 is offline  
Reply With Quote
Old 04-10-2008, 01:38 AM   #14
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Not that I'm aware of.
NinjaTrader_Dierk 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
Chart data in Strategy Analyzer does not match real chart data Greg1 Strategy Analyzer 12 04-20-2009 02:02 PM
No data from IB hangs strategy analyzer Pete S Connecting 43 11-15-2007 10:28 AM
Multi timeframe strategy charts in strategy analyzer JonesWooHoo Strategy Development 10 10-31-2007 05:13 AM
Question about Session End time for strategy mazachan Strategy Development 1 09-21-2007 02:23 PM
Strategy Analyzer Charts Dat Not Same as Other Chart Data Jim-Boulder Strategy Analyzer 1 06-13-2007 10:49 AM


All times are GMT -6. The time now is 06:57 AM.