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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X