Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cancelling All Orders
Collapse
X
-
Cancelling All Orders
Any way to cancel all orders with a single method instead of having to track each one and cancel individually?
Thanks -
paulca, there's unfortunately no supported way to achieve that in our NinjaScript, each order would need to be cancelled via an explicit CancelOrder() call to your IOrder. What use scenario do you have in mind? Would this be just a one time command for when you would disable the script for reaching a given session pnl for example?
-
Thanks.
1. For error you mean a rejection? Then the real-time error handling per default would take care of canceling - http://www.ninjatrader.com/support/h...htsub=realtime
2. Ok for this case you would need to issue a CancelOrder call for each IOrder of your entries. You could also look into the unsupported FlattenEverything call from the SuperDOM, however this would be an extreme action I feel for those scenarios.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
663 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
376 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment