NinjaTrader Support Forum  
X

Attention!

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


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 11-21-2007, 12:48 AM   #1
simone
Member
 
Join Date: May 2007
Location: Italia
Posts: 62
Thanks: 0
Thanked 0 times in 0 posts
Default Delete Pending order

Dear sirs,
one question: is it possibile delete a pendind order?
Using unique entry in my strategy, after my condition, I would send 2 orders, for example one EnterLongLimit and one EnterLongStop; after, if one of these order go online, I would delete pending order and mantaining long position..Is it possible to do this?

Very Very Thanks
Best Regards
simone is offline  
Reply With Quote
Old 11-21-2007, 12:51 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Yes it is possible. Please check out this reference sample http://www.ninjatrader-support.com/v...ead.php?t=3917
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-21-2007, 06:58 AM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

For clarification, with our upcoming NT 6.5, you will not be able to submit to entry orders to go live. This is to prevent situations where strategies are filled on both orders resulting in an unwanted position. You will be able to do this by running two strategies, once for long, the other for short, or to monitor for price thresholds and submit a market order.
NinjaTrader_Ray 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
Bug: Order stuck in Pending state with trailing stop. shawnj ATM Strategies (Discretionary Trading) 1 10-31-2007 04:00 PM
Removing pending/active order tabs from charts crazyhorse2393 Charting 3 09-07-2007 06:57 AM
NT6 crashes when I cancel a pending order in control center ... funk101 General Programming 1 05-01-2007 08:41 AM
Order Pending Logic Oli Automated Trading 12 04-02-2007 03:13 AM
OIF - Cancel a Pending Order underground Automated Trading 2 03-13-2005 05:35 AM


All times are GMT -6. The time now is 01:55 PM.