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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    670 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X