![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 216
Thanks: 0
Thanked 1 time in 1 post
|
Hello NT experts,
I will use stop order as the example. Suppose I start with stop order stopOrder1 = ExitLongStop(...). When certain conditions are met, I change it to market order stopOrder1 = ExitLong(...). Will the stopOrder1 be replaced by market order automatically? Or do I end up with 2 orders? Any comments are welcome. Regards, |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
You will end up with two orders. Just because you set something else to the IOrder does not remove the first order. All that happens is now you have lost all references back to the original stop order. If you wanted to replace the order you will need to first cancel it and then send the new one when cancel confirmation is received.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I Place This Type of Order? | Shanghai | ATM Strategies (Discretionary Trading) | 9 | 07-20-2009 07:37 AM |
| Price Activation Order Type | b-rock | Suggestions And Feedback | 4 | 09-09-2008 06:26 AM |
| Supported Order type for NYBOT | ostadler | SuperDOM and other Order Entry Windows | 3 | 05-27-2008 01:10 PM |
| Combination order type 'Limit' and time-in-force 'Gtc' not supported by exchange | richa61416 | Strategy Development | 1 | 02-06-2008 03:22 PM |
| Entry Order Type - Market If Touched | tazman | SuperDOM and other Order Entry Windows | 1 | 03-19-2007 01:58 AM |