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
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.
-
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:
-
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 DayTradingDEMON, Today, 11:25 PM
|
0 responses
3 views
0 likes
|
Last Post Today, 11:25 PM | ||
Started by Day_Storay1, Today, 09:06 PM
|
0 responses
6 views
0 likes
|
Last Post
by Day_Storay1
Today, 09:06 PM
|
||
Started by Rudmax, 07-02-2024, 05:40 AM
|
59 responses
1,056 views
1 like
|
Last Post
by QuantVPS
Today, 08:48 PM
|
||
Started by tomtom2000, Today, 12:56 PM
|
3 responses
18 views
0 likes
|
Last Post
by jabowery
Today, 07:45 PM
|
||
Started by stoner, 01-16-2020, 08:07 AM
|
20 responses
514 views
0 likes
|
Last Post
by IanS00
Today, 07:17 PM
|
Leave a comment: