![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: Tucson, AZ
Posts: 368
Thanks: 2
Thanked 2 times in 2 posts
|
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.. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
LostTrader, unfortunately setting this dynamically is not supported - it would be best to use to dedicated strategies here for your scenarios.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |