Thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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?BertrandNinjaTrader Customer Service
-
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.BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Jonafare, 12-06-2012, 03:48 PM
|
5 responses
3,986 views
0 likes
|
Last Post
by rene69851
Today, 01:44 PM
|
||
Started by Fitspressorest, Today, 01:38 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:38 PM | ||
Started by Jonker, Today, 01:19 PM
|
0 responses
2 views
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
||
Started by futtrader, Today, 01:16 PM
|
0 responses
8 views
0 likes
|
Last Post
by futtrader
Today, 01:16 PM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,792 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
Comment