Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Order reversal with actve profit target and stop loss
Collapse
X
-
coolmoss, those order handling rules would not apply to market orders - you can use those for a reverse in your case still.
-
Trying to really understand this. From the NT7 online manual I copy/paste:Originally posted by NinjaTrader_RyanM View PostHi alex.nt,
Active means the order status is working or accepted. Internal order handling rules do not apply to market orders, so you can still send EnterLong(), EnterShort() and they will reverse, even while a stop loss order is working.
"Methods that generate orders to enter a position will be ignored if:
· A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction"
The way I read it, if the strategy is long and has a stop and/or target via a Set type statement, then even a market order won't reverse you.
Please clarify, thank you.
Leave a comment:
-
Your order will be rejected. If you want to take a long read, these threads, in which I am the protagonist, will keep you awake nicely at night.Originally posted by alex.nt View PostSorry, I would like to get a more definite answer
Because it sounds really strange that one cannot reverse a position via limit order if stop loss order is working for current position.
So: what happens if I have long position of size 1, working stop loss & profit target orders and I make the following call:
IOrder order = EnterShortLimit(BarsInProgress, true, 1, limitPrice, signalName);
Ideally, stop loss & profit target orders should be cancelled and then position should be closed and then this new short order should be submitted.
What happens in real life?
Thank you!
http://www.ninjatrader.com/support/f...ad.php?t=39971
http://www.ninjatrader.com/support/f...ad.php?t=43855
Leave a comment:
-
Sorry, I would like to get a more definite answer
Because it sounds really strange that one cannot reverse a position via limit order if stop loss order is working for current position.
So: what happens if I have long position of size 1, working stop loss & profit target orders and I make the following call:
IOrder order = EnterShortLimit(BarsInProgress, true, 1, limitPrice, signalName);
Ideally, stop loss & profit target orders should be cancelled and then position should be closed and then this new short order should be submitted.
What happens in real life?
Thank you!
Leave a comment:
-
Hi alex.nt,
Active means the order status is working or accepted. Internal order handling rules do not apply to market orders, so you can still send EnterLong(), EnterShort() and they will reverse, even while a stop loss order is working.
Leave a comment:
-
Order reversal with actve profit target and stop loss
A quote from help:
"Methods that generate orders to enter a position will be ignored if:
- A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction"
Questions:
1. What is an ACTIVE order?
2. Does it mean that when stop loss is working I cannot reverse the position by issuing an order in opposite direction?
For instance, I have SetStopLoss() set in Initialize(), I am in Long position (meaning SetStopLoss is active?) and I would like to enter Short. Will I get a rejection/null order?
Thank youTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
62 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Leave a comment: