Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
PartFilled and SL/TP
Collapse
X
-
PartFilled and SL/TP
Suppose I am using the managed approach and my order is only 60% filled (PartFilled) and I catch the stop loss or take profit. What happnes to the rest of the 40%? Is it cancled? Is it remains alive? Does the SL and TP orders are sill alive?
ThanksTags: None
-
Hello kiss987,
When an order is part filled, it will continue filling until filled.
If you attempt to cancel the order while in a part filled state, this cancellation would need to be received before any more contracts are filled for the cancellation to be effective.
Any stop loss and profit target placed with SetStopLoss and SetProfitTarget will still be working and the quantities will match the filled amount.Chelsea B.NinjaTrader Customer Service
-
Hello kiss987,
I'm not understanding what you mean.
The position is the number of contracts you are long or short.
"once the partially filled position has reached SL/TP I want to flat the remaining order with its SL+TP"
Can you clarify your inquiry?
Are you trying to exit the trade immediately after you enter the trade? As in, once the entry order fills, how do i place a market order to exit the trade immediately?
If you have already set a stop loss and profit target using SetStopLoss and SetProfitTarget, these will be submitted after your entry order part fills and then fills.Chelsea B.NinjaTrader Customer Service
Comment
-
Hello
I'll eplain myself using an eample:
Suppose I entered a 10 lot long limit order with a SL and TP. Then, only 6 lots were filled and eventually closed at the TP. If I understand correctly, I have now a 4 lot order open (plus TP and SL). I want to cancel that 4 lot order (with its TP and SL) immediately when the 6 lot position is closed on TP.
How can I do that?
Comment
-
Hi kiss987,
You can call CancelOrder(myOrder) and this will cancel the remaining amount (as long as no further quantity has part filled).
However, be aware that if the cancellation amount doesn't match the remaining amount and overfill error will occur.
http://ninjatrader.com/support/helpG...ancelorder.htmChelsea B.NinjaTrader Customer Service
Comment
-
Hello kiss987,
Thank you for your post.
The Order States would be Working or Accepted. For information on the Order States please visit the following link: http://ninjatrader.com/support/helpG...efinitions.htm
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
563 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
329 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment