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!
See more
See less

Partner 728x90

Collapse

StopLoss Total Position AND Trailing Stop?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,283 views
    0 likes
    Last Post Leafcutter  
    Working...
    X