I'd like to add a trailing stop, but in the documentation for SetTrailStop() and SetStop(), it states:
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trailing stop with entries on a secondary data series
Collapse
X
-
Trailing stop with entries on a secondary data series
I have a script with multiple time frames, thus in order to get more accurate fills during testing, I have added a single-tick series and I'm submitting orders to that per the official docs here: https://ninjatrader.com/support/help...ipt_strate.htm
I'd like to add a trailing stop, but in the documentation for SetTrailStop() and SetStop(), it states:
Am I reading this correctly that it's saying that since I'm submitting my orders to my 3rd data series (the single-tick series), that this may mess up the stops (which I presume are submitted to the first series)? Is there any workaround?•Should you have multiple Bars objects of the same instrument while using SetStopLoss() in your strategy, you should only submit orders for this instrument to the first Bars context of that instrument. This is to ensure your order logic is processed correctly and any necessary order amendments are done properly.Tags: None
-
Hello pshift,
Welcome to the NinjaTrader forums!
Yes, this is correct. Set methods update with the primary series only. Instead of using SetTrailStop/SetStopLoss, you would want to use Exit orders instead (or use the unmanaged approach with SubmitOrderUnmanaged).
Below is a link to examples.
Chelsea B.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_ChelseaB View Post
Perfect, this looks like it will do what I'm looking for. Thanks for the fast reply.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment