SetStopLoss(CalculationMode.Ticks, 6);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SetStopLoss Filling at Different Target
Collapse
X
-
SetStopLoss Filling at Different Target
I am using the following statement in my Initialize event:
The instrument I am using is the ES. For the most part, stops occur correctly at 6 ticks but occasionally, I get stopped out at 5 ticks - my understanding is that a limit order is used for the stop, correct? In this case, I wouldn't think that slippage is an issue. Please advise.Code:Tags: None
-
Hello,
Thanks for the note.
A limit order is used by default however the limit work in the opposite direction. Meaning that anything above your stop is ok and will fill, anything below your stop by an extreme amount would not. This setting for how far down the limit is placed is hard coded and it is set at set amount of ticks of the instrument below(or above if your short) the stop. Its set far enough away that in all scenario you should get your stop filled when it hit.
-BrettBrettNinjaTrader Product Management
-
Brett,
Thanks for answering but I am totally confused by your answer - I just don't understand what you are saying - is there any way you can rephrase or give an example or a reference to docs? I apologize.
Thank you
Comment
-
Hello,
There are two things at play here.
A) The limit order when the stop gets hit works the opposite direction that you are thinking It makes sure you get that price or better, a better price would be above your stop price.
B) The limit order of the stop is offsetted to be several ticks lower then the stop price. This way you still get a fill on your stop if the market gaps down on you.
-BrettBrettNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment