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
StopLoss Total Position AND Trailing Stop?
Collapse
X
-
StopLoss Total Position AND Trailing Stop?
I'm trying to setup my strategy in such a way that if price immediately turns around and goes against me 30 ticks, I will get stopped out. However I would also like a trailing stop loss of 45 ticks. But when I try to set up both in the "Stops and Targets" tab, upon execution of my strategy, I don't have a trailing stop. Instead I only have the one stop loss. Is it possible to have both or am I doing something wrong? -
Hello Fness2020,
Thanks for your post.
The SetStopLoss() and SetTrailStop() cannot be used on the same order and if you do, as you observed, only the fixed SetStopLoss would function. From the help guide, "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." https://ninjatrader.com/support/help...ttrailstop.htm
You can create your own trailing stop in the strategy builder that does not use the SetTrailStop(). Please see this thread for an example this: https://ninjatrader.com/support/foru...rategy-builder
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geotrades1, Today, 07:54 AM
|
10 responses
26 views
0 likes
|
Last Post Today, 03:07 PM | ||
Started by ninza33, Yesterday, 12:31 PM
|
3 responses
16 views
0 likes
|
Last Post Today, 02:57 PM | ||
Started by patrickmlee007, Today, 09:33 AM
|
1 response
9 views
0 likes
|
Last Post Today, 02:48 PM | ||
Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
|
53 responses
5,307 views
0 likes
|
Last Post
by BartMan
Today, 02:46 PM
|
||
Started by Richozzy38, Today, 01:06 PM
|
2 responses
13 views
0 likes
|
Last Post
by Richozzy38
Today, 02:39 PM
|
Comment