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 > 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-26-2009, 10:05 AM   #1
rehtrade
Member
 
Join Date: Jan 2009
Posts: 58
Thanks: 0
Thanked 0 times in 0 posts
Default Question about Time and Ninja Script

Hi,
Took the class on using the NT Script Wizard last weekend and I need a link or could you show me the action steps to enter a time when and when not to run the auto program.
Example:
Gold contract:
start at 7AM
end at 11AM

Can I also set it for an afternoon session also?
1:45 to 4PM

I tried to find this information in the Help guide but wasn't succesful.
The Course manual, I received, just shows it set up but not what steps to take to make it.
When I experiment and try and create it, I get error messages, so I need some guidance on this.

Thank you,

Rachel
rehtrade is offline  
Reply With Quote
Old 03-26-2009, 10:14 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Rachel,

Please open up the Condition Builder.
Set 1:
Left: Time->Time series
Middle: > or >= depending on what you want
Right: Time->Time value->7AM

Left: Time->Time series
Middle: < or <= depending on what you want
Right: Time->Time value->11AM

Set 2 for afternoon:
Left: Time->Time series
Middle: > or >= depending on what you want
Right: Time->Time value->1:45PM

Left: Time->Time series
Middle: < or <= depending on what you want
Right: Time->Time value->4PM
NinjaTrader_Josh 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
Ninja Script suitguy1 Automated Trading 5 07-21-2009 03:15 AM
Ninja Script Consultant SystemTrading Suggestions And Feedback 1 10-09-2008 12:31 PM
Can Ninja script print into Ninja Log/Trace file? maxima General Programming 2 05-24-2008 04:48 PM
First Ninja Script Question Sidhartha Indicator Development 4 04-03-2008 07:35 AM
No Ninja Script Editor? rrangetrader Miscellaneous Support 11 03-01-2008 01:40 PM


All times are GMT -6. The time now is 12:26 PM.