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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment