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.

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

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?

menlo is offline  
Reply With Quote
Old 03-04-2009, 01:50 PM   #2
NinjaTrader Customer Service
NinjaTrader_Bertrand's Avatar
Join Date: Sep 2008
Location: Germany
Posts: 26,179
Thanks: 487
Thanked 1,838 times in 1,779 posts

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,


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, 92 views)
NinjaTrader_Bertrand is online now  
Reply With Quote

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 07:43 AM.

FULL RISK DISCLOSURE: Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

The NinjaTrader Support Forum is hosted and operated by NinjaTrader LLC (“NT”), a software development company which owns and supports the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is an NFA registered introducing broker (NFA #0339976). The Support Forum is intended for information and educational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Developers who offer products or other trading software tools to be used with the NinjaTrader trading platform are independent persons or companies that are in no manner affiliated with NT or NTB. Please be aware that any performance information provided by a 3rd party developer should be considered hypothetical and must contain the required additional disclosures. Specific questions related to a brokerage account should be sent to your broker directly. The views and opinions expressed in this forum are those of the authors and do not necessarily reflect the official policy or position of NT or NTB.