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 iceman2018, 04-27-2024, 05:07 PM
|
1 response
13 views
0 likes
|
Last Post Yesterday, 10:56 PM | ||
Started by adaisguy, Yesterday, 10:27 PM
|
0 responses
8 views
0 likes
|
Last Post
by adaisguy
Yesterday, 10:27 PM
|
||
Started by Jltarrau, Yesterday, 10:18 PM
|
0 responses
8 views
0 likes
|
Last Post
by Jltarrau
Yesterday, 10:18 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, 04-27-2024, 09:55 AM
|
4 responses
30 views
0 likes
|
Last Post
by bltdavid
Yesterday, 10:10 PM
|
||
Started by Philippe56140, 04-27-2024, 02:35 PM
|
2 responses
21 views
0 likes
|
Last Post
by bltdavid
Yesterday, 09:56 PM
|
Comment