Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving stop loss below the current price when short

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

    Moving stop loss below the current price when short

    Hi,

    I'm trying to add a rule where the open position reaches the negative tolerance level, then I want to move my stop loss to break even (in case price goes back to to level again). I added this piece below into my strategy, but as soon as the criteria is met, it closes the position. So now I'm guessing I can't move my stop loss below the current price when I'm short. Is there a way around this?


    if (Position.MarketPosition == MarketPosition.Short && Close[0] >= Position.AveragePrice + TheTolerance * TickSize)
    {
    SetStopLoss("sell", CalculationMode.Price, Position.AveragePrice, false);
    }

    thanks
    M

    #2
    Hello mntemel,

    If the position is short, would you not be expecting the price to fall instead of rise?

    Your logic is looking for the close price to be greater than the entry price plus whatever TheTolerance multiplied by TickSize is.

    That sounds like if the price has risen instead of fallen you want to move the stop loss to breakeven which would be on the wrong side of the market if the price has risen (meaning you have lost profit in that trade).

    Can you clarify what you are trying to accomplish?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X