NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 03-04-2009, 01:37 PM   #1
menlo
Junior Member
 
Join Date: Jan 2009
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
Default Set up trading hours in Strategy Wizard.

Hi,
How do I set up trading hours in the Strategy Wizard?

Under "set 1" in the strategy wizard, I select "add". In the next window I select time on the left hand side. The time value always defaults to the current time. How do I say something like trade only when time is between 9:30 am and 4 pm?

Thanks.
menlo is offline  
Reply With Quote
Old 03-04-2009, 01:50 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,537
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

Hi menlo, welcome to the NinjaTrader support forums!

You could enter two conditions like in the attached screenshot to define your time filter.

Time series with a Bars ago value of 0 gives you the current time,

and

Time value lets you input the time to compare to.

Both are found in the Time category.
Attached Images
File Type: png timeFilterSW.png (16.0 KB, 43 views)
NinjaTrader_Bertrand 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
Outside Regular Trading Hours ssierra Automated Trading 39 11-19-2012 03:22 AM
IB + Dax +Outside Regular Trading Hours StockMaster Connecting 10 07-09-2008 07:01 AM
Trading hours decologne Charting 5 06-26-2008 05:15 AM
Strategy: Using a time filter to limit trading hours NinjaTrader_Josh Reference Samples 0 09-06-2007 12:57 PM
Primary Trading Hours vs Extended Hours Greg1 Suggestions And Feedback 1 02-18-2007 02:06 AM


All times are GMT -6. The time now is 05:27 PM.