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 08-04-2010, 07:45 AM   #1
Lost Trader
Senior Member
 
Join Date: Oct 2007
Location: Tucson, AZ
Posts: 368
Thanks: 2
Thanked 2 times in 2 posts
Default Can TimeInForce be changed dynamically?

Can TimeInForce be changed dynamically by an active strategy, say in OnBarUpdate() ?

For example, can a strategy use TimeInForce = Cbi.TimeInForce.Gtc prior to the Instrument's Session open, and switch to TimeInForce = Cbi.TimeInForce.Day after the session break (i.e.,open)?

This would allow the strategy to place orders in response to pre-market activity that would be potentially executed at the open. Updated stops for example, without getting bitten by a gap at open that prevents the stop order..
Lost Trader is offline  
Reply With Quote
Old 08-04-2010, 07:54 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

LostTrader, unfortunately setting this dynamically is not supported - it would be best to use to dedicated strategies here for your scenarios.
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
TimeInForce to Day jonmoron Strategy Development 6 08-30-2010 11:48 AM
Change TimeInForce with SubmitOrder buddie Strategy Development 3 07-08-2010 05:52 AM
NT ICON has changed - why? the brand has been changed!!! MicroTrends Version 7 Beta General Questions & Bug Reports 4 01-22-2010 07:15 AM
Dynamically changing CalculateOnBarClose snaphook Miscellaneous Support 1 01-13-2009 08:11 AM
Dynamically change Color GuyFB General Programming 4 03-16-2008 10:12 PM


All times are GMT -6. The time now is 07:40 AM.