![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
I am trying to put in a time series with the strategy wizard. FROM 6PM TO 3 AM. When I run the strategy analyzer it doesn't work.
>= 6:00 PM <= 3:00 AM |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello RonSims,
Welcome to the forum and I am happy to assist you. The logic >=6:00PM and <=3:00AM will return true only from Midnight to 3:00AM You could set a code like Code:
if ((ToTime(Time[0]) >= ToTime(18, 0 ,0) && ToTime(Time[0]) <= ToTime(23,59,0)) || (ToTime(Time[0]) >= ToTime(0,0,0) && ToTime(Time[0]) <= ToTime(3,0,0)))
{
//do something
}
Please let me know if I can assist you any further.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
Can I put 2 time periods on the strategy wizard ? 12 am to 3 am - 9am to 1 pm
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello RonSims,
Yes, you can put 2 time filters via the strategy wizard. Please let me know if I can assist you any further.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Time Series;Time Value Issue | thinkster | Automated Trading | 4 | 05-02-2012 11:31 AM |
| Time Series | kinkeadfx | General Programming | 3 | 02-27-2012 02:15 AM |
| Using Time Series | saintalan | Strategy Development | 6 | 07-27-2011 01:54 PM |
| Time and non-time bar series dominance on chart | rtrader | Version 7 Beta General Questions & Bug Reports | 9 | 07-31-2010 01:06 PM |
| Time series | munkee | Strategy Development | 1 | 08-03-2009 02:54 PM |