Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Move stop losses using SetStopLoss

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

    Move stop losses using SetStopLoss

    Hi,

    I see we cannot use SetTrailStop and SetStopLoss together. However, here is what I want to do:

    1. SetStopLoss to x initially from an entry signal
    2. SetStopLoss to y after some profit target is achieved

    However, when I try to do #2, and give no signal entry, it does not take effect.

    If I specify a signal entry, then it puts the stop loss on my entry price. What am I doing wrong?

    PS: For #2 SetTrailStop would have been most ideal, but I cannot use it since I already called SetStopLoss in #1.

    Why cant we use both in conjunction?

    #2
    tanbyte, thanks for the post. You could not have two orders working / racing on the same position name here. If you scale in with two entries and then have for example a SetStopLoss attached to the first and a a SetTrail to the second signal name that should work.

    If you want to start with a static stop and then later on trail for a single named position, just follow the concepts of this reference sample showing how to dynamically update the SetStopLoss as needed to provide the trail - it's critical as well to have the reset part included when you're flat and working as CalculationMode price.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X