NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 05-28-2009, 09:45 AM   #1
ninjaq
Junior Member
 
Join Date: Dec 2008
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
Default How does NJ handles unfilled contracts by default?

Hi!

Right now I have NOT tested my current strategy
to handle multiple contracts.

My I ask how should any strategy that you have written
for you own clients handles this?

For example, if at price 8301, only 2 out of 5 contracts filled,
HOW will those 3 unfilled contracts be managed?

My expected result is any unfilled contracts will continue
to get filled ONLY IF the trade has NOT reached TP or SL.

>J
ninjaq is offline  
Reply With Quote
Old 05-28-2009, 10:17 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

ninjaq,

The orders will continue to be filled as long as that entry order is still active. Even if stop/targets start hitting, if that entry order is still active it will continue. You need to explicitly cancel that entry order (whether that is using CancelOrder() or just letting the order expire by not resubmitting) for it to stop filling.
NinjaTrader_Josh 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
Cancel unfilled Auto order not working ..need help pdawg Strategy Development 21 04-15-2013 05:52 AM
Tradestation DLL Unfilled or Partial Fill Handling Question geoMEAN Automated Trading 8 12-31-2008 03:08 PM
nj freezing blkbird General Programming 3 11-12-2008 10:25 AM
Remove Old NJ version AllanH Installation and Licensing 7 11-16-2007 07:30 PM
re-subscribe to NJ Novicetrader Miscellaneous Support 1 10-08-2007 01:09 PM


All times are GMT -6. The time now is 09:43 PM.