![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
- right click->properties
- see Session begin/end properties
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Please proceed as per my post below.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
Oh. Looks like we posted at the same time. Where do I right click on properties? The strategy? The Instrument ($USDJPY)?
|
|
|
|
|
|
#6 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
You have the issue on the market analyzer no? Right click there.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
On the strategy analyzer you will find it in the strategy properties as you backtest a startegy.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#10 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Yes I'm sure.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#12 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Is there a way to set the session per instrument
Unfortunately not
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Member
|
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 |
|
|
|
|
|
#14 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Not that I'm aware of.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |