![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|
With CalculateOnBarClose = false
Place an order, EnterLongStop and indicate you want it to cancel at the end of the bar If this event occurs will it appear in OnExecution() as execution.Order.OrderState == OrderState.Cancelled ? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
This should occur on the iOrder, are you seeing something different? I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
|
No I think it is ok. Just checking.
Another question, a partial fill that completes the order would appear as OrderState.Filled correct? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Yes it would change to a Filled order state. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
|
In say a ExitLongStop() what is liveUntilCancelled default?
If false and assume not triggered the order expires when? Just before the next OnBarUpdate() is called assuming only one bar is in use? |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
By Default you must resubmit this order on every OnBarUpdate or else it will be cancelled. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Order not cancelling | zark.be | Automated Trading | 3 | 07-13-2010 06:00 AM |
| Cancelling a Pending Order. | jonmoron | General Programming | 5 | 07-26-2009 11:39 AM |
| Cancelling open order(s). | 8DTK8 | Strategy Development | 5 | 09-29-2008 12:04 PM |
| Cancelling and automated order | thepcmd | Automated Trading | 4 | 04-23-2008 09:33 PM |
| Automatic Order cancelling | khawaja | Automated Trading | 3 | 10-17-2007 02:24 PM |