![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
|
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)
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#3 |
|
Member
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
|
Wow, can't believe I missed that in the help file. Thanks for pointing that out! Much appreciated.
|
|
|
|
![]() |
| Tags |
| condition builder, onbarupdate, timeframe, timeto |
| Thread Tools | |
| Display Modes | |
|
|
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 |