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 dmking, 11-12-2019, 12:31 PM
|
5 responses
4,161 views
0 likes
|
Last Post Today, 02:26 AM | ||
Started by TraderJA, 05-03-2024, 12:06 AM
|
2 responses
27 views
0 likes
|
Last Post
by TraderJA
Today, 02:23 AM
|
||
Started by SaltyCoffee, Today, 01:13 AM
|
0 responses
6 views
0 likes
|
Last Post
by SaltyCoffee
Today, 01:13 AM
|
||
Started by FishTrade, 05-13-2024, 11:11 PM
|
3 responses
13 views
0 likes
|
Last Post
by FishTrade
Yesterday, 11:09 PM
|
||
Started by Graci117, Yesterday, 09:02 PM
|
1 response
18 views
0 likes
|
Last Post Yesterday, 09:09 PM |
Comment