![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
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 ! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks a lot. I got it now!
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jun 2010
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
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!
|
|
|
|
![]() |
| Tags |
| cancelorder, unmanaged orders |
| Thread Tools | |
| Display Modes | |
|
|
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 |