Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I setup the "Trailing Stop" in Strategy Builder?
Collapse
X
-
Hello Dvelz702,
Thanks for your post and welcome to the NinjaTrader forums!
A trailing stop and the Fixed stop cannot be used on the same order, if applied so, the trailing stop will be ignored.
From the help guide on SetTrailStop(): "The SetTrailStop() method can NOT be used concurrently with the SetStopLoss() or SetParabolicStop() method for the same position, if any of methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence. You can however, use all three methods in the same strategy if they reference different signal names."
Your settings for using the Trailing stop are correct if you want the first stop to be 5 tick behind the entry price. As the trade moves into profit, for each tick increase of profit, the trailing stop will be moved forward. Please note that in order to move correctly, the strategy would need to run with Calculate.OnEachTick or Calculate.OnPriceChange.
From the help guide on SetTrailStop(): "Trail stop orders are modified based on the strategies 'Calculate' settings. In the case of 'Calculate' on bar close, when the bar closes the trail stop order modification will occur using the lowest/highest price of the bar as the reference price to apply the trail offset. Subsequently if the open price of the next bar is significantly higher or lower than this price then there is a possibility that the calculated trail stop price is now an invalid stop price. This is a risk with modifying any stop order closer to the current market price since any modification above/below the current price would be rejected."
Reference: https://ninjatrader.com/support/help...ttrailstop.htm
- Likes 1
-
Would it be possible to demonstrate, using Strategy Builder in NT8, how to address your recommendation on the Trailing Stop. I Could not find these settings you referenced. "Please note that in order to move correctly, the strategy would need to run with Calculate.OnEachTick or Calculate.OnPriceChange."
Thank you.
Comment
-
Hello Dvelz702,
Thanks for your reply.
Yes, you can certainly test using the sim101 account.
The strategies "Calculate" setting can be set on the "default properties" screen of the strategy builder. I have attached a screenshot to show this.
You may be interested in reviewing these resources on the Strategy Builder if you have not already:
Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
Comment
-
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 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