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 06-20-2011, 03:00 PM   #1
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
Default Fill or Kill

Hi,

Is fill or kill available for entries in NT? Alternatively, how can I prevent partial order filling? Please advise. Thank you.
Zeos6 is offline  
Reply With Quote
Old 06-20-2011, 04:09 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Zeos,

Fill or Kill is not currently available. Thank you for your suggestion on how we can improve NinjaTrader. It has been inserted into our tracking system with the unique ID # 829.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-21-2011, 11:32 AM   #3
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
Default

Thanks Ryan.
Zeos6 is offline  
Reply With Quote
Old 07-13-2012, 08:37 AM   #4
gain247
Member
 
Join Date: Mar 2010
Posts: 34
Thanks: 6
Thanked 7 times in 5 posts
Default Fok

Hi, just checking if any progress has happened regarding NT supporting FOK order types in ninjascript...?

Thanks
gain247 is offline  
Reply With Quote
Old 07-13-2012, 08:55 AM   #5
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi gain247,
Thanks for checking. There is no update here but I will be sure to add your vote in for this request.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 08-24-2012, 08:19 AM   #6
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 152
Thanks: 3
Thanked 2 times in 2 posts
Default

Could you add my vote for this suggestion please?

Would also like some advice on handling partial fills. I'm using unmanaged orders.
When a partial fill occurs, is it possible to cancel the order that was partially filled without causing problems? So that the balance of lots will never be filled? I would expect to wait until price moved a couple of ticks away to adoid overfill.

Thanks
Dave
DaveS is offline  
Reply With Quote
Old 08-24-2012, 09:51 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Added your vote in Dave, thanks.

Yes, you can cancel the partial fill if price moved away a bit, so that likely no in-flight incoming executions while you cancel could produce the overfill you're trying to avoid.
Last edited by NinjaTrader_Bertrand; 09-26-2012 at 01:41 PM.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 09-05-2012, 09:25 AM   #8
edgeliner
Senior Member
 
Join Date: Oct 2007
Location: Southy Florida
Posts: 263
Thanks: 16
Thanked 1 time in 1 post
Default

How would you do that???
edgeliner is offline  
Reply With Quote
Old 09-05-2012, 09:51 AM   #9
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

You would use this sample to cancel and the next sample to monitor the status of an order:

http://www.ninjatrader.com/support/f...ad.php?t=18890

http://www.ninjatrader.com/support/f...ead.php?t=5790

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
Old 09-05-2012, 10:21 AM   #10
poeds
Senior Member
 
Join Date: Jul 2008
Posts: 291
Thanks: 19
Thanked 3 times in 3 posts
Default

would the proposed FOK order type have an adjustable time delay between order acceptance and the kill?
poeds is offline  
Reply With Quote
Old 09-05-2012, 10:23 AM   #11
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Nothing is set in stone I will have this request recorded.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Old 09-26-2012, 10:38 AM   #12
AnotherTrader
Senior Member
 
Join Date: Aug 2009
Posts: 266
Thanks: 41
Thanked 8 times in 8 posts
Send a message via ICQ to AnotherTrader
Default

Hi, is there any update on status of #829?

Quote:
Originally Posted by NinjaTrader_RyanM View Post
Hi Zeos,
Fill or Kill is not currently available. Thank you for your suggestion on how we can improve NinjaTrader. It has been inserted into our tracking system with the unique ID # 829.
AnotherTrader is offline  
Reply With Quote
Old 09-26-2012, 12:33 PM   #13
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

No update at this time, I know that we plan on adding a lot of user feature requests in our next major release of the software which is under development now. I do not have an expected release date at this time for that unfortunately.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
Old 02-28-2013, 07:34 AM   #14
molecool
Senior Member
 
Join Date: Jan 2009
Posts: 429
Thanks: 27
Thanked 11 times in 10 posts
Thumbs up Me too...

Quote:
Originally Posted by NinjaTrader_Brett View Post
No update at this time, I know that we plan on adding a lot of user feature requests in our next major release of the software which is under development now. I do not have an expected release date at this time for that unfortunately.

-Brett
I would also request this to be added to the next major release. Which will occur when by the way?
molecool is offline  
Reply With Quote
Old 02-28-2013, 07:42 AM   #15
molecool
Senior Member
 
Join Date: Jan 2009
Posts: 429
Thanks: 27
Thanked 11 times in 10 posts
Question Follow up question

Quote:
Originally Posted by NinjaTrader_Brett View Post
Hello,

You would use this sample to cancel and the next sample to monitor the status of an order:

http://www.ninjatrader.com/support/f...ad.php?t=18890

http://www.ninjatrader.com/support/f...ead.php?t=5790

-Brett
Pertinent question - let's say for arguments sake that I only got partially filled 50 contracts after submitting a buy for 100. And for instance I have rolled my own stop logic in my onExecution() method:

Code:
if (execution.Order.OrderState == OrderState.Filled || execution.Order.OrderState == OrderState.PartFilled || (execution.Order.OrderState == OrderState.Cancelled && execution.Order.Filled > 0)) {
						
   stopOrder 	= ExitLongStop(0, true, execution.Order.Filled, longStop, 
   STOP_LOSS,   LONG_POSITION);
   // etc...							
}
As you can see there is no reference to quantity. What happens here if I get filled a few seconds later again to complete the 100? Will onExecution be called again and automagically adjust the quantity?

I have not run into problems in the past few years but I may now as I'm switching to other markets, some of which may be less liquid. So I would prefer not to learn this lesson the hard way.

I hope the above is clear - if not please ask.

Thanks!
molecool 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
How do I kill ALL NT processes in Task Manager? Rocket130713 Automated Trading 1 08-19-2010 04:31 AM
Fill-or-Kill Orders Supported? drkempus General Programming 1 07-09-2010 02:56 AM
Create a Fill or Kill order aljafp Strategy Development 3 05-09-2010 06:32 PM
to kill the alert sound simpletrades Charting 6 04-15-2010 12:26 AM
Can we kill the splash screen? cassb Suggestions And Feedback 1 05-02-2008 07:36 AM


All times are GMT -6. The time now is 12:21 AM.