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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 07-05-2010, 08:31 AM   #1
TakisTakis
Member
 
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default Close all unmanaged orders

Hi and congrats for this forum.

Is anyone that knows how the CancelOrder works with unmanaged orders ?


#- CancelOrder ... Can I use it to close an open position and lock the profit or loss ?

Thanks in advance !
TakisTakis is offline  
Reply With Quote
Old 07-05-2010, 08:41 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
Default

TakisTakis, please see also this overview here first before working with the new unmanaged approach -

http://www.ninjatrader.com/support/h...d_approach.htm

CancelOrder would not close your position, but cancel a working order you've previously submitted.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-05-2010, 10:37 AM   #3
TakisTakis
Member
 
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks a lot. I got it now!
TakisTakis is offline  
Reply With Quote
Old 07-05-2010, 02:51 PM   #4
TakisTakis
Member
 
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Great. Is there someone that has a snippet of code of how to close all orders using unmanaged orders ?

If yes, say "I do"

Cheers to everybody anyways!
TakisTakis is offline  
Reply With Quote
Reply

Tags
cancelorder, unmanaged orders

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
Unmanaged Orders toptrader Version 7 Beta General Questions & Bug Reports 12 07-12-2010 07:15 PM
Close all unmanaged orders and use take profit TakisTakis Strategy Development 9 07-06-2010 11:53 AM
Using unmanaged Orders LloydH Version 7 Beta General Questions & Bug Reports 5 04-09-2010 02:16 AM
Trying new Unmanaged Orders feature malmaa Version 7 Beta General Questions & Bug Reports 15 02-18-2010 08:38 AM
Unmanaged Orders BigDog008 Version 7 Beta General Questions & Bug Reports 1 12-01-2009 01:16 PM


All times are GMT -6. The time now is 01:14 AM.