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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    283 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X