NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-09-2012, 03:12 PM   #1
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default ChangeOrder

Hi,

Can anyone tell me if ChangeOrder using the TT adapter against the CME 6E/ES, etc. does a cancel/replace (atomic action on CME) vs. a cancel and submit (two separate actions)?

Thanks in advance.
ScottB is offline  
Reply With Quote
Old 07-09-2012, 03:29 PM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

Hello,

This will vary from FCM. I would suggest following up with your broker to clarify if a changed order will use an atomic action on the CME.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 07-09-2012, 04:28 PM   #3
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Matthew, are you saying it is broker dependent as opposed to something NinjaTrader controls? Under the covers you are either making a native API call or sending a FIX message depending on the connection.

So in the case of Trading Technologies accessing the CME, my understanding is that is FIX. What I am trying to determine is in that case do you send one cancel/replace FIX message or do you send a cancel and a separate new order message?

It could be either based on how you choose to implement ChangeOrder against TT at the CME. Unless you have shared your internal workings with the broker, I don't think they can know which you chose short of monitoring the actual FIX messages.

So if possible, could you check with development or whatever department that would know the answer?

Thanks
Scott
ScottB is offline  
Reply With Quote
Old 07-10-2012, 08:09 AM   #4
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

It is a FIX cancel/replace message that is sent.

Whether you will keep your place will depend on the type of change that is made. If you change the price of the order, we will do what we can to preserve your place in line, however a change in qty would submit a new order and not cancel.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 07-10-2012, 08:13 AM   #5
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Matthew,

Thanks, that is exactly the information I was looking for. One comment though, it appears you have the situation reversed regarding when a cancel/replace vs. a cancel and a new order is issued (unless I misunderstand your reply).

To the best of my knowledge, you cannot maintain a position in the queue if you change price because you are now on a different price level (and therefore in a different queue). The CME exchange rule for volume is based on whether quantity goes up or down (down you can maintain your position, up you cannot).

Best Regards,
Scott
Last edited by ScottB; 07-10-2012 at 08:18 AM. Reason: Addendum to post
ScottB is offline  
Reply With Quote
Old 07-10-2012, 08:32 AM   #6
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

Scott,

Yes, I misunderstood this and you are correct.

To preserve place in line on QTY change instead of changing the order which resets your place in line, we issue a new order.

In the case where price does change then the cancel/replace command is run.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 07-10-2012, 09:44 PM   #7
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,214
Thanks: 24
Thanked 1,229 times in 1,000 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by NinjaTrader_Matthew View Post
Scott,

Yes, I misunderstood this and you are correct.

To preserve place in line on QTY change instead of changing the order which resets your place in line, we issue a new order.

In the case where price does change then the cancel/replace command is run.
I am reasonably sure that I read somewhere in the NT literature that when you up your order quantity, NT will simply issue only a new order for the difference, thus preserving your initial order in the queue, while placing that new order naturally at the end of the queue. Was that just wishful thinking?
koganam is offline  
Reply With Quote
Old 07-10-2012, 09:46 PM   #8
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,214
Thanks: 24
Thanked 1,229 times in 1,000 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by koganam View Post
I am reasonably sure that I read somewhere in the NT literature that when you up your order quantity, NT will simply issue only a new order for the difference, thus preserving your initial order in the queue, while placing that new order naturally at the end of the queue. Was that just wishful thinking?
Nope. It was not wishful thinking! Here it is:

ref: http://www.ninjatrader.com/support/h...timization.htm

Very nice!!
koganam is offline  
Reply With Quote
Old 07-10-2012, 09:48 PM   #9
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

koganam,

That was what I thought as well; CME will preserve your place in the queue if you reduce your quantity. I was trying to determine how intricate I had to make my order handling; you can quite easily get partial fills of oco profit orders that are themselves the result of partial fills of the original entry order (not to mention you might have a strategy with multiple entry orders),

Perfect; thanks!
ScottB 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
ChangeOrder ScottB Strategy Development 4 07-11-2011 03:33 PM
ChangeOrder confusion gbrest Strategy Development 10 07-02-2011 08:44 AM
ChangeOrder() "CJS" Strategy Development 7 09-15-2010 04:44 AM
ChangeOrder and rejects ScottB Automated Trading 1 08-09-2010 04:16 PM
ChangeOrder() ATI user Version 7 Beta General Questions & Bug Reports 8 05-22-2010 10:22 AM


All times are GMT -6. The time now is 09:48 PM.