![]() |
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
|
|||||||
| Suggestions And Feedback New feature suggestions and feedback. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
I know this is repetetive. I will see what can be done but there is no guarantee.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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);
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Unfortunatey I can't give you a hint for data series, this is not supported.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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)
|
|
|
|
|
|
#9 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
We will make announcement on NT7 features as appropriate. Thanks for your suggestion though.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |