![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
|
Hi,
Is fill or kill available for entries in NT? Alternatively, how can I prevent partial order filling? Please advise. Thank you. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
|
Thanks Ryan.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Mar 2010
Posts: 34
Thanks: 6
Thanked 7 times in 5 posts
|
Hi, just checking if any progress has happened regarding NT supporting FOK order types in ninjascript...?
Thanks |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi gain247,
Thanks for checking. There is no update here but I will be sure to add your vote in for this request.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2006
Location: London U.K.
Posts: 152
Thanks: 3
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
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.
Bertrand
NinjaTrader Customer Service
Last edited by NinjaTrader_Bertrand; 09-26-2012 at 01:41 PM.
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Oct 2007
Location: Southy Florida
Posts: 263
Thanks: 16
Thanked 1 time in 1 post
|
How would you do that???
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jul 2008
Posts: 291
Thanks: 19
Thanked 3 times in 3 posts
|
would the proposed FOK order type have an adjustable time delay between order acceptance and the kill?
|
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Nothing is set in stone I will have this request recorded.
-Brett
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
|
|
#12 |
|
Senior Member
|
|
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Jan 2009
Posts: 429
Thanks: 27
Thanked 11 times in 10 posts
|
I would also request this to be added to the next major release. Which will occur when by the way?
|
|
|
|
|
|
#15 | |
|
Senior Member
Join Date: Jan 2009
Posts: 429
Thanks: 27
Thanked 11 times in 10 posts
|
Quote:
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! |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |