Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change stop loss on multiple positions

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

    Change stop loss on multiple positions

    I want to be able to change my stop loss to the same value for up to 7 open positions.

    If I do not specify fromEntrySignal, will the following command adjust all open positions simultaneously?:
    SetStopLoss(CalculationMode.Price, StopLoss);

    If not, how do I identify and access my open positions, so I can change the StopLoss one at a time?

    #2
    Hello PaulZ,

    Thank you for writing in.

    If you do not specify a fromEntrySignal parameter for your SetStopLoss() method call, it will adjust the stop losses for all of your positions to the parameters you have specified.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      If I want to change the StopLoss on my Long (or Short) positions only, how do I do this?
      Is there a parameter holding all my open Positions (with its chacteristics), that I can access?

      Comment


        #4
        Hello PaulZ,

        You'll want to specify signal names for your entries and then use those signal names in your SetStopLoss() method calls' fromEntrySignal parameter.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        58 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
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X