NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 11-18-2007, 03:45 PM   #1
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default Save each strategy with Session Start and end times.

This should be easy to add to version 6.5.

Every time i load ninja, I have to set the session start and end times.

Can strategies be set to allow them to remember session start and end times???

or can they be set as a variable within the strategy itself?
richa61416 is offline  
Reply With Quote
Old 11-18-2007, 04:21 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

I know this is repetetive. I will see what can be done but there is no guarantee.
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-18-2007, 04:42 PM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is actually not officially supported but this will work if you are programming your strategies in the NinjaScript Editor. Add code like the following in your strategy's Initialize() method. This code would set session time from 7:30 AM to 2:15 PM.

Code:
SessionBegin = new DateTime(1, 1, 1, 7, 30, 0);
SessionEnd = new DateTime(1, 1, 1, 14, 15, 0); 


NinjaTrader_Ray is offline  
Reply With Quote
Old 01-11-2008, 08:56 PM   #4
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default

I know it is kinda late to be seeing this reply, but i tested it in Ver 6.5, and it still takes the time set manually, not what is in the code.
richa61416 is offline  
Reply With Quote
Old 01-12-2008, 10:32 AM   #5
henry.omd
Member
 
Join Date: Oct 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

richa61416, check it against the latest 6.5 beta (4 for me). Ray's recommendation worked; I just test it.

Ray, thanks for the suggestion. Your suggestion makes me suspect that every property that can be specified in the backtest property window can be programmatically set in NS. For example, now I want to set the Data series type and value from the NS. Is there a way to do even this?

-Henry
henry.omd is offline  
Reply With Quote
Old 01-12-2008, 11:33 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Unfortunatey I can't give you a hint for data series, this is not supported.
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-12-2008, 03:23 PM   #7
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default

You are correct Henry. It does work. I was assuming that regardless of what time I place into the start and end, it would go with what was in the code. E.g. even if 12AM to 12AM was there, it would have used my times in the code.

But, I see it sets it on the outside for me, so I don;t have to type it in.

Ok. That is good.

NOW. All I would really need is either that we can also set the time parameters, or Save Workspace remembers all the strategies that I have loaded, and also the setting for them. The latter would be more helpful.
richa61416 is offline  
Reply With Quote
Old 05-28-2008, 11:47 PM   #8
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default

Hey Ray, Please tell me in version 7 that we will be able to save a bunch of strategy details. As i trade more markets, I have more strategies to load daily. Some Tick, Some Range, Some Minute. Getting tiresome every day the same scenario. Would be nice if I could save them once I have loaded all, and retrieve them the next day. Please tell me I will see this in Fall for NT V7. (Providing I don't get tired and forget to place Minute option instead of Tick and blow my accounts due to setting one value wrong. hehehe)
richa61416 is offline  
Reply With Quote
Old 05-28-2008, 11:56 PM   #9
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

We will make announcement on NT7 features as appropriate. Thanks for your suggestion though.
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
Session Times rt-trader Historical NinjaTrader 6.5 Beta Threads 12 11-14-2007 09:33 AM
Session times jonesr227 Automated Trading 1 08-29-2007 06:15 AM
Start & end times for FOREX bmaltz Charting 3 05-02-2007 04:50 PM
Some Session end times give black white page... nightowl Charting 4 03-07-2007 02:02 AM
Session Begin & End times in NT6 bmaltz Charting 2 02-12-2007 08:44 AM


All times are GMT -6. The time now is 12:24 AM.