Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 FrazMann, Today, 11:21 AM
        0 responses
        3 views
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        51 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        10 responses
        36 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        24 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X