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 NullPointStrategies, Today, 05:17 AM
    0 responses
    34 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X