Is fill or kill available for entries in NT? Alternatively, how can I prevent partial order filling? Please advise. Thank you.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Fill or Kill
Collapse
X
-
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
Comment
-
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, 01:41 PM.BertrandNinjaTrader Customer Service
Comment
-
Hello,
You would use this sample to cancel and the next sample to monitor the status of an order:
When using NinjaTrader's Enter() and Exit() methods, the default behavior is to automatically expire them at the end of a bar unless they are resubmitted to keep them alive. Sometimes you may want more flexibility in this behavior and wish to submit orders as live-until-cancelled. When orders are submitted as live-until
-Brett
Comment
-
-
Me too...
Originally posted by NinjaTrader_Brett View PostNo 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
Comment
-
Follow up question
Originally posted by NinjaTrader_Brett View PostHello,
You would use this sample to cancel and the next sample to monitor the status of an order:
When using NinjaTrader's Enter() and Exit() methods, the default behavior is to automatically expire them at the end of a bar unless they are resubmitted to keep them alive. Sometimes you may want more flexibility in this behavior and wish to submit orders as live-until-cancelled. When orders are submitted as live-until
-Brett
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... }
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!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
233 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
4 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
||
Started by bortz, 11-06-2023, 08:04 AM
|
51 responses
1,989 views
0 likes
|
Last Post
by aligator
Today, 05:50 PM
|
||
Started by dmking, 11-12-2019, 12:31 PM
|
4 responses
4,150 views
0 likes
|
Last Post
by jasonw
Today, 04:32 PM
|
||
Started by roblogic, Today, 04:31 PM
|
0 responses
10 views
0 likes
|
Last Post
by roblogic
Today, 04:31 PM
|
Comment