NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 03-09-2010, 10:54 AM   #1
ATI user
Senior Member
 
ATI user's Avatar
 
Join Date: Apr 2006
Location: Toronto
Posts: 1,321
Thanks: 1
Thanked 7 times in 7 posts
Default ChangeOrder()

please provide syntax for ChangeOrder() in beta 10

not in documentation/help
ATI user is offline  
Old 03-09-2010, 11:02 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

ChangeOrder(IOrder order, int quantity, double limitPrice, double stopPrice)
NinjaTrader_Josh is offline  
Old 03-09-2010, 11:04 AM   #3
ATI user
Senior Member
 
ATI user's Avatar
 
Join Date: Apr 2006
Location: Toronto
Posts: 1,321
Thanks: 1
Thanked 7 times in 7 posts
Default

thanks Josh
ATI user is offline  
Old 03-17-2010, 06:57 AM   #4
jonmoron
Senior Member
 
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
Default

Josh,

I also have a question regarding ChangeOrder. Is ChangeOrder an amend request OR is it a Cancel-New order? Essentially I'd like to know if the change request gets rejected for some reason, will the original order still be active/working?

It is my understanding that rejected amend requests will leave the original order in tact while cancel-new rejections will not. To clarify, these are two types of ChangeOrders, I just want to know how NT has programmed this method 'under the hood', in order to properly protect my positions.

thanks!


Quote:
Originally Posted by NinjaTrader_Josh View Post
ChangeOrder(IOrder order, int quantity, double limitPrice, double stopPrice)
jonmoron is offline  
The following user says thank you to jonmoron for this post:
Old 03-17-2010, 08:16 AM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

It is a change-request not a cancel-new. I believe your understanding is correct, but you may need to test it to be sure we are on the same page. You can just run in a simulator and submit a change that is invalid and see how it behaves.
NinjaTrader_Josh is offline  
Old 03-17-2010, 10:02 AM   #6
jonmoron
Senior Member
 
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
Default

Unfortunately my tests are showing something different...can i get verification from someone else or from someone at NT regarding this?
Will rejected ChangeOrders result in the original order to be working or not?

Simple question. Any insight?



Quote:
Originally Posted by NinjaTrader_Josh View Post
It is a change-request not a cancel-new. I believe your understanding is correct, but you may need to test it to be sure we are on the same page. You can just run in a simulator and submit a change that is invalid and see how it behaves.
jonmoron is offline  
Old 03-17-2010, 10:03 AM   #7
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Will rejected ChangeOrders result in the original order to be working or not?
yes
NinjaTrader_Dierk is offline  
Old 05-22-2010, 08:27 AM   #8
monpere
Senior Member
 
Join Date: Dec 2007
Posts: 310
Thanks: 0
Thanked 5 times in 3 posts
Default

Quote:
Originally Posted by NinjaTrader_Dierk View Post
>> Will rejected ChangeOrders result in the original order to be working or not?
yes
The answer 'yes' is ambiguous based on the question. Is the answer 'yes, the original order will still be in working status' ? Please clarify.
monpere is offline  
Old 05-22-2010, 10:22 AM   #9
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

monpere,

If you have a working order already in working, you send a ChangeOrder, the change is not accepted, you are still left with the original state of working.
NinjaTrader_Josh is offline  
The following user says thank you to NinjaTrader_Josh for this post:
 

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


All times are GMT -6. The time now is 12:04 AM.