Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CancelOrder() will null the order?
Collapse
X
-
CancelOrder() will null the order?
After calling CancelOrder(myOrder), is it guaranteed that myOrder will be "null" if this call is successful?Tags: None
-
Hello localappleseed,
Thank you for your post.
No, that will simply cancel the order associated with the ID stored in myOrder. For that value of myOrder to be reset to null, you would need to reset the variable to that manually, preferably in OnOrderUpdate once you get an update the order has been cancelled as in the example in the documentation:
Please let us know if we may be of further assistance to you.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
41 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
46 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
37 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
||
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
157 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|

Comment