NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-17-2012, 11:11 PM   #1
Spiderbird
Member
 
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
Default Trading Only From 8:45am - 11am (CDT)?

Hi there,

If you are using the condition builder to create a strategy, is there any way to set a condition to only trade within a certain timeframe?

Using functions such as ToTime() or OnBarUpdate() (gleaned from other forum posts) seem to work, but I don't know how to use these in the Strategy Wizard. Is there a way to use these in that step-by-step construct?

FYI, I'm pretty close to trying my hand at straight scripting, but I'm trying to see where the condition builder falls short, and where it's useful.

Thanks in advance!

Yours,
Spider
Last edited by Spiderbird; 04-17-2012 at 11:13 PM. Reason: (misspelled type of construct)
Spiderbird is offline  
Reply With Quote
Old 04-18-2012, 02:16 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

GM Spider, yes you could create time filter within the wizard interface as well for your conditions, please see the last section on this link for an example - http://www.ninjatrader.com/support/h...on_builder.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Old 04-19-2012, 10:53 PM   #3
Spiderbird
Member
 
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
Default

Wow, can't believe I missed that in the help file. Thanks for pointing that out! Much appreciated.
Spiderbird is offline  
Reply With Quote
Reply

Tags
condition builder, onbarupdate, timeframe, timeto

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
Which is better for stock trading? Td Ameritrade or MB Trading? ILoveSax Connecting 1 08-01-2011 10:42 AM
The Trading Clan's Live Trading Room now features NinjaTrader 7! NinjaTrader_Ray News and Announcements 0 07-15-2011 07:36 AM
Is there a way to dynamically change from sim trading to live money trading and back? gv1150 Strategy Analyzer 1 10-30-2009 09:03 AM
Using NT’s Live trading license with IB’s paper-trading account JoeStein Installation and Licensing 2 03-24-2009 10:18 AM
Can't Connect to AMP Trading/Trading Technologies Demo Account Retired In Nevada Connecting 1 03-08-2009 11:32 PM


All times are GMT -6. The time now is 02:38 PM.