how would I go about doing that? i've tried submitting stop orders to exit positions, but it doesn't flatten my positions instantly, rather it allows the trade to play out...
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Flattening Positions
Collapse
X
-
Flattening Positions
Say i have some profit or loss threshold value that is hit, and the moment its hit I want to flatten all my existing positions...
how would I go about doing that? i've tried submitting stop orders to exit positions, but it doesn't flatten my positions instantly, rather it allows the trade to play out...Tags: None
-
-
Bertrand,
I intend to use ExitLong and ExitShort for all positions. However, if I need to manually CancelOrder on all IOrder objects, is there at least a collection of IOrders that I can traverse through to cancel? Or, is this something that I need to create, add-to, and maintain?
thanks
Originally posted by NinjaTrader_Bertrand View Postjonmoron, there's unfortunately no programmatic flatten all command, you could use IOrder objects and then CancelOrder those as needed -
http://www.ninjatrader-support.com/H...ncelOrder.html
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
61 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment